Level 67
It makes no difference in any way and totally up to you. If you notice, laravel's core classes just put them in order of shortest to longest name, just to be cute.
Is there any issue or conflict about the hierarchy of using namespace? I mean if I have 5 imported class, should I have to arrange them? Or is it not necessary?
Is there anything to consider with the example below? Or is there any difference? How about in terms of best practices?
Example:
use App\User;
use App\UserProfile;
use App\Post;
use App\Comments;
VS
use App\Post;
use App\User;
use App\UserProfile;
use App\Comments;
It makes no difference in any way and totally up to you. If you notice, laravel's core classes just put them in order of shortest to longest name, just to be cute.
Please or to participate in this conversation.