The Blog

Laravel

Laravel

Laravel Artisan General Command: The clear-resets Command

John Koster
John Koster
December 7, 2016

The auth:clear-resets command in Laravel is used to remove expired password reset tokens from the database. It has an optional name parameter to specify the password broker to clear tokens for. Two examples of using this command are shown. Running auth:clear-resets will delete expired tokens for the default password broker. This command is handy to keep the password_resets table clean.

Laravel

Laravel Artisan General Command: The config:cache Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The down Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The env Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The name Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The optimize Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The serve Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The tinker Command

John Koster
John Koster
December 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

Laravel Artisan General Command: The up Command

John Koster
John Koster
December 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

Laravel Artisan Generator Command: The make:auth Command

John Koster
John Koster
December 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.

Latest posts

Where Things get Good: Moving on to Forte Development Phase 1

Wrapping up Forte Phase 0 with the lexer and parser now in private alpha, and kicking off Phase 1 wi...

Read more
Forte Update: Backtracking, Metadata, HTML Validation, and More

A Forte development update: the parser now supports backtracking, improvements to node metadata, ide...

Read more
Parsing HTML and Blade Attributes in Forte

Wrapping up attribute parsing in Forte's HTML parser, from simple HTML attributes to complex, edge-c...

Read more
Switch Statements and Parser Extensions in Forte

Exploring how Forte's parser extensions can be used to handle complex Blade directives like nested s...

Read more
Parsing Blade Comments in Forte

Digging into parsing Blade and HTML comments while building Forte's HTML parser for Laravel Blade.

Read more
Thoughts on HTML Elements and Blade Components in Forte

This week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into...

Read more