decoweb/panelpack

Admin panel pack for laravel

Installs: 60

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:HTML

Type:project

1.2.0 2020-06-08 19:35 UTC

This package is not auto-updated.

Last update: 2021-04-13 20:31:03 UTC


README

Admin panel for Laravel

Installation

Install the package through Composer.

composer require decoweb/panelpack

Add the following providers to config/app.php :

Collective\Html\HtmlServiceProvider::class,
Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class,
Watson\Sitemap\SitemapServiceProvider::class,
Decoweb\Panelpack\PanelPackProvider::class,
Unisharp\Ckeditor\ServiceProvider::class,
Decoweb\Panelpack\Providers\ShopServiceProvider::class,
Decoweb\Panelpack\Providers\PicturesServiceProvider::class,
Decoweb\Panelpack\Providers\ComposerServiceProvider::class,
Laravel\Socialite\SocialiteServiceProvider::class,
Barryvdh\DomPDF\ServiceProvider::class,

And to aliases:

'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Image' => Intervention\Image\Facades\Image::class,
'Cart' => Gloudemans\Shoppingcart\Facades\Cart::class,
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
'PDF' => Barryvdh\DomPDF\Facade::class,
'Sitemap' => Watson\Sitemap\Facades\Sitemap::class,

Run vendor:publish

php artisan vendor:publish

Before installing the migrations, don't forget:

  1. to delete the shopping cart migration already published, since Panelpack has its own migration for it;
  2. to modify App\Providers\AppServiceProvider.php :
use Illuminate\Support\Facades\Schema;
public function boot()
    {
        Schema::defaultStringLength(191);
    }

Run the php artisan migrate.

To the App\Http\Kernel.php, add the following middlewares:

'customer' => \App\Http\Middleware\RedirectIfCustomer::class,
'loggedcustomer' => \App\Http\Middleware\RedirectIfNotCustomer::class,
'verifiedcustomer' => \App\Http\Middleware\NotVerifiedCustomer::class,