Posts by Jarbas • 21 points
3 posts
-
1
votes1
answer530
viewsQ: Making exceptions in the Eloquent ORM Observers
I have the following code in my model: public static function boot(){ parent::boot(); // Não deixa excluir caso possua registros vinculados. static::deleting(function($content_area){ if($total =…
-
0
votes1
answer246
viewsQ: PHP: Functions, Parameters, SOAP
I have the following code with two functions: public function getClientTemplates(){ $client_id = 31; $this->Send('client_get', compact(array('client_id'))); } public function Send($action,…
-
0
votes2
answers1110
viewsQ: Laravel 4 (Eloquent) Error deleting records
Hello, in this code below I delete the database of the selected records in a list of chekboxes. I have an array of Ids that is mounted as follows: Array ( [0] => 810 [1] => 811 ) On top of…