skip to Main Content

Can’t Laravel 10 update data?

i can't update table data in laravel 10 with controller resource my code: // controller public function update(Request $request, string $id):RedirectResponse { // $input = $request->validate([ 'id'=>'required', 'name'=>'required', 'description'=>'required', ]); $accounting_group = AccountingGroup::findOrFail($id); $accounting_group->update($input); return redirect()->route('accounting_group.index')->with(['success' => 'Data telah disimpan']);…

VIEW QUESTION

How to add fullcallendar to a laravel app

I am trying to integrate fullcallendar in a laravel10 + Metronic app helpers.addVendors(['fullcalendar']); called from controller gives error: Undefined constant "AppHttpControllershelpers" CODE: <?php namespace AppHttpControllers; use AppModelsUser; use IlluminateHttpRequest; class CalendarController extends Controller { public function index() { helpers.addVendors(['fullcalendar']); return…

VIEW QUESTION

Saving records to database Laravel 10

I'm trying to save the data from the form. However, there is no record when I check the database side. I'm using Laravel 10 and mySQL v5.7. **Controller **store() public function store(Request $request) { $personnelRegistry = null; $personnerlRegistryId = (int)$request->input('personnelRegistryId',…

VIEW QUESTION
Back To Top
Search