Answers for "laravel add global function"

PHP
0

create global function laravel

//Into the console
 php artisan clear-compiled
 php artisan config:cache
Posted by: Guest on September-21-2021
0

create global function laravel

//AppConfigApp.php

 'providers' => [

     /*
     * Laravel Framework Service Providers...
     */
     IlluminateAuthAuthServiceProvider::class,
     ...
     IlluminateValidationValidationServiceProvider::class,
     IlluminateViewViewServiceProvider::class,
     AppProvidersGlobalFunctionsServiceProvider::class, //Add your service provider
Posted by: Guest on September-21-2021
0

create global function laravel

//Use your function anywhere within your Laravel app
 first_function();
 second_function();
Posted by: Guest on September-21-2021

Browse Popular Code Answers by Language