I'm trying to pass an update parameter, but this is giving error.
Controller
public function update(ColaborationFormRequest $request, $id
{
$dataForm = $request->all();
$colaboration = $this->colaboration->find($id);
$u...
Good morning everyone,
I'm developing an application in Laravel 5.6 using PHP 7.2, I'm having problems using the dependency injection in the constructor, since when creating the object the algorithm works perfectly,
This DOES NOT work:
C...
I would like to know how best to organize Views in Laravel, in which directory it is best to leave the includes, templates and main views.
Also what is better to put in the (navbar? layouts? sidebar?) what I can put as a template? I'm learnin...
Good afternoon.
I'm having a problem to make use of the zerofill constraint in Laravel because
vi that is not in the documentation.
I have a field in my table which is a license plate and in my view I am limiting this field to 5 digits, so th...
I've been searching for Saas and Multi-tenancy but have little material in Portuguese. I saw that it is possible to do a database for each company, but my question is:
Make a single web system for all clients (using PHP + Laravel + MySQL)...
Is it possible to store an array within a Cookie ?
I'm trying this way:
$carrinho = array(array('frete' => '', 'mercados' => array()));
Cookie::queue('carrinho', $carrinho, 525600);
But I get the error:
Argument 2 passed...
I'm developing a chat with Laravel , and I followed this tutorial . The chat is working fine, but I wanted to know how to make a notification like this:
When a message is sent to a user and the user has not yet read it.
Can anyone...
I'm trying to use the following command to insert:
$sql = "INSERT INTO tabela (campo1, campo2, campo2, campo4)
values(:campo1, :campo2, :campo3,'S')";
$campos = array(
':campo1' => $nome,...
I need to retrieve a method in the controller and display it in the view,
Controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Categoria;
use App\Models\Sessoes;
class todosProdutosController extends Controlle...
I'm trying to perform insert operation on oracle by Laravel (5.6), but it's giving error:
The method I make the insert is this:
public function salvar( Request $request ){
$agenda = new Agenda();
$agenda->dt_agenda = $req...