giaphiep/post

1.24 2017-11-22 17:30 UTC

This package is not auto-updated.

Last update: 2024-03-17 01:48:28 UTC


README

Admin template

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

$ composer require giaphiep/post

Usage

  1. 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,
  1. Run commands to publish the package’s config and assets and database
$ php artisan vendor:publish
$ php artisan migrate
  1. Run commands to clear cache
 php artisan route:clear
 php artisan config:clear
  1. Ensure that the files & images directories (in config/lfm.php) are writable by your web server (run commands like chown or chmod).

  2. In app/Http/Kernel.php, Add the following to the routeMiddleware array

 'optimizeImages' => \Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages::class,
  1. 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

License

The MIT License (MIT). Please see License File for more information.