database/seeds/RoleTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
	{
		$role_admin = new Role();
		$role_admin->name = 'admin';
		$role_admin->display_name = 'Admin';
		$role_admin->save();
		$role_member = new Role();
		$role_member->name = 'member';
		$role_member->display_name = 'Member';
		$role_member->save();
	}
public function run ( ) { $ role_admin = new Role ( ) ; $ role_admin -> name = 'admin' ; $ role_admin -> display_name = 'Admin' ; $ role_admin -> save ( ) ; $ role_member = new Role ( ) ; $ role_member -> name = 'member' ; $ role_member -> display_name = 'Member' ; $ role_member -> save ( ) ; }
Run the database seeds.
Run the database seeds .