Configuring Laravel With Additional Environment Files
Laravel News
by Laravel News
1d ago
In Laravel, you can configure additional environment files that will load instead of the .env file. This feature is helpful for testing, where you can load a .env.testing environment file instead of the default. You typically don't need to reach for this feature, but it's nice to know that by setting the APP_ENV environment variable, Laravel can detect custom configurations. CLI Example The most straightforward example of this feature is using a different environment file when running Laravel with the Artisan console or even the phpunit CLI. Using the Artisan command, you can also use a diffe ..read more
Visit website
Real Time Command Line Monitoring With Laravel Top
Laravel News
by Laravel News
2d ago
Laravel Top provides real-time monitoring directly from the command line for Laravel applications. It helps you track critical metrics and see the busiest routes in your application. Since data is stored in Redis, theoretically, the top command output should represent data from all application servers, not just the specific server you run the command from: php artisan top Top works by listening to Laravel events and, from those events, displays aggregated data stored in Redis to calculate metrics. Using a TTL, this data is stored for the short term without historical data based on the last ..read more
Visit website
A New Validation Rule and the Ability to Manually Fail a Command in Laravel 11.8
Laravel News
by Laravel News
3d ago
This week, the Laravel team released v11.8, with a new validation rule, the ability to fail a command outside the handle() method, create a view during make:mail, and more. Show Events in the model:show Command Wendell Adriel contributed an Events section to the model:show command that displays any evens defined on the $dispatchesEvents property: New has Validation Rule Andrew Brown contributed a has validation rule that checks to make sure expected values are included in the given array of input: return [ 'allowed_ips' => ['present', 'nullable', 'array', 'has:' . $request->ip ..read more
Visit website
New Proposed Array Find Functions in PHP 8.4
Laravel News
by Laravel News
4d ago
Four new array functions are likely coming to PHP 8.4 that are still in the RFC voting stage. We're encouraged that the voting is already 100% "yes" votes thus far, with voting ending May 29, 2024. While the RFC acceptance of these functions is pending, it seems likely that these functions are coming to PHP 8.4: array_find() array_find_key() array_any() array_all() The array_find() Function The array_find($array, $callback) function returns the first element for which the $callback returns true: $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck ..read more
Visit website
Laracon AU 2024 tickets are now on sale
Laravel News
by Laravel News
5d ago
The first release of Laracon AU tickets are now on sale, with Blind Bird pricing available for $549 per ticket - an early discount of $150 on this year's ticket price - but be quick, as Blind Bird tickets are limited. All tickets to this year's conference include: Entry to both days of the conference Tea and coffee on arrival, lunch, and afternoon tea on both days Exclusive conference t-shirt Name badge & lanyard Swag bag Access to After Dark (Thursday) and High Tide (Friday) networking events, with food and drink provided Access to pre (Wednesday) and post-conference (Friday) Watering H ..read more
Visit website
Dash UI is a Laravel Blade Component Library Inspired by Shopify Polaris
Laravel News
by Laravel News
5d ago
Dash UI is a component library for Laravel Blade inspired by Shopify Polaris. It was created with Tailwind CSS, Laravel Blade components, and Alpine.js and designed for ease of integration and customization. Dash UI Feedback Banners This UI kit includes a comprehensive set of UI elements that allow you to quickly start building your app and customizing it with Blade components. The kit consists of the following components: Buttons and Button Groups Avatars Thumbnails Badge Cards Empty State Form Input UI Elements Feedback banners Alert boxes Inline Errors Flash messages Circle loader Popover ..read more
Visit website
Is class instantiation without extra parenthesis coming to PHP 8.4?
Laravel News
by Laravel News
1w ago
The RFC for omitting parentheses around the new expression is likely coming to PHP 8.4. This RFC is currently in the voting phase, with 21 "yes" and 3 "no" votes. Voting ends May 24th, so there's still a chance the 2/3 vote could fail, but optimistically, it looks like it's heading in the right direction. Since member access during instantiation was introduced, you must wrap the new MyClass() call in parentheses, or you'll get a parse error. The proposed syntax would allow you to access constants, properties, and methods without the extra parentheses: class Request implements Psr\Http\Messag ..read more
Visit website
Validation Errors Card for Laravel Pulse
Laravel News
by Laravel News
1w ago
The Validation Errors Card for Laravel Pulse shows useful metrics for validation errors impacting users. What I love about this Pulse card is that it shows how real users experience and interact with validation errors in your app. Validation Errors Card in Laravel Pulse This package includes the following main features with the initial release: Supports multiple error bags Supports session based validation errors Supports API validation errors Support Inertia validation errors Fallback for undetectable validation errors (based on 422 response status) To get started with this package you can ..read more
Visit website
FrankenPHP Support in Laravel Octane is Out of Beta
Laravel News
by Laravel News
1w ago
The Laravel team released Octane v2.3.10, which removes the status of beta for FrankenPHP's Octane server option. FrankenPHP is a PHP application server written in Golang that supports modern HTTP features like early hints, Brotli compression, Zstandard compression, and more. FrankenPHP support in Laravel Octane is out of beta! (teamwork with @enunomaduro ?). https://t.co/l7xUqV6mBa — Kévin Dunglas (@dunglas) May 13, 2024 <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> FrankenPHP released v1.0 towards the end of 2023, and around the same time ..read more
Visit website
Laracon AU 2024 is heading to Brisbane, Queensland
Laravel News
by Laravel News
1w ago
Laracon Australia will be bringing you more than ever before in a new city at a bigger venue; the QUT Gardens Theatre, situated at the Queensland University of Technology's Gardens Point Campus, right in the heart of the Brisbane CBD. To make the most of your conference experience, it is suggested that you arrive in Brisbane by 5 pm on Wednesday 6th November and depart after 8 pm on Friday 8th November. Tickets will go on sale next Tuesday 14th May, with blind and early bird pricing available in limited quantities. Catering To help make the most of these improved networking opportunities thro ..read more
Visit website

Follow Laravel News on FeedSpot

Continue with Google
Continue with Apple
OR