app/Http/Controllers/Admin/HomeController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Setting  $home
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request)
    {
        $record             = Home::find(1);
        $record->slider_title         = $request->slider_title;
        $record->slider_description     = $request->slider_description;
        $record->salient_title     = $request->salient_title;
        $record->salient_desc      = $request->salient_desc;
        $record->service_title      = $request->service_title;
        $record->service_desc      = $request->service_desc;
        $record->client_title      = $request->client_title;
        $record->client_desc      = $request->client_desc;
        if ($record->save()) {
            return redirect(route('admin.home'))->with('success', 'Success! Record has been edited');
        }
    }
public function update ( Request $ request ) { $ record = Home :: find ( 1 ) ; $ record -> slider_title = $ request -> slider_title ; $ record -> slider_description = $ request -> slider_description ; $ record -> salient_title = $ request -> salient_title ; $ record -> salient_desc = $ request -> salient_desc ; $ record -> service_title = $ request -> service_title ; $ record -> service_desc = $ request -> service_desc ; $ record -> client_title = $ request -> client_title ; $ record -> client_desc = $ request -> client_desc ; if ( $ record -> save ( ) ) { return redirect ( route ( 'admin.home' ) ) -> with ( 'success' , 'Success! Record has been edited' ) ; } }
Update the specified resource in storage.
Update the specified resource in storage .