2017 © Pedro Peláez
 

library blog

Blog for Laravel 5

image

newbranding/blog

Blog for Laravel 5

  • Thursday, February 4, 2016
  • by Krato1
  • Repository
  • 4 Watchers
  • 2 Stars
  • 74 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Blog Package for Laravel 5

Custom Blog Package for Laravel 5, (*1)

Requirements

Dimsav: Translator: https://github.com/dimsav/laravel-translatable, (*2)

Mcamara Laravel Localization: https://github.com/mcamara/laravel-localization, (*3)

Cviebrock Eloquent-Sluggable: https://github.com/cviebrock/eloquent-sluggable, (*4)

Yajra Laravel Datatables: http://yajra.github.io/laravel-datatables/, (*5)

All the packages will be installed automatically if you don't have it., (*6)

Instructions

Create a folder inside app called Blog and the create inside the folders: Controllers and Models. Folder Structure:, (*7)

   -app
    -Blog (You can change this name on configuration file blog.php)
        -Controllers
        -Models

Publish configuration and Public Files

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, (*8)

Creating Migrations

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., (*9)

Creating Models

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., (*10)

User Model

Important! You must modify your User model and copy the function created by the previus command., (*11)

Creating Controllers

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, (*12)

Creating Requests

You should create the requests files with the following command: php artisan newbranding:blog requests. This will create all Requests needed for the package., (*13)

ToDo

*Add a better readme, (*14)

The Versions