Downloads
Stars
Version
A multi language blog package for Laravel.
You can install the package via composer:
composer require davide-casiraghi/laravel-smart-blog
Then install Bricklayer.js trough npm
npm install bricklayer
To work the package aspect that in your user model and table you have a field called group that can have this possible values:
Just the users that have Admin and Super admin privileges can access to the routes that allow to create, edit and delete the blogs, categories and posts. Otherwise you get redirected to the homepage.
It's possible to customize the scss and the js publishing them in your Laravel application.
php artisan vendor:publish
This command will publish in your application this folders:
In this way it's possible for you to customize them.
php artisan migrate
To create the gallery_images table in your database.
Run in the command line:
npm i prismjs
In the resources/js/app.js file of your application require the Bricklayer and bricklayerBlogLayout.js files before the Vue object get instanciated:
require('./bootstrap');
window.Vue = require('vue');
window.Bricklayer = require('bricklayer');
require('./vendor/laravel-smart-blog/bricklayerBlogLayout');
window.myApp = new Vue({
el: '#app'
});
import 'prismjs';
In the resources/sass/app.scss file of your application import the scss
@import 'vendor/laravel-smart-blog/bricklayerBlogLayout';
Then you can run Laravel Mix
npm run dev
After the package is published it adds three new routes:
Accessing to this routes you can create new blogs, categories and posts and access to them.
You can run unit tests checking the code coverage using this command.
./vendor/bin/phpunit --coverage-html=html
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.