Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

webdevdea's avatar
     public function edit($clientID)
{
    // get the clientsite
    $ClientSite = clientSite::find($clientID);

return View::make('edit')->with('ClientSites', $ClientSite);


}

     public function doEdit()
     {
         $ClientSite = clientSite::findOrFail(Input::get('clientID'));
        $ClientSite->siteName = Input::get('siteName');
        $ClientSite->description = Input::get('description');

        $ClientSite->save();

        return Redirect::action('PagesController@home');
    dd($clientSites);    
     }

}

fraserk's avatar

you have dd($clientSites); the wrong place. Move it up to you edit function.

like

     public function edit($clientID)
{
    // get the clientsite
    $ClientSite = clientSite::find($clientID);
     dd($ClientSite);
     return View::make('edit')->with('ClientSites', $ClientSite);


}
bashy's avatar

I know you said you're new this "this framework" but this is basic PHP debugging.

faisal.arbain@gmail.com's avatar

i think your machine is case sensitive. I encountered before where my production server is case sensitive. :|

Previous

Please or to participate in this conversation.