Download the PHP package davide-casiraghi/laravel-smart-blog without Composer
On this page you can find all versions of the php package davide-casiraghi/laravel-smart-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davide-casiraghi/laravel-smart-blog
More information about davide-casiraghi/laravel-smart-blog
Files in davide-casiraghi/laravel-smart-blog
Package laravel-smart-blog
Short Description A smart multi language blog package for Laravel.
License MIT
Homepage https://github.com/davide-casiraghi/laravel-smart-blog
Informations about the package laravel-smart-blog
Laravel Smart Blog
A multi language blog package for Laravel.
Installation
You can install the package via composer:
Then install Bricklayer.js trough npm
Authorization
To work the package aspect that in your user model and table you have a field called group that can have this possible values:
- null: Registered user
- 1: Super Admin
- 2: Admin
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.
Load the CSS and JS files
With Laravel
Publish the JS, CSS and IMAGES
It's possible to customize the scss and the js publishing them in your Laravel application.
This command will publish in your application this folders:
- /resources/scss/vendor/laravel-smart-blog/
- /resources/js/vendor/laravel-smart-blog/
In this way it's possible for you to customize them.
Run the migration
To create the gallery_images table in your database.
Load the JS file
Run in the command line:
In the resources/js/app.js file of your application require the Bricklayer and bricklayerBlogLayout.js files before the Vue object get instanciated:
In the resources/sass/app.scss file of your application import the scss
Then you can run Laravel Mix
Usage
After the package is published it adds three new routes:
- /blogs
- /categories
- /posts
Accessing to this routes you can create new blogs, categories and posts and access to them.
Testing
You can run unit tests checking the code coverage using this command.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Davide Casiraghi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-smart-blog with dependencies
astrotomic/laravel-translatable Version ^11.1
davide-casiraghi/bootstrap-accordion-integrator Version ^1.2
davide-casiraghi/laravel-cards Version ^1.0
davide-casiraghi/laravel-jumbotron-images Version ^1.0
davide-casiraghi/laravel-responsive-gallery Version ^1.1
illuminate/support Version 5.8.*
intervention/image Version ^2.4
mcamara/laravel-localization Version ^1.3
mews/purifier Version ^2.1
nesbot/carbon Version ^2.17