Hi, Im using laravel 5.3 and I have system config form.
as the title said, I want to do that step.
and here’s my Controller code
public function save(Request $request, $obj = null) {
if (!$obj) {
$obj = new Config;
return $this->saveHandler($request, $obj);
}
else{
$obj= Config::firstOrNew($id);
return view('config.index',compact('compact'));
}
}
it didn’t work, any idea ?