PSR-4 and App name in Laravel 5

Last year we talked about PSR-4 in Laravel and how we can use it to structure our projects under 1 namespace, L5 now supports it out of the box, the whole project is under App namespace (including the controllers).

If you want to change your App name simply run this artisan command:

php artisan app:name ProjectName

And Laravel will rename all the necessary files.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s