예제 #1
0
 /**
  * Store a newly created resource in storage.
  * Validation error are in start/global.php
  *
  * @return Response
  */
 public function store()
 {
     $permission = new Permission();
     $permission->name = Request::get('name');
     $permission->description = Request::get('description');
     $permission->save();
     return redirect(route(config('larbac.routes.routePermission') . '.index'));
 }