Exemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $permiso = new Permiso();
     $permiso->nombre = Request::get('nombre');
     $permiso->save();
     return Response::json(array('error' => false, 'permisos' => $permiso->toArray()), 200);
 }