Laravel:
M: Model : V: views : C: Controllers:
-
Setup
-
Auth (default, Breeze)
-
File Structure
-
Create Project
-
Database Connection (.env file)
- migration
-
Explain about the MVC pattern
- Model
- View
- Controllers
- Middleware
- Database(migration)
- Routing
- Seeders
-
CRUD operation
-
File Uploading
-
Pagination
-
Notification
-
Integrate Frontend into backend ( Develop a complete dynamic project)
- layout management (frontend and backend)
- Data fetching in the frontend template
-
download wampp or xammp and setup
-
download composer and setup
-
create a project: xampp/htdocs/ open terminal wampp/www/ open terminal
2.1. composer global require laravel/installer (one time setup) 2.2. laravel new projectName
a. Would you like to install a starter kit? [No starter kit: Auth]: [none ] No starter kit [breeze ] Laravel Breeze [jetstream] Laravel Jetstream > breeze b. Which Breeze stack would you like to install? [Blade with Alpine]: [blade ] Blade with Alpine [livewire ] Livewire (Volt Class API) with Alpine [livewire-functional] Livewire (Volt Functional API) with Alpine [react ] React with Inertia [vue ] Vue with Inertia [api ] API only > blade c. Would you like dark mode support? (yes/no) [no]: > no D. Which testing framework do you prefer? [PHPUnit]: [0] PHPUnit [1] Pest > 0 e. Would you like to initialize a Git repository? (yes/no) [no]: > yes f. Which database will your application use? [MySQL]: [mysql ] MySQL [mariadb] MariaDB [pgsql ] PostgreSQL [sqlite ] SQLite [sqlsrv ] SQL Server > mysql Optional git config --global user.email "you@example.com" git config --global user.name "Your Name"
2.3. a. cd projectname b. code .
** Run the project ** 2.4 php artisan server
** Database migrate** 2.5 php artisan migrate (add new tables)
Update your /app/Providers/AppServiceProvider.php to contain:
use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); }
2.5.1. php artisan migrate:fresh (remove old data table and add new tables)