lundi 31 août 2015

How to fetch id of softdeleted data in laravel 4.2

 Model->

 use Illuminate\Database\Eloquent\SoftDeletingTrait;

 class Tasktime extends Eloquent

 {
public $table='tasktime';
use SoftDeletingTrait;

protected $softDelete = true;

protected $dates = ['deleted_at'];     }

Controller

public function releaseleader($id)
{

    $leader=Tasktime::find($id);
    $leader->delete();


        return Redirect::to('managertask/'.$id);
}

For example After softdelete it is not redirected to page with id such as managertask/17

But Before softdlete it is redirecting to page having id 17

Please help me



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

Aucun commentaire:

Enregistrer un commentaire