sendmail
This commit is contained in:
@@ -35,8 +35,10 @@ class AdminController extends Controller
|
||||
//Get the user and permission from the form
|
||||
$user = $request->user;
|
||||
$permission = $request->permission;
|
||||
var_dump($user);
|
||||
var_dump($permission);
|
||||
//Get the character id from the username using the user table
|
||||
$character = DB::table('users')->where(['name' => $user])->first();
|
||||
$character = DB::table('users')->where(['name' => $user])->get();
|
||||
dd($character);
|
||||
//Check to see if the character already has the permission
|
||||
if(!UserPermission::where(['character_id' => $character->character_id, 'permission' => $permission])->exists()) {
|
||||
|
||||
Reference in New Issue
Block a user