IMO, there is no best practice associated with this. As the risk of sounding fairly common, it all depends, if your project is fairly simple (small), you could place them in App\traits. If if its medium to big project, should further modularize and place them in folder where it belongs most. Like traits for models should go in App/Models/Traits, for controllers in App/Http/Controllers/Traits and so.
Feb 5, 2016
5
Level 11
Traits - Best Practice
I am doing the ACL in Laravel: Roles and Permissions (https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/16)
At the moment I am at the point where I created a trait.
I love the idea of using traits and will get into the habit of it but I don't want to have them all in the "app/" directory.
Would it be better to have a "app/Traits" directory? Or is there somewhere else I can put it?
Please or to participate in this conversation.