Beispiel #1
0
 /**
  * Delete a single user
  * @param  Role    $user an ijnect instance of the user model
  * @return \Illuminate\Support\Facades\Redirect        redirect to the users index page with a flash message
  */
 public function delete(Role $role)
 {
     // we delete the role
     $role->delete();
     // redirect to the roles index
     return redirect()->route('roles.index')->with('success', trans('roles::roles.delete_success'));
 }