public function store(Request $request, Provider $provider)
 {
     $provider = Provider::create($request->all());
     return response(['data' => $provider, 'status' => 'success', 'message' => 'successfully created']);
 }
Пример #2
0
 public function store(Request $request, Provider $provider)
 {
     Provider::create($request->all());
     Flash::success('Provider has been created successFully!');
     return Redirect::back();
 }