Questions tagged as 'laravel'

2
answers

I can not access my Laravel 5 project by Vagrant and Nginx

I'm creating a development environment using Vagrant with the following dependencies: PHP7; PostgreSQL 9.3; Nginx 1.9; Git. The problem is that when I access the url http://advodocs.local.com/ Chrome returns me:    The a...
asked by 06.01.2017 / 03:13
1
answer

Problem Laravel 5.2 non-object in foreach

I'm trying to pull the information out of this relationship as you can see below: Template: public function endereco(){ return $this->belongsTo('App\Models\End\Logradouro_Bairro'); } public function local(){ return $this->has...
asked by 06.01.2017 / 12:16
1
answer

Angular js reload

Person, I noticed that whenever I reload the page, while page is being loaded, it shows all the keys {{}} of the scopes of my project, is it normal? the page containing the scopes coming from a get json is in php ....     
asked by 05.01.2017 / 20:45
1
answer

Confirm deletion in Laravel 5.4

I have the form below, in which a button deletes the record of the current line. <form class="form-inline" method="POST" action="/servidores/{{ $serve->id }}"> {{ method_field('DELETE') }} <input type="hidden" name="_t...
asked by 06.02.2017 / 14:16
1
answer

Read word file in laravel 5.3

I have a problem reading a Word file in laravel, the situation is as follows: I have a form where a person adds a word file into an input type file field. I want to get the text of this word, separate it into a variable to later write to the...
asked by 28.11.2016 / 15:45
1
answer

Connection Problems pgsql in Laravel 5.1

I am trying to connect to the pgsql database by Laravel 5.1 but an error is appearing:    PDOException in Connector.php line 55:   SQLSTATE [HY000] [1045] Access denied for user 'root' @ 'localhost' (using password: YES) -    in Connec...
asked by 28.12.2015 / 14:38
1
answer

Not found class in Controller [closed]

The model only gives NOT FOUND in a controller that manages News.    ERROR: Fatal error: Class 'App \ Models \ Site \ NewsModel' not found in C: \ xampp \ htdocs \ ManagerContent \ App \ Controllers \ Site \ HomeController.php on line 13...
asked by 02.01.2016 / 21:28
1
answer

Create new users with Laravel 5.3

I ran the make: auth of laravel 5.3 but when I am creating new users I lose my session and the new user is logged in. Does anyone know how I can create a new user and stay signed in with my account?     
asked by 17.11.2016 / 20:51
2
answers

Set connection according to logged-in user data

I created a second connection in my config / database.php file and I will also create a third one, I wanted to know how I can switch between these connections according to the logged in user. config / database.php 'connections' => [...
asked by 30.09.2016 / 15:55
1
answer

Laravel - Does not take the table column

I'm in a dilemma in Laravel that I can not solve, and I've tried a lot of things and now I've stuck here: What I want is to give% of a column value of my table by echo . Code no input : public function retorna_curso() {...
asked by 15.11.2016 / 22:04