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