i am trying to first set in controller setOption(value, valuename) in controller and store in database and use it as getOption in views
but not working .
Here is my controller =>
public function update(Request $request)
{
setOption('company_name', $request->input('company_name'));
}
But not working
error =>
"Call to undefined function App\Http\Controllers\Admin\setOption()"
anybody got idea how do i use it ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire