Questions tagged as 'laravel-5'

1
answer

Help with a simple join

Good night, I do not know what I'm doing wrong, I have two models, in the migration I created it so Schema::create('endereco_tipos', function (Blueprint $table) { $table->increments('id'); $table->string('nome');...
asked by 13.09.2017 / 06:20
1
answer

Form Value does not return in Collective laravel

The form in the edit part does not display the value coming from the database. All other form fields are returning the value I get in the database. Here's how I'm doing: <div class="col-md-3"> {!! Form::label('departamento','Depart...
asked by 18.08.2017 / 23:33
1
answer

Protecting a route used by a single domain

I have a Laravel application hosted in a subdomain and need to allow its API (which has a single POST route) to be used only by the application hosted in the main domain. What is the simplest way to protect this route? I thought about using J...
asked by 31.10.2017 / 11:12
1
answer

RelationsShips Larval 5.4

I have 3 tables, [Users - > Departments - > Postings] where the Users table has many Departments Departments have many Postings. My question is: How do I relate the 3 tables with the with () method where (where () () is this logged in w...
asked by 23.08.2017 / 19:42
1
answer

Display on select bank attributes and edit with Laravel

I was able to include the attributes through an auxiliary table by this question: Save multiple attributes to the same object in Laravel I would now need what was set in this helper table to be selected in the edit form Controller:...
asked by 18.12.2016 / 16:12
1
answer

Case-sensitive query on sql server with laravel 5.4

I am querying the database (sql server) for user and password validation with laravel 5.4 but the query is being run as case-insensitive. In the database it is:    pwd = Aa12A Input receives:    password = aa12a The result is:...
asked by 15.03.2017 / 16:56
1
answer

Changing the content of Modal Laravel 5.1

I have a Grid with the edit button when I click on it it accesses the Controller and brings the data of a certain user into a Modal. But it's just bringing in the first user I click. Follow the code: Grid Link <a href=".../show/{...
asked by 01.08.2016 / 21:52
2
answers

MethodNotAllowedHttpException in RouteCollection.php - Laravel 5.2

Developing an application using Laravel 5.2, PHP7.0, Apache2 and CentOS 7, I'm having the following error: MethodNotAllowedHttpException . On the local server it works normally ... when I publish to the production server the error occurs, it...
asked by 19.06.2016 / 22:40
2
answers

Make sum with SUM ()

The query that works in PhpMyAdmin: Select sum(D.CargaHoraria) as CargaHorariaTotal, C.NomeCurso, C.CursoId, A.Imagem from Curso C inner join Disciplina D on D.CursoId = C.CursoId...
asked by 22.12.2016 / 13:29
1
answer

Artisan command not to lose data from the database

Hello, I'm starting to work with laravel 5 and am having a problem when I run the migrate commands the data is lost in the database, is this expected? The command php artisan migrate works on the first call and the other php artisan...
asked by 25.02.2016 / 04:31