Exemplo n.º 1
0
 /**
  * Approve specified rpg site.
  *
  * @param  int  $id
  * @return Response
  */
 public function approve($id)
 {
     if (!Entrust::hasRole('admin')) {
         abort(403);
     }
     $site = RpgSite::find($id);
     $site->approved_at = Carbon::now();
     $site->save();
     return \Response::json(null, 200);
 }