Posts by Guh • 171 points
8 posts
-
1
votes1
answer3813
viewsA: How to resolve this 'Undefined variable' error when accessing a view in Laravel 5.1?
I believe the problem is this one: Route::get('criar-lema', function () { return view('lema.create-lema'); }); In his method index(), you are passing the motto in the method ->with(). Already in…
-
1
votes2
answers531
viewsA: Coding conflict using Tinker and Laravel
This one is complicated. I also have problems with accents using the tinker. In the quick tests I do using the tinker, I no longer use accents. At Stackoverflow in English, I found the following…
-
0
votes1
answer788
viewsA: How to run a Function in cron job?
As you are using Laravel, you can write that your function within the method protected function schedule(Schedule $schedule) class App\Console\Kernel. The example of what your role would look like…
-
1
votes1
answer375
viewsA: Create Model from a Migration
I looked into it, and apparently you don’t. The attribute name of the command that is in the file MigrateGenerateCommand.php only displays the value migrate:generate. Normally, if there were any…
-
0
votes1
answer56
viewsA: Make a . JS available to other websites
These parameters will be available via GET. In your script, you would use something like this: // Vai armazenar o endereço da requisição, no caso,…
javascriptanswered Guh 171 -
2
votes1
answer237
viewsA: Ajax returns error after modifying htaccess
Yes, the problem in this case is the URL. I see how solution change your URL: Of: http://www.xxxx.com.br/criar-pagina-ajax.php To: http://www.xxxx.com.br/criar-pagina So when you split your URL…
-
3
votes4
answers650
viewsA: Return multiple arrays using a buffer without overloading memory
I don’t know much about buffers in PHP, but I think the correct thing in this case would be to "drop" what is stored in the array, and then go get the rest. I think an interesting option would be…
-
3
votes4
answers47574
viewsA: Capture screen size at time of request
Good morning buddy! Well, we can divide your question into 2 steps: Screenshot and upload to server. The friend @afsantos answered correctly how to catch the screen size: var w = window, d =…
javascriptanswered Guh 171