Showing 10 of 1,204 results.

Laravel Artisan Generator Command: The make:provider Command

…t ( ) 15 { 16 // 17 } 18 19 /** 20 * Register the application services. 21 * 22 * @return void 23 */ 24 public function register ( ) 25 { 26 // 27 } 28 } The make:provider command is also capable of generated namespaced classes. Accomplish this...

Laravel Helper Function: env

…does not exist, the $default value will be returned instead, which is null by default. The following examples will show examples of the env function. The following examples will use the following .env file: 1 APP_ENV=local 2 APP_DEBUG=true 3...

Laravel Artisan Generator Command: The make:model Command

…example is equivalent to the following series of commands: 1 php artisan make:model Drink 2 php artisan make:migration create_drinks_table --create = drinks The make:model command is also capable of generated namespaced classes. Accomplish this...

Laravel Artisan Generator Command: The make:middleware Command

…mand will not overwrite any existing middleware classes that have the same name. An error stating Middleware already exists! will be displayed instead. The make:middleware command is also capable of generated namespaced classes. Accomplish this...

Laravel Artisan Generator Command: The make:job Command

…ntracts\Queue\ShouldQueue interface. This command will not overwrite any existing job classes. Instead an error stating Job already exists! will be displayed. The make:job command is also capable of generated namespaced classes. Accomplish this...