Questions tagged as 'laravel'

1
answer

PDF in Laravel returning View selected

Hello, I'm using DomPDF to try to return a report in pdf, but every time I call the view it loads like it's in an infinite loop and nothing happens. Follow my code CourseController.php public function downloadPDF($id) { $curso = Curs...
asked by 27.03.2018 / 13:18
0
answers

Difficulty in using Dropzone within modal Laravel 5.6

I have a modal, where there is a register working correctly and I am trying to include in this register an inclusion of images with Dropzone. But when I include images the layout comes unstructured as in the print below .. I think it's due to...
asked by 27.03.2018 / 15:53
0
answers

Populate Select2 With Data Attributes HTML5 values Laravel Collective

I'm having trouble populating a Select2 Multiple Values field with data from a Data Attributes, the fields like Name and description etc are being filled in, just the Select not !! WhenIclicktheeditbuttonIwouldliketogetthedatatofilltheselect...
asked by 19.03.2018 / 14:21
0
answers

Should file addresses be kept in a database when there is a default directory structure?

I have a table where I keep references to files, the columns are: id (auto-incremental) version (char size 3) title description cover (layer address) file (file address) Considering that at most 1 file will be upload...
asked by 20.03.2018 / 00:29
2
answers

Error: Trying to get a property of non-object

I'm running the following iteration and getting the error Trying to get property of non-object , the code being: @if(isset($propostas)) @foreach($propostas as $p) <tr&...
asked by 26.03.2018 / 18:41
2
answers

Create php folder inside another folder

I'm giving maintenance to a project made in laravel, where the object's files are saved in this path, pdf files C: \ xamp2 \ htdocs \ pmo \ public \ archives The code snippet where you save the files is this public function salvar($objA...
asked by 16.03.2018 / 18:55
0
answers

Help to format date on blade laravel

I need to format the date for 00-00-0000, the code below is view of laravel .blade.php <td class="col-sm-2" data-bind="text: created_at"></td> created_at is the database field. Just to illustrate, to limit characters I've got...
asked by 15.03.2018 / 20:51
2
answers

Sending E-mail to different accounts Laravel

Has anyone made or is it possible for each form in the site to send the data to different emails in Laravel? Exemplifying: Contact form sends the data to [email protected] Budget form submits data to [email protected]     
asked by 18.03.2018 / 01:58
1
answer

How to format field names in the output of Laravel validation messages?

I'm using $this->validate() to perform field validation in Laravel, how can I automatically underline the field name in the output of all valid validation error messages? I'm using Laravel 5.6     
asked by 15.03.2018 / 04:16
1
answer

Error PHP Artisan Migrate

I'm having the following error when executing the command.    In Connection.php line 647:       SQLSTATE [HY000] [1049] Unknown database 'localhost' (SQL: select *   from information_schema.tables where table_schem a = localhost and   table_...
asked by 15.03.2018 / 11:51