Laravel Project Skeleton v10 vs v11

Laravel Project Skeleton v10 vs v11

Laravel 11 new directory structure .As first you see the project directory structure of laravel 10 and laravel 11 looks same ![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png) But when you dive into the subdirectories , the file count has been dropped.Lets compare Laravel 10 with Laravel 11

'app' Directory

![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png) ![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png)

'config' Directory

No file exists in the config directory except the .gitkeep file ![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png) If you want to publish any file just run the artisan command
# config/database.php php artisan config:publish database
Now you can publish only those files that you need only.

'database' Directory

Inside migrations **create_personal_access_tokens_table.php **no longer exists because we only need it when we are creating api and new column added **create_cache_table.php.** ![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png) **failed_jobs.php** had been renamed to jobs.php.It includes all jobs like **failed_jobs , jobs , job_batches.** Also, the default database will be **sqlite**.

'route' Directory

In laravel 11 , you only contain **web.php** and **console.php** ![Example Image!](http://localhost:8000/storage/uploads/images/lWcg5e9WyIGyvyrHnhSVe2WxxdGFviMLlGn9rk3z.png) If you want to create api.php and channels.php.You can run the following commands
php artisan install:api php artisan install:broadcasting
Tags
Laravel 11 Laravel 11 Directory New Laravel Laravel 11 Difference Laravel 10 And Laravel 11 Comparison Laravel 10 And Laravel 11