Questions tagged as 'laravel'

1
answer

How to execute a function in cron job?

I would like to know how and how best to perform a cron job, if I write it as a direct function in cron? I would like to do it every day at 6am. public function atualizarpontuacao(){ $palpites = Listadepalpites::all(); $data = da...
asked by 07.10.2017 / 01:00
1
answer

How to identify the data type returned from a controller?

I noticed that when creating a controller in Laravel it says that some methods will return a \Illuminate\Http\Response object. I used a dd () at the end of the method and saw the following return: \Illuminate\View\View and in another...
asked by 01.10.2017 / 21:36
0
answers

Laravel Problem with passing parameters to Controllers

So I have a relevant problem. I need to create a link to the controller.edit to edit clear a value in the database. I've tried practically everything. But I keep getting an error:    htmlspecialchars () expects parameter 1 to be string, array...
asked by 08.10.2017 / 20:47
1
answer

Custom Request does not redirect Laravel 5.4

I'm implementing a system and I've created a request through the command: php artisan make:request PreventivaRequest Home I put my rules in Request: <?php namespace App\Http\Controllers\Tecnologia\Preventivas\Requests; use Illumi...
asked by 21.09.2017 / 16:44
0
answers

Display a file that is in the Storage folder - Laravel 5.2

I have a problem with my code. I can normally insert the file into the storage folder $pathfile = $this->path_monografia . $monografia->id . DIRECTORY_SEPARATOR . "monografia.pdf"; Storage::disk('public')->put($pathfile, File::get($r...
asked by 20.09.2017 / 18:15
1
answer

symbolic link with the storage laravel folder 5.2

Currently there is the PHP command artisan storage: link that makes the symbolic link between public / storage and storage / app / public. I would like to know how to make this link in laravel 5.2 since in this version there is no such command...
asked by 20.09.2017 / 19:47
0
answers

Laravel "Malformed UTF-8 characters"

I'm using Laravel in version 5.4 (PHP 5.6) to develop an API. Recently, when the API was published in Umbler (Linux), when trying to access endpoints that return strings with special characters (more specifically ù, ã, í) and / or UUIDs the f...
asked by 19.09.2017 / 16:33
0
answers

Doubt Installation of Laravel and PHP 7.0 WampServer

I have a question. This is the first time I install Laravel and for this, I followed the tutorial of the following forum Tableless . So far so good, the installation is ok, but when creating the first project, I get the following message:...
asked by 28.09.2017 / 02:51
1
answer

problems with using Laravel FrameWorks

I'm following a video lesson to understand how vue behaves, however this video lesson is on top of a PHP project, I understand little of PHP. I did as I did in the video below; 1 - CRUD at LARAVEL & VUEjs - Webpack, Laravel...
asked by 28.09.2017 / 13:30
0
answers

Bug lib jQueryGantt on page with bootstrap

I'm using the jQueryGantt plugin ( link ) but I realize that on pages with bootstrap it "buga" the table as in the image below , I would like to know if anyone has already used this lib and can help me.     
asked by 21.09.2017 / 00:32