Questions tagged as 'laravel-5'

1
answer

Error while running db: seed command

I'm studying laravel in version 5.2 and running the php artisan command db: seed returns the following error:    [InvalidArgumentException]     Unable to locate factory with name [default] [CodePub \ Models \ User]. <?php use Illumina...
asked by 24.03.2016 / 03:19
0
answers

Laravel 5 - Timezone Wrong Time [closed]

I changed the timezone 'timezone' => 'America/Sao_Paulo' , but it is not getting the GMT +3 , which is Brasília. Do you have to change something else somewhere else, outside app.php?     
asked by 02.08.2016 / 20:29
1
answer

href blade Laravel and Vue.js

I'm doing the list of registered receivers and in each line there is an edit button, in href, I need to use the encrypt and pass the id, but this id comes from Vue.js and the blade using {{} } does not recognize the Vue.js variable, so my questi...
asked by 01.10.2017 / 17:52
1
answer

How to retrieve categories linked to a post?

Uploaded to Github ( link ) a small project in Laravel, something very initial. I want as soon as possible to fix the routes, to structure the methods, etc. I released this premature code because I came across a problem that I can not solve o...
asked by 12.04.2017 / 05:21
1
answer

How to access Vue-Router dynamic route parameter

Using the vue-router, I came across a problem, when a dynamic route, type { path: '/horario/:dia/:hora', component: Bar }, A problem occurs, I can not access the day and time values on the destination page, this is because it is a template,...
asked by 08.06.2017 / 05:09
2
answers

Changing pagination HTML in Laravel 5.1

Is there a way to change the HTML returned by the render() method in the inline pagination in Laravel 5.1? Note: I solved this by creating a helper that uses str_replace() , but I believe it is not the most correct medium. Tha...
asked by 16.09.2015 / 13:25
2
answers

Check Empty Fields - Laravel 5.3

I have an integer field and a date field that are not required and are programmed to accept NULL, but when I send the form data without filling in, my controller receives the empty value instead of ignoring the field, which generates the error:...
asked by 02.12.2016 / 13:51
1
answer

How to create a cron in Laravel?

I have to create a Cron in Laravel to send emails every 24h. I must upload the email to the bank. So after a query in the database cron should send the email with the query data.     
asked by 24.10.2017 / 22:17
2
answers

Error in Laravel 5.0

I have a connection problem in Laravel when executing a query: PDOException in Connector.php line 47: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) File database.php: 'mysql' => [ 'dr...
asked by 10.01.2018 / 14:05
2
answers

List Tree Categories in Laravel 5.1

I'm starting with Laravel 5.1 and I'm a bit lost yet. I need to list categories, subcategories and "sub-subcategories". Table: Categorias ------------------------ id | int nome | varchar categoria_pai | int Data:...
asked by 11.08.2015 / 19:53