Downloads
Stars
Version
A Laravel library to generate responsive columns with multi language contents.
The library replace all the occurances of this snippet
{# column_group column_group_id=[1] #}
With the some HTML code of the relative column group. This code uses bootstrap 4.
You can install the package via composer:
composer require davide-casiraghi/laravel-columns
php artisan vendor:publish --force
php artisan migrate
npm install press-css
https://github.com/codyogden/press-css
Add this lines to your resources/sass/app.scss file:
@import "~press-css/css/press.css";
@import 'vendor/laravel-columns/columns';
and then run in console:
npm run dev
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.
After the package is published this new routes will be available:
Accessing to this routes you can manage new column groups and columns.
Then to replace all the occurrance of the column group snippets:
use DavideCasiraghi\LaravelColumns\Facades\LaravelColumns;
$text = LaravelColumns::replace_column_group_snippets_with_template($text);
./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.