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.
![](https://www.devsecopsnow.com/wp-content/uploads/2024/03/image-3.png)
Creating Enum
php artisan make:enum Enums/UserRole --string
![](https://www.devsecopsnow.com/wp-content/uploads/2024/03/image-4.png)
Creating Trait
php artisan make:trait Traits/FilterTrait
![](https://www.devsecopsnow.com/wp-content/uploads/2024/03/image-5.png)
Creating Class
php artisan make:class Classes/DemoClass
![](https://www.devsecopsnow.com/wp-content/uploads/2024/03/image-6.png)
Creating Interface
php artisan make:interface Interfaces/DemoInterface
![](https://www.devsecopsnow.com/wp-content/uploads/2024/03/image-7.png)