Laravel 5.1 rename project

From laravel version 5.3^ there is a function to call the app name

config('app.name');

You can change the default name 'Laravel' inside this file

config/app.php

'name' => 'Laravel',

And also inside .env file

APP_NAME=Laravel


I just recommend to:

  1. go to .env file at APP-NAME =
  2. put your desired name in "" (double quotes)
  3. restart your server

And you're done.


You should use php artisan app:name command to rename your app. It will change namespace in all project files for you. This is the only right way to rename your app.

https://laravel.com/docs/5.0/configuration#after-installation