laravel 8 make trait code example
Example 1: laravel make trait command
php artisan make:trait nameOfTheTrait
Example 2: create trait in laravel 8
#There is no specific command for traits in Laravel 8
#Create app folder in Traits/UserTrait.php folder and file