public function store(Request $request, Permission $permission)
 {
     $permission = Permission::create($request->all());
     return response(['data' => $permission, 'status' => 'success', 'message' => 'successfully created']);
 }
Пример #2
0
 public function store(Request $request, Permission $permission)
 {
     Permission::create($request->all());
     Flash::success('Permission has been created successFully!');
     return Redirect::back();
 }