Laravel Directory

26. Laravel Directory Structure

All three panels follow the standard Laravel 12 layout. If you plan to customise the code, these are the folders that matter.

foodie-admin/  (also foodie-restaurant/ and foodie-web/)
├── app/                 Application code
│   ├── Console/         Artisan commands + the scheduled tasks
│   │   └── Commands/    AutoCancelOrder, SendScheduledOrderNotification
│   ├── Helpers/         Shared helper functions
│   ├── Http/
│   │   ├── Controllers/ Request handlers (thin — data is read from Firestore)
│   │   └── Middleware/  Auth & the per-menu permission gate
│   ├── Mail/            Mailables for the email templates
│   ├── Models/          Eloquent models (panel auth: User, Role, Permission)
│   └── Providers/       Service providers (incl. the Firebase service)
├── Modules/
│   └── AI/              The OpenAI food-listing module (admin & restaurant panels)
├── bootstrap/           Framework bootstrap + cache
├── config/              Configuration files (app, database, firebase, …)
├── database/
│   ├── migrations/      MySQL schema reference (you import the shipped .sql)
│   └── seeders/         Base data
├── public/              Web root — index.php, css/, js/, images/
├── resources/
│   ├── views/           Blade templates (pages, layouts, partials)
│   ├── css/             Panel stylesheets
│   └── lang/            Translations (en/, ar/)
├── routes/
│   ├── web.php          All web routes (route names double as permission keys)
│   └── api.php          API routes
├── storage/
│   └── app/firebase/    credentials.json + the scheduled Node scripts
├── vendor/              Composer dependencies (generated — not edited)
├── .env                 Environment config (DB + Firebase credentials)
├── artisan              Laravel command-line entry point
└── composer.json        PHP dependencies

Note: vendor/ and node_modules/ are generated by composer install / npm install and should not be edited by hand. Your configuration lives in .env; your Firebase service account lives in storage/app/firebase/credentials.json. Neither should ever be committed to Git or placed under public/.