database/seeders/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $role = array(
            array(
                'name' => 'SuperAdmin',
                'description' => 'It\'s super admin section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Admin',
                'description' => 'It\'s admin section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Employee',
                'description' => 'It\'s employee section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Customer',
                'description' => 'It\'s customer section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Vendor',
                'description' => 'It\'s vendor section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Teacher',
                'description' => 'It\'s teacher section',
                'created_at' => date("Y-m-d H:i:s")
            ),
            array(
                'name' => 'Student',
                'description' => 'It\'s student section',
                'created_at' => date("Y-m-d H:i:s")
            )
        );
        DB::table('roles')->insert($role);
    }
public function run ( ) { $ role = array ( array ( 'name' => 'SuperAdmin' , 'description' => 'It\'s super admin section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Admin' , 'description' => 'It\'s admin section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Employee' , 'description' => 'It\'s employee section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Customer' , 'description' => 'It\'s customer section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Vendor' , 'description' => 'It\'s vendor section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Teacher' , 'description' => 'It\'s teacher section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) , array ( 'name' => 'Student' , 'description' => 'It\'s student section' , 'created_at' => date ( " Y-m-d H:i:s " ) ) ) ; DB :: table ( 'roles' ) -> insert ( $ role ) ; }
Run the database seeds.
Run the database seeds .