Questions tagged as 'laravel-5'

1
answer

Form in Laravel 5.4?

I'm having a hard time trying to create a form in Laravel 5.4, at the time of loading View the following error appears:    "ErrorException in helpers.php line 532: htmlspecialchars () expects parameter 1 to be string, array give...
asked by 19.05.2017 / 21:41
1
answer

Finding last vector item in foreach?

I need to know what the last item in the vector is so that when the last one does not add a comma: Example: SEM SABER QUAL É O ULTIMO ITEM 1,2,3,4,5, SABENDO QUAL É A ULTIMA VIRGULA 1,2,3,4,5 I make a foreach in the variable,...
asked by 30.04.2017 / 16:14
1
answer

Help with relationships in laravel

I'm really enjoying using laravel 5.4 and I have some questions about relationships and how best to use I have the tables evento -id -nome categorias_evento -id -id_evento -nome lotes_evento -id -id_categorias_evento -valor itens_ev...
asked by 08.06.2017 / 21:32
1
answer

Validate unique email Laravel | Different Tables

I have a question regarding the unique field validation in Laravel. I have two tables without relationships ( users and companies ), both have a email column. I need to validate the email field uniquely in the two d...
asked by 22.03.2017 / 12:05
1
answer

Write Hmtl Table data in the Bank | Laravel 5.1

I'm having a question regarding retrieving information from an html table and saving it to the database using laravel. This part of the application consists of storing information related to the tests that this user is supposed to perform in...
asked by 14.03.2017 / 21:35
1
answer

Manual Authentication of a Table Field in the Laravel Framework 5.3

I'm now starting with Framewok Laravel 5.3. , however when I create it with artisan o make:auth it automatically creates the views , model , and controllers for Login . Only I added a field in tables users...
asked by 21.12.2016 / 00:12
1
answer

Please provide a valid cache path

I just made a git clone (copy) of a Laravel application just made in the company where I work. I circled composer update and artisan key generate to make the initial settings, as well as edited the .env file to con...
asked by 12.12.2016 / 11:51
1
answer

How to use artisan make: migration in a subdirectory with Laravel 5

I'm starting to build an extremely robust application using laravel 5 and I need to organize all my tables migration codes. My solution was to structure subfolders to make it easier to understand and modularize this application. The problem is t...
asked by 28.11.2016 / 17:13
1
answer

Combobox with yes and no on laravel

I have a combobox that has the values yes and no. It is bringing the value not that I put in the bank but in the form of edit does not appear the other option that in the case would be the sim. How do I make the opposite option appear? <sel...
asked by 24.11.2016 / 14:47
1
answer

Problem with referential integrity in migrations (Laravel 5)

I have a problem using onDelete('set null') in a foreign key. You are returning the error:    [Illuminate \ Database \ QueryException]   SQLSTATE [HY000]: General error: 1215 Can not add foreign key constraint   (SQL: alter table u...
asked by 30.11.2016 / 16:59