Let's take into consideration the false starts (and restarts) as well as building a flat-file comment system that I thought "would only take two weeks or so"......
Here is a list of all of the add-ons this site is running (at the time of writing) as they appeared in the Statamic Control Panel. ...
Discover the journey behind "Laravel Artisan: An In Depth Coverage of Laravel Features." Find out why the project was eventually converted into free blog posts on the website. Explore the author's other projects and the motivation behind the switch to a new site. Don't miss the free resource, "Laravel Companion: A Guide to Helpers, Collections And More."
Learn how to execute Artisan commands from within other Artisan commands in Laravel. Use the call and callSilent methods to call other commands and return the exit code. Pass arguments and options to the called commands using arrays. Output from called commands can be hidden by using the callSilent method. Commands can also be called from other locations within the application's code base by injecting the console kernel or using the Artisan facade. Operating system calls can be made using Symfony's Process component, which is already available in Laravel. Handle process output by supplying a callback function to the process's run method.
Learn how to customize and modify Laravel's Artisan console application to better suit your needs. By extending Symfony's console application, you can make changes to the default command, application name, and version string. Discover where the console application is invoked and brought in, and override the getArtisan method to customize the console application instance. You can change the application name and version number to reflect your own branding. Additionally, you can modify the default command that is executed when no specific command is specified. These modifications are useful for creating a customized experience for your clients and maintaining branding consistency.
Learn how to clear the cache files of your application using the cache:clear command in Laravel. You can optionally specify the cache store to clear using the store parameter. Check out the examples to see how to use the command.
Learn how to create a new migration for the cache database table using the cache:table command in Laravel. This table is necessary for the database cache driver. The migration creates a cache table with specific properties. Remember to change the table name in additional migration files to avoid errors when running the migrate command.
Learn about the new shorthand syntax introduced in Laravel 5.3 to simplify writing Artisan commands. The command method in the console kernel allows you to define commands with a signature and a callback function. The signature defines the input requirements, and the callback function has access to the underlying ClosureCommand instance. You can also set a description for the command using the describe method. Additionally, you can register commands using the console.php file in the routes directory.
The config:clear command is used to delete the configuration cache file created by config:cache. It will remove the bootstrap/cache/config.php file by default. Use the php artisan config:clear command to clear the configuration cache.
Learn about how to customize console progress bars in Laravel commands. Progress bars in Laravel commands are instances of the Symfony\Component\Console\Helper\ProgressBar class and inherit styles from Symfony's console styles. The default styles differ based on the operating system. The diagram in the article explains the default Windows and Unix-like system styles and the components of a console progress bar. Progress bar formats use placeholders like current, max, bar, percent, elapsed, remaining, estimated, memory, and message to control appearance. Various examples demonstrate how to set formats and customize components like bar character, empty bar character, progress character, and bar width. Other methods like getBarCharacter, getEmptyBarCharacter, getProgressCharacter, setEmptyBarCharacter, setProgressCharacter, setBarWidth, and setMessage are also explained. This article is a valuable resource for anyone looking to customize console progress bars in Laravel commands.
Wrapping up Forte Phase 0 with the lexer and parser now in private alpha, and kicking off Phase 1 wi...
Read moreA Forte development update: the parser now supports backtracking, improvements to node metadata, ide...
Read moreWrapping up attribute parsing in Forte's HTML parser, from simple HTML attributes to complex, edge-c...
Read moreExploring how Forte's parser extensions can be used to handle complex Blade directives like nested s...
Read moreDigging into parsing Blade and HTML comments while building Forte's HTML parser for Laravel Blade.
Read moreThis week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into...
Read more