Laravel 11 – New Artisan commands

Posted by

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

The most recent stable release of Laravel is version 11, which has been publicly accessible since March 12, 2024. Laravel 11 will be maintained until September 3, 2025 for bug fixes and until March 12, 2026 for security updates. With Laravel 11, you can now easily construct classes, enums, interfaces, and characteristics by using new Artisan commands. Let’s examine how to apply these commands in Laravel applications with efficiency.

Creating Enum

php artisan make:enum Enums/UserRole --string

Creating Trait

php artisan make:trait Traits/FilterTrait

Creating Class

php artisan make:class Classes/DemoClass

Creating Interface

php artisan make:interface Interfaces/DemoInterface

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x