giaphiep / post
Admin Post
1.24
2017-11-22 17:30 UTC
Requires
- php: ~7.0
- giaphiep/admin: ^1.13
- illuminate/support: ~5.1
- spatie/laravel-image-optimizer: ^1.1
- unisharp/laravel-filemanager: ~1.8
- yajra/laravel-datatables-oracle: ^8.0
Requires (Dev)
- phpunit/phpunit: >=5.4.3
- squizlabs/php_codesniffer: ^2.3
README
Admin template
Install
Via Composer
$ composer require giaphiep/post
Usage
- In configs/app.php file, add the following to the providers array (optional in version 5.5)
GiapHiep\Post\PostServiceProvider::class, Yajra\DataTables\DataTablesServiceProvider::class,
and in aliases array
'DataTables' => Yajra\DataTables\Facades\DataTables::class,
- Run commands to publish the package’s config and assets and database
$ php artisan vendor:publish $ php artisan migrate
- Run commands to clear cache
php artisan route:clear php artisan config:clear
-
Ensure that the files & images directories (in config/lfm.php) are writable by your web server (run commands like chown or chmod).
-
In app/Http/Kernel.php, Add the following to the routeMiddleware array
'optimizeImages' => \Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages::class,
- In config/lfm.php, add the following to the middlewares array
'middlewares' => [ ..., 'optimizeImages'],
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email hiep.giapvan@gmail.com instead of using the issue tracker.
Credits
- [Giáp Hiệp][https://giaphiep.com]
License
The MIT License (MIT). Please see License File for more information.