2017 © Pedro Peláez
 

library package-post

Manage post

image

foostart/package-post

Manage post

  • Tuesday, March 27, 2018
  • by foostart.com
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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: Add service providers to config/app.php

  1. Foostart\Post\PostServiceProvider::class,
  2. Foostart\Slideshow\SlideshowServiceProvider::class,
  3. Foostart\Filemanager\FilemanagerServiceProvider::class,
  4. Intervention\Image\ImageServiceProvider::class,

Step 2: Add class aliases to config/app.php

  1. 'Image' => Intervention\Image\Facades\Image::class,
  2. 'Input' => Illuminate\Support\Facades\Request::class,

Step 3: Install publish

  1. php artisan vendor:publish --provider="Foostart\Post\PostServiceProvider" --force
  2. php artisan vendor:publish --provider="Foostart\Slideshow\SlideshowServiceProvider" --force

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

  1. php artisan vendor:publish --tag=lfm_config
  2. php artisan vendor:publish --tag=lfm_public

Step 5: Clear cache

  1. php artisan route:clear
  2. php artisan config:clear
  3. php artisan storage:link

Step 6: Migrate and Seeder

Run the following 1. php artisan migrate 1. php artisan db:seed, (*1)

Step 7: Add user

foostart\laravel-filemanager\src\Handlers\ConfigHandler.php, (*2)

<?php

namespace Foostart\Filemanager\Handlers;


class ConfigHandler
{
    public function userField()
    {
        //original
        //return auth()->user()->id;
        $auth = \App::make('authenticator');
        $user = $auth->getLoggedUser();
        if (empty($user)) {
            return NULL;
        }
        return $user->id;
    }
}

The Versions

27/03 2018

dev-master

9999999-dev

Manage post

  Sources   Download

MIT

foostart laravel 5 package post

27/01 2018

1.0.0

1.0.0.0

Manage post

  Sources   Download

MIT

foostart laravel 5 package post