Questions tagged as 'laravel-5.4'

1
answer

Error connecting to sqlite in laravel

Internally everyone is working, migrations , tinker , sqlite3 , but in the server application it always queries mysql instead of sqlite for all operations, ie it is using Connector.php instead of% with%...
asked by 01.03.2018 / 00:58
0
answers

Problems with .htaccess when hiding public folder 5.4

I need to do deploy for production of an application that I migrated to laravel 5.4, in test environment I am using the virtual host on windows where I type in url 'mysite1' and until then beauty. But when I was setting up with .htaccess when...
asked by 23.11.2017 / 01:32
1
answer

Saving multiple images

I'm not able to save multiple images in my seat, my code below to follow the highlighted line with the arrow ( - > ). Note: when it was just a normal saved image. public function store(Request $request) { $this->validate($reques...
asked by 27.10.2017 / 17:42
0
answers

Laravel Password Reset is not working with custom User model

I'm trying to use the Laravel authentication system with some customizations. This is my User model: use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\DB; class...
asked by 06.10.2017 / 12:31
0
answers

Change fields in Laravel User table 5.4

I'm using Laravel on my TCC and I study it through videos and articles from the internet. I created the authentifying part with the make: auth command and everything is working correctly, but I would need to change the fields of the User tabl...
asked by 29.08.2017 / 17:19
1
answer

Constraining Eager Loads Returning Unfiltered

I have a problem with eager loading in Laravel 5.4.24. Following the documentation, I added the code: $profiles = Profile::with(['platforms' => function ($query) { $query->where('name', 'PC'); }])->get();...
asked by 01.06.2017 / 00:04
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
1
answer

Send email to Laravel?

Are you sending all pages to email, but do not send the information of input ? Controller public function store(Request $request) { Mail::send('template.contato', array ( 'nome' => $request -> input...
asked by 03.04.2017 / 23:43
0
answers

Problems with print layout

I'm having trouble setting up print layout in Elgin i9 , I'm putting script in laravel 5.4 like this: $produto = Produto::find($request->input('COD_IDENT_PRODU')); $qtd = $request->input('QTD_IDENT_PRODU'); $cod...
asked by 02.03.2017 / 23:58
2
answers

Popular column with id created + date / time

I have a column named "code". Is it possible to fill it out using the same method that inserts the form? If so, how can I implement this in my code. Method that receives the form and inserts it into the bank. public function insert(Ma...
asked by 08.11.2018 / 01:18