| 1 | <?php namespace Arcanesoft\Auth\Seeds\Foundation; |
||
| 12 | class RoleTableSeeder extends Seeder |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Main Functions |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * Run the database seeds. |
||
| 20 | */ |
||
| 21 | public function run() |
||
| 37 | |||
| 38 | /* ------------------------------------------------------------------------------------------------ |
||
| 39 | | Other Functions |
||
| 40 | | ------------------------------------------------------------------------------------------------ |
||
| 41 | */ |
||
| 42 | /** |
||
| 43 | * Seed roles. |
||
| 44 | * |
||
| 45 | * @param array $roles |
||
| 46 | */ |
||
| 47 | protected function seed(array $roles) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Create a role. |
||
| 56 | * |
||
| 57 | * @param array $data |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | protected function createRole(array $data) |
||
| 70 | } |
||
| 71 |