Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.34 KB

README.md

File metadata and controls

54 lines (45 loc) · 1.34 KB

Laravel Simple CMS with Laravel 8

this project from the youtube tutorial, link in end of readme. some code from youtube tutorial is customized to run in laravel 8

Clone this repo

https://github.com/Hafizcode02/laravel-simple-cms.git

Install composer packages

$ cd laravel-simple-cms
$ composer install
$ npm install
$ npm run dev
$ npm update

after npm install now, maybe you should meet some errors for the version, just run npm update for update the javascript package

Create and setup .env file

make a copy of .env.example and rename to .env
$ php artisan key:generate
put database credentials in .env file

Migrate and insert records

$ php artisan migrate
$ php artisan tinker
$ factory(App\User::class, 5)->create();
$ factory(App\Post::class, 100)->create();
$ exit
$ php artisan db:seed --class=CategoriesTableSeeder
$ php artisan tinker
$ factory(App\CategoryPost::class, 100)->create();

Use storage images

$ php artisan storage:link

This is important, because without this your image can't be stored correctly

Mail setup

visit at : https://mailtrap.io/
put mail credentials in .env file

Full Tutorial

Click on the image bellow to see the YouTube video.

Laravel 7 Blog CMS