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

app

Logo Intervention/image Intervention/image
The app function returns the service container instance:
<?php $container = app();
<?php         $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $data);

        $length = strlen($data);



        if (function_exists('app') && is_a($app = app(), 'Illuminate\Foundation\Application')) {



            $response = IlluminateResponse::make($data);

            $response->header('Content-Type', $mime);
src/Intervention/Image/Response.php