Laravel Application Helper: app
The app function in Laravel gives you access to the Illuminate\Container\Container instance. It is a singleton, which means multiple calls to app() will return the same instance. You can also use app to resolve registered dependencies from the Container instance. For example, to get an instance of the Illuminate\Auth\AuthManager class, you can use app('auth').