예제 #1
0
 public function getDeleteApiApplication($application_id)
 {
     // Lets go a quick look to see if this application
     // already exists in the database
     $application = SeatApiApplication::find($application_id);
     if (!$application) {
         App::abort(404);
     }
     // Create a new API Application
     $application->delete();
     return Redirect::back()->with('success', 'The application has been deleted!');
 }