(Update) Groups Migration

- This sets a new default base of groups
This commit is contained in:
HDVinnie
2018-01-03 14:24:22 -05:00
parent ab227b3adc
commit 07bc8efe9b
3 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class BugController extends Controller
public function bug()
{
// Fetch coder group
$group = Group::where('slug', '=', 'coder')->first();
$group = Group::where('slug', '=', 'owner')->first();
// grab the admins
$coders = User::where('group_id', '=', $group->id)->get();
@@ -44,7 +44,7 @@ class BugController extends Controller
foreach ($coders as $user) {
Mail::to($user->email, $user->username)->send(new Bug($input));
}
Toastr::success('Your Bug Was Succefully Sent To The Coders!', 'Success', ['options']);
Toastr::success('Your Bug Was Succefully Sent To The Owners!', 'Success', ['options']);
}
return view('bug.bug');
}