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...
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...
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.
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...
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',...
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...
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...
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...
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...