Skip to content
Jimmie Johansson edited this page Apr 27, 2016 · 5 revisions

Installation

You can install this package quickly via composer command line by running the following command in your terminal.

composer require pingpong/admin

After the package is installed, we need to add the following service providers to the providers array in config/app.php.

// file: config/app.php
return [
    'providers' => [
        Pingpong\Admin\Providers\SupportServiceProvider::class,
        Pingpong\Admin\AdminServiceProvider::class,
    ]
];

Then we need to update the auth.model config value to Pingpong\Admin\Entities\User.

// file: config/auth.php
return [
   'model' => Pingpong\Admin\Entities\User::class,
];

If you want to use your App\User model, you can extends the Pingpong\Admin\Entities\User class to your App\User or other model class.

// file: app/User.php
namespace App;

class User extends \Pingpong\Admin\Entities\User
{
  //
}

Next, publish the package's config and assets by running this following command.

php artisan vendor:publish --provider="Pingpong\Admin\AdminServiceProvider"

Next, install the package by running this following command.

php artisan admin:install

Done

Clone this wiki locally