Posts by Adriano Vianna • 23 points
6 posts
-
0
votes1
answer31
viewsQ: php method that checks two strings in a variable
Does anyone know any method in PHP that matches the value of a variable with string? I need to refactor the following code: public function hasPlan() : bool { return $this->reference === 'unico'…
-
0
votes1
answer119
viewsA: Error when testing with Laravel Dusk
I was able to find the mistake. In my file . env needed to put APP_URL=http://127.0.0.1:8000 , because I realized that it inserts the url in front. so the code was like this.…
-
0
votes1
answer119
viewsQ: Error when testing with Laravel Dusk
Good morning guys, has anyone ever had experience with Laravel Dusk who can help me? I can not do the Authentication by Browser to be able to access the screens, in my case I have different Wards,…
-
2
votes4
answers174
viewsA: Comments weigh the code in C#?
As C# is compiled, comments are ignored by the compiler, meaning there is no loss of performance. Take a look at the logic of your system, maybe the way it was written is weighing on.…
-
0
votes0
answers35
viewsQ: How to make multiple validations Requests in Laravel?
Laravel allows you to create Requests to validate fields coming from the front end, but I wanted to make several Requests to validate a giant Request. Is it possible? It’s good practice? I made…
-
3
votes1
answer340
viewsQ: How to change Laravel’s relationship keyword
I have the following problem, I entered a project where the database already existed and is in production, so all foreign keys of this bank are with the nomenclature fk_ and the Eloquent of Laravel,…