Questions tagged as 'laravel'

1
answer

Date with value reset Doctrine

Good afternoon, I am using doctrine in my laravel project to control the bank. I'm trying to insert a date but it does not return any value. If I use $ _ POST I can see the value. Save function: public function salvar(Request $reque...
asked by 07.04.2017 / 21:42
1
answer

Doubt with sql in laravel?

Today I have a query that is returning me duplicate data, I made the sql change more than needed to change it. How can I leave in the same structure as select (DB :: raw? The current code looks like this: $atividades = $this->ativ...
asked by 20.01.2017 / 19:21
1
answer

Make call to commands direct artisan of code [closed]

Hello! I am studying laravel, and would like to know if it is possible to call the artisan commands in the Controllers. Example: When the user clicks the button he executes an artisan command, a routine or something related.     
asked by 19.12.2016 / 13:03
1
answer

Please provide a valid cache path

I just made a git clone (copy) of a Laravel application just made in the company where I work. I circled composer update and artisan key generate to make the initial settings, as well as edited the .env file to con...
asked by 12.12.2016 / 11:51
1
answer

Hosting a project in Laravel? [closed]

I made a project in laravel, how can I host it on a server like Locaweb or Hostgator ... ?? And how do I connect to the database on the server ??     
asked by 24.02.2017 / 16:50
1
answer

How to pass an array of data to a laravel view?

How do I pass a result from a select to a view? public function index() { $equipams = DB::table('equipamentos') ->select('equipamentos.*', 'tipoequipamentos.descricaotipoequip', 'locals.descricaolocal',...
asked by 03.01.2017 / 22:35
1
answer

How to use decrement in laravel 5.2 using data from an array?

I'm using the laravel a few months ago and I came across the following problem of controlling inventory after purchase automatically. The logic of my system is as follows: After purchasing a product in my store automatically decrement th...
asked by 05.01.2017 / 21:39
1
answer

Combobox with yes and no on laravel

I have a combobox that has the values yes and no. It is bringing the value not that I put in the bank but in the form of edit does not appear the other option that in the case would be the sim. How do I make the opposite option appear? <sel...
asked by 24.11.2016 / 14:47
1
answer

Eloquent: relationships between tables in a blog

One would have a practical example of using relationships in Eloquent as follows: I have a blog with several categories, in these categories I will have several Posts, as I do to display a category with several Post in Views. I've seen s...
asked by 23.01.2017 / 02:27
1
answer

What is the best way to use notifications in Laravel 5.3

I'm using Laravel's own Illuminate \ Auth \ Events \ Registered event to trigger a listener I created to trigger a welcome email. See what the Listener looks like: <?php namespace App\Listeners; use Illuminate\Queue\InteractsWithQueu...
asked by 31.10.2016 / 14:37