Home  >  Q&A  >  body text

What does App::class mean? The class cannot be found.

  function bind($abstract, $concrete = null)
    {
        return Container::getInstance()->bind($abstract, $concrete);
    }

App::class What does it mean? That class cannot be found

在学php了在学php了732 days ago689

reply all(1)I'll reply

  • 在学php了

    在学php了2022-07-25 10:39:23

      function app(string $name = '', array $args = [], bool $newInstance = false)    
      {      
        return Container::getInstance()->make($name ?: App::class, $args, $newInstance);   
       }

    The code is posted wrong

    reply
    0
  • Cancelreply