Questions tagged as 'laravel-5'

2
answers

Return after sending email

In laravel 5.3, at the time of sending the email it does not return anything. Would you like to return some data to see if the email was sent or not? Something like this: $mail = Mail::to('[email protected]')->send(new ContatoEmail($dado...
asked by 16.05.2018 / 19:47
1
answer

Uploading image outside the LARAVEL folder

Good afternoon, I have a question, is it possible for me to upload an image in laravel out of the project folder? Well I have a project that the site folder is out of the laravel folder and I need to display images uploaded to laravel on this si...
asked by 16.05.2018 / 21:04
0
answers

method detach () deleting data over

My method detach deletes all data from the student table (it removes the data from the membership table but deletes all data from another table) $team = Team::find($id); $team->students()->detach(); $team-&g...
asked by 02.05.2018 / 01:55
1
answer

How to save tables with relationship in Laravel?

I'll give you a small example to explain my problem. Tables: main itens The two have a relationship, a main has several itens . What I'm doing to save: ... $main = $this->main->create($postCreate); foreach ($postC...
asked by 27.04.2018 / 22:13
1
answer

Foreach array and create a name for array with same ID

Good idea and create groups of arrays with example names, $arrays = array( array( 'teamID' => '1151', 'username' => 'iLilithZ'), array( 'teamID' => '1111', 'username' => 'iLilithZ'), array( 'teamID' => '115...
asked by 22.04.2018 / 20:39
1
answer

eager loading and custom queries

This question is a follow up this and this . But I'll try to make them independent. I have the following tables, weathers : +--------+-------+---------+ | id | temp | id_freg | +--------+-------+---------+ | 337 | 12.36 |...
asked by 19.04.2018 / 19:46
0
answers

Error executing "npm run dv"

npm run dev    @ dev / var / www / UpEvent   node_modules / cross-env / bin / cross-env.js NODE_ENV = development node_modules / webpack / bin / webpack.js --progress --hide-modules --config = node_modules / laravel-mix / setup / webpack.confi...
asked by 17.04.2018 / 16:03
0
answers

Error inserting array of objects

I get an array and I have to scan and insert it into my database. Array example I'm going to receive on the request: How to set in my controller to scan and insert into the bank: public function store(AcademicoRequest $request){...
asked by 12.04.2018 / 01:34
2
answers

Test if the image exists

Personal I use Intervention in Laravel 5.5 and use its routes with the filters to generate the images dynamically. I would like to know how I can test in the filter class and the image I passed it exists on the disk, otherwise I will upload a de...
asked by 18.04.2018 / 21:18
0
answers

Login problems with google

I'm using Laravel Socialite to sign in to google accounts. It's working perfectly. But if I log into an account and use the browser back button to choose another account to login, the following error is displayed: Laravel \ Socialite \ Two \...
asked by 11.09.2018 / 14:45