Logo

Miscellaneous Functions

abort abort_if abort_unless app auth back bcrypt blank broadcast cache class_uses_recursive collect config cookie csrf_field csrf_token dd dispatch dump env event filled info logger method_field now old optional policy redirect report request rescue resolve response retry session tap throw_if throw_unless today trait_uses_recursive transform validator value view with

resolve

Logo laravel/octane laravel/octane
The resolve function resolves a given class or interface name to an instance using the service container:
<?php $api = resolve('HelpSpot\API');
<?php     public function installSwooleServer()

    {

        if (! resolve(SwooleExtension::class)->isInstalled()) {

            $this->error('The Swoole extension is missing.');



            return false;
src/Commands/InstallCommand.php