Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to update a table based on three columns laravel

$name=Input::get('name');
        DB::table('attendence')
            ->where('name',$name)
            ->update([
                'checkedout' =>  $this->data->checkedout,
                'type'=> $this->data->type,
            ]);
        return redirect('attendence')->with('Thank You!');
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #update #table #based #columns #laravel
ADD COMMENT
Topic
Name
9+4 =