newbranding/blog

Blog for Laravel 5
113 2
Install
composer require newbranding/blog
Latest Version:1.6.2
Laravel:5
License:MIT
Last Updated:Jan 28, 2021
Links: GitHub  ·  Packagist
Maintainer: Krato1

Blog Package for Laravel 5

Custom Blog Package for Laravel 5

Requirements

Dimsav: Translator: https://github.com/dimsav/laravel-translatable

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.

Instructions

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

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

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.

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.

User Model

Important! You must modify your User model and copy the function created by the previus command.

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

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.

##ToDo *Add a better readme

Related Packages

bjuppa/laravel-blog

Add blog functionality to your Laravel project

3,393 47
fivesqrd/fluent-laravel

A Laravel 5 service provider for including the Fluent PHP library.

3,160 0
fbf/laravel-blog

A Laravel 4 package to add a simple blog to a site

2,959 73
sethsharp/blog-crud

A blog CRUD package

1,142 3
lufficc/xblog

A powerful and responsive blog system powered by laravel.

918 916

Version History

Version Released PHP Laravel License
1.6.2 5.* MIT
1.6.1 5.* MIT
1.6 5.* MIT
1.5.1 5.* MIT
1.5 >=5.4.0 5.* MIT