Exemplo n.º 1
0
 public function store(Request $request, Partner $partner)
 {
     Partner::create($request->all());
     Flash::success('Partner has been created successFully!');
     return Redirect::back();
 }
Exemplo n.º 2
0
 public function store(Request $request, Partner $partner)
 {
     $partner = Partner::create($request->all());
     return response(['data' => $partner, 'status' => 'success', 'message' => 'successfully created']);
 }