1. Go to this page and download the library: Download tonnyorg/laraseed library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Illuminate\Database\Seeder;
use TonnyORG\LaraSeed\Database\Traits\SeedersHandler;
class DatabaseSeeder extends Seeder
{
use SeedersHandler;
$this->call(UsersTableSeeder::class);
$this->try(UsersTableSeeder::class);
'providers' => [
'users' => [
// other stuff here
],
'administrators' => [
'driver' => 'eloquent',
'model' => App\Administrator::class, // We are going to create this model in the next step
],
],
// more stuff here
'passwords' => [
'users' => [
// and more stuff here as well
],
'administrators' => [
'provider' => 'administrators',
'table' => 'administrator_password_resets',
'expire' => 60,
'throttle' => 60,
],
],