2017 © Pedro Peláez
 

library post

Admin Post

image

giaphiep/post

Admin Post

  • Wednesday, November 22, 2017
  • by giaphiep
  • Repository
  • 1 Watchers
  • 1 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 24 Versions
  • 3 % Grown

The README.md

Admin template, (*1)

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*2)

Install

Via Composer, (*3)

``` bash $ composer require giaphiep/post, (*4)


## Usage 1. In configs/app.php file, add the following to the providers array (optional in version 5.5) ``` php GiapHiep\Post\PostServiceProvider::class, Yajra\DataTables\DataTablesServiceProvider::class,

and in aliases array ``` php 'DataTables' => Yajra\DataTables\Facades\DataTables::class,, (*5)


2. Run commands to publish the package’s config and assets and database ``` bash $ php artisan vendor:publish $ php artisan migrate
  1. Run commands to clear cache ``` bash php artisan route:clear php artisan config:clear
4. Ensure that the files & images directories (in config/lfm.php) are writable by your web server (run commands like chown or chmod).

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

``` php
 'optimizeImages' => \Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages::class,
  1. In config/lfm.php, add the following to the middlewares array

``` php 'middlewares' => [ ..., 'optimizeImages'],, (*6)




## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email hiep.giapvan@gmail.com instead of using the issue tracker., (*8)

Credits

  • [Giáp Hiệp][https://giaphiep.com]

License

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

The Versions