Posts by Artenes Nogueira • 171 points
6 posts
-
1
votes1
answer81
viewsA: Optimizing Middleware Standard Behavior
Answer to question Is not possible. You must return an instance of Illuminate\Http\Request because other middleware are waiting for an instance of this class to continue their work. If you pass…
-
3
votes2
answers4034
viewsA: dynamic url in ajax
var url = window.location.href; jQuery.ajax({ url: url, //outras coisas vão aqui }); The call to window.location.href will take the current url of the page. Pass this to the method call ajax and you…
-
0
votes1
answer141
viewsA: call method in the Laravel query
Using the Query Builder of Laravel, your query should look like this: DB::table('users') ->select('posts.descr, posts.dt_hr, friends.name') ->join('friends', 'users.id', '=',…
-
0
votes1
answer228
viewsA: Use Phpunit with interactive form
To solve this problem you must change the way you are performing the test. Making use of the Laravel test API, it is not possible to test features that are implemented in JS (This will be possible…
-
3
votes1
answer6043
viewsA: How to make mask for display phone, cnpj, Cpf, etc on Laravel
Well, as you want to display, then you have two options: Format the value before sending to view; Format the value in the view using JS. To format using PHP the code you have shown should already…
laravelanswered Artenes Nogueira 171 -
0
votes2
answers265
viewsA: Foreign Key between different databases
I never had to do this, but given a search on google I found this solution (I did not test to see if it really works):…