Created
September 1, 2014 05:40
-
-
Save Vheissu/209e3adec81c51ba69bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RoleTableSeeder extends Seeder { | |
public function run() | |
{ | |
// Delete any content in the roles table | |
DB::table('roles')->delete(); | |
$role_data = array( | |
array('role_name' => "Administrator", 'role_description' => "Administrators can do everything on the site"), | |
array('role_name' => "Moderator", 'role_description' => "Can edit, approve or reject content"), | |
array('role_name' => "Basic", 'role_description' => "Just a basic user") | |
); | |
foreach ($role_data AS $role) { | |
Role::create($role); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment