app/Http/Controllers/Admin/BusController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Bus  $bus
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateBusRequest $request, Bus $bus)
    {
        $bus->update($request->validated());
        return redirect()->route('admin.buses.index')
            ->with('success', 'Bus updated successfully');
    }
public function update ( UpdateBusRequest $ request , Bus $ bus ) { $ bus -> update ( $ request -> validated ( ) ) ; return redirect ( ) -> route ( 'admin.buses.index' ) -> with ( 'success' , 'Bus updated successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .