Questions tagged as 'laravel'

0
answers

Migration with multiple banks in Laravel

I'm trying to create a migration that has a foreign key referencing the id of a table from another database, both MySQL. Follow the code: //config/database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env...
asked by 21.06.2017 / 13:26
0
answers

Laravel - Help with Authentication

I'm using Laravel 5.3 and am having a headache with Authentication. I'm using make: auth. Until then it's simple, but let's look at the scenario below. In my project, when I log in I send the email and password to the API (Node) which returns...
asked by 06.06.2017 / 15:48
0
answers

Slow mail sending with Laravel?

I'm doing some mass mailing tests but I'm finding the process being done with Laravel slower. The reason I found the submission slow was that I worked in a company where on average 50 ~ 60 thousand emails were sent around 10 to 12 hours....
asked by 06.06.2017 / 21:40
0
answers

Invalid request (Unexpected EOF) - Laravel 5.4

I'm having a problem using Laravel 5.4, out of nowhere the site stopped working (locally) and gives this error on the server (cmd) and the site does not load. In the browser console, the error 500 appears when loading localhost. No CMD aparece...
asked by 27.06.2017 / 15:50
1
answer

Save to two tables with one-to-many Laravel

I could not give myself an error:    ErrorException in ParameterBag.php line 88: array_key_exists (): The   first argument should be either a string or an integer My Controller: public function store(Request $request){ $diaria = Diar...
asked by 02.07.2017 / 20:22
2
answers

Delete record with Laravel via AJAX

I am developing an application in PHP with Laravel and I have in my AlunosController and following method destroy: public function destroy($id) { $aluno = new Aluno(); $result = $aluno->find($id)->delete(); if($result)...
asked by 11.05.2017 / 15:06
0
answers

'SET ANSI_WARNINGS ON' Laravel 5.4

I'm using Laravel 5.4 with 2 connections, one of them is just to access some Views of a Sql Server bank, and one of them does a LINKED SERVER which forces me to set some settings before making a query. p> Today I can do this in my Controller a...
asked by 09.05.2017 / 18:30
0
answers

How to auto fill a fk in Laravel using session data?

I have two tables, posts and users . The posts table has a relationship with the users table through the user_id column. The question is this: in the controller I'm using a merge to populate the user_id with the id of the user. I would l...
asked by 31.03.2017 / 19:38
1
answer

How to filter by method? Laravel 5.4

I need to filter all the images that have a specific link, I was able to filter through status of the product table, but what binds the image to the product is the image(); method of the Produto class: Method image()...
asked by 23.03.2017 / 12:57
1
answer

How to implement DataTables in Laravel 5.4?

I'm trying to use the DataTables tool: link , its implementation seems to be very simple, I put the CSS link, JavaScript, but when I update the page, nothing happens, follow my code: @extends('layouts.app') @section('content') <link rel="...
asked by 21.03.2017 / 12:59