Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
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