In Laravel

Laravel Artisan General Command: The config:cache Command

Dec 7, 2016

Learn how to improve the performance of your Laravel application by using the config:cache command. This command clears the existing configuration cache and generates a new cache file, resulting in faster loading of configuration values. Find out where the configuration cache file is located and how to run the command.
Laravel Artisan General Command: The down Command

Dec 7, 2016

Learn how to put your Laravel application into maintenance mode using the down command. This command creates a file called down in the designated storage path, signaling maintenance mode. Easily execute this command with php artisan down.
Laravel Artisan General Command: The env Command

Dec 7, 2016

Learn how to use the env command in Laravel to retrieve the name of the current framework environment. The environment name is determined by the value set in the .env file, particularly the APP_ENV entry. Execute php artisan env to see the current environment.
Laravel Artisan General Command: The name Command

Dec 7, 2016

The app:name command in Laravel is used to update the application namespace. By running php artisan app:name, you can change the namespace for your Laravel application. This command accepts one argument, which is the new name of the application namespace. For example, if you run php artisan app:name LaravelArtisan, the namespace in the files such as Controller.php will be updated to LaravelArtisan\Http\Controllers.
Laravel Artisan General Command: The optimize Command

Dec 7, 2016

Learn how to optimize your Laravel application's performance using the optimize command. This command offers two flags: --force, which writes the compiled class file even in debug mode, and --psr, which skips creating an optimized class map loader for better performance. The compiled files cache is written to bootstrap/cache/compiled.php. Examples of using the optimize command include generating a compiled class file with default options, excluding Composer autoload files, and running it on a development or debug machine. When using the --psr flag, the composer dump-autoload command is executed, while without it, composer dump-autoload -o is called.
Laravel Artisan General Command: The serve Command

Dec 7, 2016

Learn how to use the serve command in Laravel to run your application using the PHP development server. This command is particularly useful for development and testing purposes. You can customize the server address and port by using the optional host and port options. Note that when using HHVM, it must be at least version 3.8.0 to use the internal development server. Check out the examples provided to get started quickly.
Laravel Artisan General Command: The tinker Command

Dec 7, 2016

Learn how to use the tinker command in Laravel to start an interactive language shell for your application. With the tinker command, you can include external files and autoloaders before the shell loads completely. Use exit to exit the shell. See an example of loading a file into the interactive shell and how to use the command to load multiple files. Take advantage of the tinker command to interactively test and explore your Laravel application.
Laravel Artisan General Command: The up Command

Dec 7, 2016

The up command is employed to remove an application from maintenance mode by deleting the down file from the framework storage directory. To execute this command, simply run php artisan up.
Laravel Artisan Generator Command: The make:auth Command

Dec 7, 2016

The make:auth command in Laravel can quickly generate login and registration views, a basic HomeController controller, and authentication routes. By default, it generates all the necessary files for authentication, including views and a controller. However, you can use the --views flag to only generate the view files. It's important to note that running this command will overwrite any changes made to existing view or controller files with the same name. To execute the command, you can use php artisan make:auth or php artisan make:auth --views to generate only the views.
Laravel Artisan Generator Command: The make:command Command

Dec 7, 2016

Learn how to generate new command classes using the make:command command in Laravel. This command will create a new class in the app/Console/Commands directory based on the supplied name argument. You can also use the optional --command option to assign a terminal command name. In previous versions of Laravel (before 5.3), the command was named make:console. Check out the provided examples to see how to use the command for different scenarios, such as creating a command to quickly uninstall the application or generating a namespaced class.
Laravel Artisan Generator Command: The make:controller Command

Dec 7, 2016

The make:controller command in Laravel quickly generates a new controller class file in the specified directory. You can provide a name for the controller, and an optional --resource option can generate a resourceful controller. Existing controllers with the same name will not be overwritten. The command can also generate namespaced classes by separating namespace sections using \ .
Laravel Artisan Generator Command: The make:event Command

Dec 7, 2016

Learn how to generate a new event class using the make:event command in Laravel. This command requires the name parameter, which will be the name of the new class. By default, the generated classes will extend the App\Events\Event class. However, please note that this may vary if the root namespace of the application has been changed. Find an example of creating a new OrderWasCanceled event class and its file location. Keep in mind that this command does not update the $listen mappings in the app/Providers/EventServiceProvider.php service provider.
Laravel Artisan Generator Command: The make:job Command

Dec 7, 2016

The make:job command in Laravel is used to create a new job class. You need to provide a name for the class and file. By default, the created job is asynchronous, but you can make it synchronous by using the --sync flag. Job classes are stored in the app/Jobs directory. Synchronous jobs do not implement the ShouldQueue interface. Namespaced classes can be generated by separating the namespace sections using \ in the job name. A nested directory will be created with the correct namespace for the class.
Laravel Artisan Generator Command: The make:listener Command

Dec 7, 2016

Learn how to generate a new event listener class using the make:listener command in Laravel. Provide a name for the class and specify the event option to indicate which event class the listener is for. Additionally, you can use the --queued flag to create a queued listener. After executing the command, a new class file will be created with the specified name in the app/Listeners directory, implementing the necessary interface and trait for queued listeners. Please note that you need to manually update the $listen mappings in the app/Providers/EventServiceProvider.php service provider.

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.