-
-
Save fayqLs/e0128013944bbeb3ccbde601b2f2f04c to your computer and use it in GitHub Desktop.
EXCLUIR UM REGISTRO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = 34; | |
$produto = Produto::find($id); | |
if($produto) | |
{ | |
$produto->delete(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment