Questions tagged as 'laravel-5.6'

1
answer

Missing required parameters for [Route:] [URI: / {} /]

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...
asked by 20.12.2018 / 15:36
0
answers

Call to a member function cadastrarDados () on null - Laravel

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...
asked by 06.11.2018 / 11:52
1
answer

What convention do you use to organize Laravel Views?

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...
asked by 14.05.2018 / 20:49
1
answer

How to put the zerofill constraint in Laravel 5.6?

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...
asked by 12.10.2018 / 22:31
0
answers

Laravel multitenancy with a BD only for users

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)...
asked by 26.04.2018 / 15:32
2
answers

Store array inside Cookie

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...
asked by 14.07.2018 / 18:44
1
answer

Chat with notice notification in laravel

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...
asked by 05.09.2018 / 18:41
1
answer

How to enter values in Laravel

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,...
asked by 06.03.2018 / 20:18
1
answer

Call controller result foreach result and show in view

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...
asked by 15.05.2018 / 21:27
1
answer

Error connecting oracle

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...
asked by 14.02.2018 / 15:36