1: <?php namespace Laravella\Crud;
2:
3: use Laravella\Crud\Log;
4: use \Seeder;
5: use \DB;
6: use \Hash;
7:
8: class SeedUsers extends CrudSeeder {
9:
10: public function run()
11: {
12: DB::table('users')->delete();
13:
14: $password = $this->makeApiKey();
15:
16: $shortPassword = substr($password,0,8);
17:
18: $this->createUser('superadmin', 'superadmin', 'ravel', 'superadmin@yourwebsite.com', 'super', 'admin');
19:
20: $this->createUser('admin', 'admin', 'ravel', 'admin@yourwebsite.com', 'admin', 'admin');
21:
22:
23: Log::write(Log::INFO, "-- password : $shortPassword --");
24:
25:
26:
27: }
28:
29: }
30:
31: ?>