Posts by Lorenzo Fernandez • 89 points
7 posts
-
-1
votes4
answers1204
viewsA: Laravel - Function in Controller
Your code is always returning TRUE by the fact that the method get() of Eloquent returns a collection and not a boolean value. That is, even if there are no records that satisfy your query the…
-
3
votes2
answers139
viewsA: I can’t find the model generated by Artisan
The Laravel by default saves the models created through the Artisan in the directory app/, Probably be there, it would not make sense even to be in the directory that you are looking for, because a…
-
0
votes3
answers25
viewsA: Help with uncheck
The ideal solution to your problem is the use of HTML "radio" type elements. For example: <fieldset class="rating"> <input type="radio" name="rating" value="5" /> <input type="radio"…
jqueryanswered Lorenzo Fernandez 89 -
0
votes3
answers608
viewsA: Convert string to date
Good morning! Javascript has native handling of dates through the class Date. You can do something like this: var date = new Date("12/10/2017 12:08:26"); console.log(date.toString());…
javascriptanswered Lorenzo Fernandez 89 -
0
votes1
answer112
viewsA: Paginate Doubts Arable
Good morning! In the clause where it involves a sub-query you must use a Clousure (anonymous function) passing the desired information. Example: ... ->where(function($q) use ($query) {…
-
1
votes3
answers127
viewsA: How to check if a select is null
Good morning! First, I suggest you use some Javascript library like Jquery, for example. I believe it will really facilitate your work on the front end and the way you will handle the data. The…
-
2
votes2
answers644
viewsA: Real-Time How it works. Because I’m having problems with my Laravel 5.4 tests
In reality the idea of Real-Time service is exactly the opposite. Laravel’s broadcast service enables your application to perform server-side to client-side requests through the use of services that…