Posts by Ricardo Santos • 86 points
6 posts
-
1
votes1
answer427
viewsA: My cron is not running
Try running in the terminal of your project: php Artisan example:cron and see if there is an error. If there is an error, it is correct what is wrong. In parallel, in order for crons to work, it is…
-
1
votes2
answers457
viewsA: get variable value javascript
It is important to know that one of the features of Javascript is the Callbacks. (https://codeburst.io/javascript-what-the-heck-is-a-callback-aba4da2deced) So, when you send the variable to the file…
-
0
votes1
answer54
viewsA: Laravel Query Builder - problem with two Join
Join solves, but you can simplify creating relationships between models. Example: In the Post template you add the following (This is examples): public function user() { return…
-
0
votes2
answers105
viewsA: Problems with return api in Laravel
That call on the controller is a little fuzzy.. and so is the answer. This is not really an array, but a mixture of arrays, with indices with strings with spaces. I had a project where a Veloper…
laravelanswered Ricardo Santos 86 -
1
votes1
answer180
viewsA: Integrity Constraint Violation in "Many to Many" create - Laravel
From what I understand of your problem, are concerned only two models (Entreprice and Client), in these cases use the hasMany method, in the sense that a company can have several customers, as well…
-
1
votes2
answers72
viewsA: Doubt regarding the Task Schedule- Laravel events
The method ->hourly(); runs at the beginning of each hour. 13:00,14:00 etc. To run at a specific minute there is another method: ->hourlyAt(17);