public function postDriveDelete($id) { $data = Files::find($id); // return $data->url; File::delete(public_path() . $data->url); $data->delete(); return back()->withInput(); }
public function getDriveEdit($id) { $data = Files::find($id); return $data; }