foostart / package-post
Manage post
12.0.4
2025-05-07 09:40 UTC
Requires
- foostart/package-filemanager: ^12.0
- foostart/package-slideshow: ^12.0
- dev-master
- 12.0.4
- 12.0.3
- 12.0.2
- 12.0.1
- 12.0.0
- 11.1.0
- 10.0.9
- 10.0.8
- 10.0.7
- 10.0.6
- 10.0.5
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.0.2
- 7.0.1
- 7.0.0
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 1.0.0
- dev-3-laravel-12x/2-convert-laravelcollective-to-spatie
- dev-1-review/1-overview
- dev-2-laravel-9x/1-core
- dev-3-laravel-12x/1-core
This package is auto-updated.
Last update: 2025-05-09 03:00:01 UTC
README
- @webiste: http://foostart.com
- @package-name: package-filemanager
- @author: Kang
- @date: 27/12/2017
- @version: 2.0
Features
- CRUD
- Add category to form
- Language standard
- Add filters on table data
- Add token for prevent XSRF
Step 1: Add service providers to config/app.php
- Foostart\Post\PostServiceProvider::class,
- Foostart\Slideshow\SlideshowServiceProvider::class,
- Foostart\Filemanager\FilemanagerServiceProvider::class,
- Intervention\Image\ImageServiceProvider::class,
Step 2: Add class aliases to config/app.php
- 'Image' => Intervention\Image\Facades\Image::class,
- 'Input' => Illuminate\Support\Facades\Request::class,
Step 3: Install publish
- php artisan vendor:publish --provider="Foostart\Post\PostServiceProvider" --force
- php artisan vendor:publish --provider="Foostart\Slideshow\SlideshowServiceProvider" --force
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: Migrate and Seeder
Run the following
- php artisan migrate
- php artisan db:seed
Step 7: Add user
foostart\laravel-filemanager\src\Handlers\ConfigHandler.php
<?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;
}
}