Skip to content

Commit

Permalink
seeder update
Browse files Browse the repository at this point in the history
  • Loading branch information
User authored and User committed Aug 27, 2022
1 parent 7be6eef commit 6f645ba
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ GOOGLE_REDIRECT_URI=http://127.0.0.1:8000/login/google/callback

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URI=http://127.0.0.1:8000/login/facebook/callback
FACEBOOK_REDIRECT_URI=http://localhost:8000/login/facebook/callback
16 changes: 16 additions & 0 deletions database/seeders/PermissionSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,21 @@ public function run()
'name' => 'Log Delete',
'slug' => 'log-delete'
]);

//Settings
$moduleBackup = Module::updateOrCreate([
'name' => 'Settings',
'name_bn' => 'সেটিংস'
]);
Permission::updateOrCreate([
'module_id' => $moduleBackup->id,
'name' => 'Setting Index',
'slug' => 'setting-index'
]);
Permission::updateOrCreate([
'module_id' => $moduleBackup->id,
'name' => 'Setting Update',
'slug' => 'setting-update'
]);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a:4:{s:6:"_token";s:40:"Ji6JRDJDLIQBJ8vuKoHxLCGZlFfkYC2g81dmYu4T";s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:9:"_previous";a:1:{s:3:"url";s:36:"http://127.0.0.1:8000/login/facebook";}s:5:"state";s:40:"AM1FQevSV3nNHaFRu5JNwfm8K1K02hxTnPwMzOit";}

0 comments on commit 6f645ba

Please sign in to comment.