Delete paddocks

This commit is contained in:
2020-04-17 09:13:58 +02:00
parent cf6d0ab467
commit 19e1123ef5
2 changed files with 12 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ class PaddockController extends Controller
*/
public function destroy($id)
{
//
Paddock::where('id', $id)->delete();
return Redirect::to('paddocks')
->with('success','Enclos supprimé.');
}
}