foostart/package-serialize

dev-master 2020-06-08 04:23 UTC

This package is auto-updated.

Last update: 2024-11-08 14:04:18 UTC


README

#Package Filemanager

  • @webiste: http://foostart.com
  • @package-name: package-filemanager
  • @author: Kang
  • @date: 27/12/2017
  • @version: 2.0

@features

  1. CRUD
  2. Add category to form
  3. Language standard
  4. Add filters on table data
  5. Add token for prevent XSRF

Step 1: Install publish

  • php artisan vendor:publish --provider="Foostart\Serialize\SerializeServiceProvider" --force
  • php artisan vendor:publish --provider="Foostart\Slideshow\SlideshowServiceProvider" --force

Step 2: Add service providers to config/app.php

* Foostart\Serialize\SerializeServiceProvider::class,
* Foostart\Slideshow\SlideshowServiceProvider::class,
* Foostart\Filemanager\FilemanagerServiceProvider::class,
* Intervention\Image\ImageServiceProvider::class,

Step 3: And add class aliases

  • 'Image' => Intervention\Image\Facades\Image::class,

Step 4: Publish the package’s config and assets :

  • php artisan vendor:publish --tag=lfm_config
  • php artisan vendor:publish --tag=lfm_public

Step 5: Clear cache

  • php artisan route:clear
  • php artisan config:clear
  • php artisan storage:link

Step 6: Add user

foostart\laravel-filemanager\src\Handlers\ConfigHandler.php

user()->id; $auth = \App::make('authenticator'); $user = $auth->getLoggedUser(); if (empty($user)) { return NULL; } return $user->id; } }