composer require mziel/blog
- Create
Mziel
andBlog
dir in packages directorycd packages mkdir Mziel/Blog
- Copy the files to the Blog directory
- Add to composer.json file find autoload PSR-4 and add
"Mziel\\Blog\\": "packages/Mziel/Blog/src"
- Add to config/app.php in the section providers
Mziel\Blog\Providers\BlogServiceProvider::class,
- Run commands
composer dump-autoload php artisan optimize
use the command php artisan blog:demo
- English
- Polish