Beispiel #1
0
 public function store(Request $request, Bug $bug)
 {
     Bug::create($request->all());
     Flash::success('Bug has been created successFully!');
     return Redirect::back();
 }
 public function store(Request $request, Bug $bug)
 {
     $bug = Bug::create($request->all());
     return response(['data' => $bug, 'status' => 'success', 'message' => 'successfully created']);
 }