modules/Pondit/Authorize/src/seeds/RolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $roles = [
            [
                'name' => 'Admin',
                'alias' => 'admin',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
            ],
            [
                'name' => 'Guest',
                'alias' => 'guest',
                'created_at' => Carbon::now()->toDateTimeString(),
                'updated_at' => Carbon::now()->toDateTimeString(),
            ]
        ];
        DB::table('roles')->insert($roles);
    }
public function run ( ) { $ roles = [ [ 'name' => 'Admin' , 'alias' => 'admin' , 'created_at' => Carbon :: now ( ) -> toDateTimeString ( ) , 'updated_at' => Carbon :: now ( ) -> toDateTimeString ( ) , ] , [ 'name' => 'Guest' , 'alias' => 'guest' , 'created_at' => Carbon :: now ( ) -> toDateTimeString ( ) , 'updated_at' => Carbon :: now ( ) -> toDateTimeString ( ) , ] ] ; DB :: table ( 'roles' ) -> insert ( $ roles ) ; }
Run the database seeds.
Run the database seeds .