mercredi 25 octobre 2017

Move a record from one table to another laravel

I've a list of users , where admin can approve or deny.Maintain tw tables if admiin clicks approve a user,the recors 'ld move from that table to another table.How can I achieve this? In view,

         <span><a href="{!! route('approve', ['id' => $user->id]) 
         !!}">Approve</a></span><br/>

In route,

Route::get('approve/{id}', ['uses' => 'DriverController@postApprove', 'as' 
 => 'approve']);

In controller,

public function postApprove($id)
{
 **?**
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zOa0DG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire