Download the PHP package vanguardkras/laravel-simple-articles without Composer
On this page you can find all versions of the php package vanguardkras/laravel-simple-articles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vanguardkras/laravel-simple-articles
More information about vanguardkras/laravel-simple-articles
Files in vanguardkras/laravel-simple-articles
Package laravel-simple-articles
Short Description A very basic package for making articles management.
License MIT
Informations about the package laravel-simple-articles
Laravel Simple Articles
Description
Laravel Simple Articles allows you to easily install an extension for your Laravel App for managing articles. This extension is easily configurable for your needs.
For editing articles the extension uses Summernote bootstrap extension:
Installation
1. Download the extension via composer:
2. In order to make pictures available, create laravel symbolic link to storage
in console:
3. Add database table:
Usage
Articles are now available on: your.domain/articles
Articles admin panel is available on: your.domain/admin_articles
Configuration
You obviously would like to configure views and some extensions feature. In this sections, will be explained how to do this.
Edit views and translations
Views
To edit view files, publish the extension views:
Now you can edit them in resources/views/vendor/articles
Articles per page
To edit the number of articles per page publish the extension config:
And modify parameter.
Translations
To edit translation files, publish the extension translations:
Now you can edit them in resources/lang/vendor/articles
User policy
In default behaviour any user is able to manage article. Of course, it is not appropriate for any production environment.
To change this behaviour you need to create in any class a static method that accept one optional parameter of an App\User instance and returns a boolean value like so:
In this method describe your logic for allowed users.
Then publish the config file:
And edit 'check_method' parameter in config/articles.php
Before @ should be your class full name, and after @, its static method.
Note for russian users
If you want to make summernote html editor interface work in Russian, publish its JS translation: