Learn how to take an application out of maintenance mode using the up command. This command removes the down file from the application's storage directory. Find out how to quickly execute the php artisan up command for the same purpose.
The whereami command in Laravel helps you pinpoint the exact location in your code base where you are currently executing code. Running whereami in a Tinker REPL session provides information about the file and line number where the code is being executed.
The wtf command in the mentioned Markdown content is used to display details about the most recent exception. It allows viewing the stack trace details, showing a few lines by default. By adding question marks or exclamation points as arguments, more lines of the stack trace can be displayed. Another option is to use the -v flag to display the entire back trace. An example session demonstrates how to use the wtf command to view the back trace of an exception.
Learn how to use the vendor:publish command in Laravel to publish assets from third-party vendor packages. This command allows you to choose which assets to publish using options like --force to overwrite existing files, --provider=<PROVIDER> to publish assets from a specific service provider, and --tag=* to limit the types of assets to be published. Examples are provided to demonstrate its usage, such as publishing assets from all registered providers or from a specific service provider, and using tags to publish specific types of assets.
Learn how to quickly remove all compiled view files from your application using the view:clear command. By default, this command wipes all files from the storage/framework/views/ directory. Use the provided example to clear all compiled view files with ease.
Learn how to schedule tasks and commands in Laravel using the built-in command scheduler. Unlike traditional task systems like cron, Laravel's task scheduler allows you to manage all scheduled tasks through your application's code and track them using source control systems like git. You can easily schedule tasks to run at specific intervals, execute arbitrary commands, or even schedule callback functions to run at a given interval. Tasks can also be scheduled to run in maintenance mode or as a specific user. Additionally, you can prevent concurrent task execution and run tasks in the background. Laravel's scheduling system provides a convenient and flexible way to manage and automate tasks in your application.
Learn how to limit the execution of tasks in a Laravel application based on certain criteria. You can restrict tasks to specific environments using the environments method. This method allows you to define which environments a task should run in. Additionally, tasks can be filtered using callback functions. The when method determines whether a task should run, while the skip method determines whether it should be skipped. Multiple filters can be applied to a task, and method injection is supported for the before and after methods.
Learn how to manage the output of Laravel tasks using the task scheduling system. Discover different methods for managing output, including sending output to a file and emailing output. Use the sendOutputTo method to send the task output to a specified file location, and use the appendOutputTo method to append the output to a file. To email the results of a task, use the emailOutputTo method and provide email addresses as arguments. The emailWrittenOutputTo method only sends an email if the task has generated output.
Learn how to run the Laravel task scheduler on both Mac OS and Windows. On Mac OS, you can manually run the scheduler using the 'schedule:run' Artisan command. On systems that support Cron, you can also set up an entry to automatically run the scheduler every minute. On Windows, you can use the Windows Task Scheduler to automate the Laravel Task Scheduler. Follow the provided instructions to enable and configure the Task Scheduler to run the Laravel Task Scheduling system.
Learn how to style your Laravel console application and commands using Symfony's console style system. You can easily control the background and foreground colors of the text displayed in the console window, as well as add additional styles such as bold and underscore. There are two ways to define styles: in-line using a special syntax enclosed in angle brackets, or by creating instances of the OutputFormatterStyle class. You can also customize the rendering of tabular data in your commands by working with classes like Table, TableSeparator, and TableCell. By combining these features, you can create tables with customized headers, separators, and styled cell content.
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