Questions tagged as 'laravel-5'

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
0
answers

Laravel on Linux with NGINX. Error 500 in browser and Permission denied in log. An analysis and how to solve it in the best way possible?

I'm installing an application on Laravel 5.4 in a Linux Ubuntu 16.04 environment with NGINX. I have seen that a lot of people (just like me) always come across a 500 error in the browser, right after the installation is completed. The official...
asked by 12.03.2017 / 07:07
1
answer

Upload image on server does not work

When I upload locally using WAMP64, everything happens normally. However, when I upload from the site, which is on the production server, the following error message is displayed.    NoWritableException in Image.php line 143:       Can not w...
asked by 14.12.2016 / 21:17
0
answers

HTTP call error ERR_RESPONSE_HEADERS_TOO_BIG

I'm submitting a form with a lot of information and I get the following message: ERR_RESPONSE_HEADERS_TOO_BIG Short code snippet: $("#editForm").submit(); I understand that the error is because I am sending a lot of data, but is there...
asked by 10.05.2017 / 15:47
0
answers

Doubt too much relationship for laravel

I have the following relationship: My question comes in the programming of the order_products model, the real one would like to check if I'm doing it the right way, I programmed it like this: class EncomendaProdutos extends Model {...
asked by 22.10.2016 / 02:33
0
answers

Deploy laravel 5.2 FTP

I published my first laravel project via FTP, to understand how the structure works inside a server. I uploaded everything inside the folder www and created a .htaccess in the root to reference the public folder of laravel, so far everything...
asked by 13.07.2016 / 21:54
0
answers

Implementation of Doctrine 2.5 in Laravel 5.1 using the mysql database configuration

I started using the laravel recently and I was able to set up almost everything , but when configuring the database, right after installing Doctrine, it returns me this error:    SQLSTATE [3D000]: Invalid catalog name: 1046 No database sele...
asked by 21.12.2015 / 16:26
1
answer

How to redirect to auth / login in Laravel 5.1 if the visitor is not authenticated? [closed]

I am using Laravel 5.1 native authentication but when accessing a protected route the system does not redirect me to the login screen, instead it shows me the message "You do not have permission to access this resource." The routes then this...
asked by 17.09.2015 / 20:37
3
answers

How to make the relationship of an extra field (pivot) in belongsToMany

I currently have the following situation: 1 User can belong to multiple municipalities Within this relationship - municipios_usuarios - I need to also save who made this relationship, ie usuario_id public function municipi...
asked by 15.07.2015 / 14:39
2
answers

Default registry if you have no other - mysql

Is it possible to program the database so that there is a default record if there is no other one in the table? making the table impossible to be empty. So if you have other records, it ignores the default, if you do not have any, use the def...
asked by 26.02.2016 / 15:00