Questions tagged as 'laravel-5'

1
answer

How to conduct a double consultation on laravel?

I have a query in SQL Ansi: select * from payments as P, receipts as R where P.created_at < CURRENT_DATE AND P.updated_at < CURRENT_DATE AND R.created_at < CURRENT_DATE AND R.updated_at < CURRENT_DATE Precious to perform the sa...
asked by 24.10.2017 / 22:51
1
answer

Laravel Unit Tests. I can not instantiate the class

My problem is apparently simple, but I can not resolve it. I tried to test in my application, and in the beginning I had problems I run the following command line to run the test: vendor/bin/phpunit In the test I'm just instantiating...
asked by 11.10.2017 / 16:45
2
answers

Remove quotation marks from Laravel Result 5.4

I'm getting a result via Request in Laravel like this: "2.1", I need to remove the double quotation marks from the result, because when I enter as a parameter in the query the whereIn understands as string ao instead...
asked by 02.10.2017 / 15:55
1
answer

Laravel 5.5 - Validate method does not exist?

I'm having trouble performing a validation of data in 5.5 , can you tell me where I'm wrong? Error:    Here is the code for Controller <?php namespace App\Http\Controllers\PainelAdmin; use Illuminate\Http\Requ...
asked by 12.10.2017 / 23:02
1
answer

Session in Laravel 5

In my controller, I log in as follows: if(!empty($input['user'])) { $result = $this->userRepository->searchuser($input['user']); //Busca o usuario pelo login // dd($result['data']['user']); if ($resul...
asked by 06.12.2017 / 16:17
1
answer

Notifications / Mail with Laravel [closed]

I'm having trouble firing notifications with Laravel 5.4, I already followed the documentation steps, but I did not succeed. Follow my code    \ LaraShop \ Users \ Notifications \ MessageUser <?php namespace LaraShop\Users\Notificati...
asked by 22.08.2017 / 01:00
1
answer

Working with Routes in Laravel

This is the structure of my project where my page is; Thisismycontroller;publicfunctioncreate(){returnview(imoveis.create);}Thisishowmyrouteisset,it'sinmyfileweb.php;Route::resource('imoveis','ImovelController');AndI'mgettingthiserrormessage...
asked by 22.10.2017 / 15:30
1
answer

Many to many relationship with select multiple in Laravel

I have Post and Tag models with a many to many relationship. When registering a post the previously registered tags usually appear in the select and I can save in the database. In the form of editing I am not able to make the selected and availa...
asked by 28.07.2017 / 00:18
1
answer

Laravel: how to recover the primary key of a model after saving it [closed]

I wonder if it is possible to retrieve the ID of a template at the time it is saved to the database. I'm using the following Eloquent method: $modelo = Modelo::create(['ATT1' => 'valor1', 'ATT2'=>'valor2']); The template is saved, but...
asked by 18.08.2017 / 15:41
1
answer

compile laravel mix 5.4

Hello, I have a problem with laravel 5.4 I'm trying to put a personal js library of mine and I can not even remove the vue My package.json { "private": true, "scripts": { "dev": "npm run development", "development": "cro...
asked by 01.06.2017 / 17:40