Questions tagged as 'laravel'

1
answer

How to update a collection in laravel / eloquent

I'm using the laravel repository in my project. I created a Service to add some rules. In the upload method it is a reusable method to both save and refresh image. The save method works perfectly with the upload method. The update method does th...
asked by 16.05.2017 / 14:58
1
answer

Save token that comes in the response of Api

I'm trying to save the token that my server sends on every request. Although apparently "Authorization" is present in the response, I can not print the value. The code is: Whatisreturnedfromtheserver: WhatIcanprinttotheconsole: OntheserverI'...
asked by 25.04.2017 / 22:51
2
answers

Project Deploy in Laravel 5.4 in Umbler

Hello, I saw the Brazilian community of Laravel commenting on Umbler a good BR server for deploys of projects in Laravel. I've been testing the deploy of a project, but I have not been able to make it work in the PRO website service. First he...
asked by 18.04.2017 / 18:40
1
answer

Problem sending emails with Laravel 5.4

I'm trying to send email with the Laravel Mail class as follows. Code: Mail::send('companies.emails.register', ['company' => $company], function ($m) use ($company) { $m->to($company->email, $company->name)->subject('Cadas...
asked by 09.06.2017 / 20:28
1
answer

Add field to standard laravel 5.3 log form

Good afternoon, I want to add the type field to the user of a laravel system and I'm doing it as follows: migration public function up() { Schema::create('users', function (Blueprint $table) { $table->increment...
asked by 12.03.2017 / 16:51
1
answer

Redirection through the private method in Laravel

No Laravel has helpers redirection that works perfectly within public methods. But in the class I had to split in two public methods and one private so as not to be repeating the authentication and registration codes that is practi...
asked by 23.03.2017 / 14:42
1
answer

Can not find the php controller with laravel [closed]

Hello everyone, I'm starting with laravel, I've come across a problem. I created the controller, the routes, but still, it is giving me the following error: Class App \ Http \ Controllers \ Contact 2Controller does not exist. What should I...
asked by 15.04.2017 / 22:01
1
answer

Insert multiple rows from a single query using FOR

I'm trying to give an insert of various data using FOR but it is not working. The impression is that it is not getting the FOR data? The spec is that this happens: ID|id_proposta|id_produto|quantidade|valor|total 1 |8 |1...
asked by 27.01.2017 / 19:23
1
answer

Laravel InvalidArgumentException

InvalidArgumentException in RouteRegistrar.php line 75: Attribute [when] does not exist. I'm learning laravel and this error is annoying. Follow Route (web) <?php /* |------------------------------------------------------------------...
asked by 25.02.2017 / 20:22
1
answer

Execute migrations from another DB

I copied the migrations from another DB into mine. Within database / migrations . What command do I use on the terminal to run them one by one, ie individually?     
asked by 14.02.2017 / 20:56