Model----------------------------------------------------------------- use Illuminate\Database\Eloquent\SoftDeletes; use HasFactory, SoftDeletes; Migration------------------------------------------------------------- $table->softDeletes(); Route----------------------------------------------------------------- get(); return view('trash_list',$data); } public function trash($id){ $data = Blog::find($id); $data->delete(); return back(); } public function restore($id){ $data = Blog::withTrashed()->find($id); $data->restore(); return back(); } public function delete($id){ $data = Blog::withTrashed()->find($id); $data->forceDelete(); return back(); } }