Aug 10, 2024
Environment Setup
Installing Laravel
composer create-project laravel/laravel laravel-11-crash-course
Deployment
Laravel File and Folder Structure
app/
: Contains application logic (Models, Controllers, etc.)config/
: Configuration filesdatabase/
: Migrations, seeders, factoriesresources/
: Views, CSS, JSpublic/
: Entry point for the web serverstorage/
: Logs, compiled views, and sessionstests/
: Contains unit testsvendor/
: Third-party packagesArtisan CLI
php artisan list
Database Setup
php artisan make:model Note -m
notes
table with necessary fields.php artisan migrate
Seeding Data
php artisan make:factory NoteFactory --model=Note
php artisan db:seed
Controllers and Routes
php artisan make:controller NoteController --resource
web.php
using resource routes.NoteController
.Views
User Authentication
composer require laravel/breeze --dev
php artisan breeze:install
MustVerifyEmail
interface.Final Touches