You are on page 1of 1

1.

Create project: Laravel new Laravel-blog


2. Laravel Authentication
 Composer require Laravel/ui –dev
 Php artisan ui bootstrap –auth
 Npm install
 Npm run dev
3. Create tables
 We need categories, posts, galleries and category_posts tables.
 Create model, migration and controller at the same time.
 Run the following commands
 Php artisan make:model Category -mcr (Category, Post, Gallery)
 Php artisan make:model CategoryPost -m
 Php artisan make:controller WebsiteController
 Php artisan make:controller PageController – r
4.

You might also like