Package Data | |
---|---|
Maintainer Username: | Krato1 |
Maintainer Contact: | eric@newbrander.es (Eric Lagarda) |
Package Create Date: | 2015-06-24 |
Package Last Update: | 2021-01-28 |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-11-14 15:03:45 |
Package Statistics | |
---|---|
Total Downloads: | 112 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Custom Blog Package for Laravel 5
Vinkla: Translator: https://github.com/vinkla/translator
Mcamara Laravel Localization: https://github.com/mcamara/laravel-localization
Cviebrock Eloquent-Sluggable: https://github.com/cviebrock/eloquent-sluggable
Yajra Laravel Datatables: http://yajra.github.io/laravel-datatables/
All the packages will be installed automatically if you don't have it.
Create a folder inside app called Blog and the create inside the folders: Controllers and Models. Folder Structure:
-app
-Blog (You can change this name on configuration file blog.php)
-Controllers
-Models
First, you need to publish the configuration file. This, will create a blog.php in your config folder. Publish the configuration with next command:
php artisan vendor:publish
You will be able to create the migration file. Just call his command:
php artisan newbranding:blog migrate
. This will call for create your custom migration file on database/migrations/ with your options. And ask you to migrate this file.
You should create the models with the following command:
php artisan newbranding:blog models
. This will generate all your Models in the folders with your custom names.
Important! You must modify your User model and copy the function created by the previus command.
You should create the controllers with the following command:
php artisan newbranding:blog controllers
. This will generate all the Controllers in the folders with your custom names. We can use it inside the pacakage because you can create dynamic modules
You should create the requests files with the following command:
php artisan newbranding:blog requests
. This will create all Requests needed for the package.
##ToDo *Add a better readme