app/Http/Controllers/HallController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Hall $hall)
    {
        $request->validate([
            'name'     => 'required',
        ]);
        $hall_data = [
            'name'     => $request->name,
        ];
        $hall->update($hall_data);
        return redirect()->route('hall.showlist')->with('success', 'Hall has been updated');
    }
public function update ( Request $ request , Hall $ hall ) { $ request -> validate ( [ 'name' => 'required' , ] ) ; $ hall_data = [ 'name' => $ request -> name , ] ; $ hall -> update ( $ hall_data ) ; return redirect ( ) -> route ( 'hall.showlist' ) -> with ( 'success' , 'Hall has been updated' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .