Most voted "laravel-5.6" questions
Laravel is an open-source framework for developing web applications and services with PHP. Before asking consult the official documentation of Laravel.
Learn more…33 questions
Sort by count of
-
5
votes2
answers462
viewsLaravel multitenancy with a user-only BD
I’ve been researching about Saas and Multi-tenancy but has little material in Portuguese. I saw that it is possible to make a database for each company, but my question is: You can make a unique web…
-
4
votes1
answer985
viewsPage number with DOMPDF and LARAVEL
How do I place the number of each page with domPDF? I use it with the Standard. Example: Page 1-4, Page 2-4, Page 3-4 and Page 4-4; My function to fetch database data: public function print($id) {…
-
4
votes2
answers972
viewsMissing required Parameters for [Route: ] [URI: /{}/]
I am trying to pass an update parameter, but it is giving error. Controller public function update(ColaborationFormRequest $request, $id { $dataForm = $request->all(); $colaboration =…
-
3
votes0
answers467
viewsCall to a Member Function cadastrarDados() on null - Laravel
Good morning to all, I am developing an application in Laravel 5.6 using PHP 7.2, I am having problems using DI(dependency Injection) in the constructor, since when creating the object manually the…
-
2
votes1
answer254
viewsWhat convention is used to organize Views of Laravel?
I would like to know how to organize the views in Laravel, in which directory it is best to leave the includes, templates and main views. Also what is better to put in includes (navbar? layouts?…
-
2
votes1
answer825
viewsCall foreach result Controller checkbox and show in view
I need to recover a method in the controller and display in the view, Controller namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Categoria; use App\Models\Sessoes; class…
-
2
votes1
answer71
viewsHow to put the zerofill Constraint in Laravel 5.6?
Good afternoon. I’m having a problem making use of the zerofill Constraint in Laravel because I saw that it is not in the documentation. I have a field in my table that is enrollment and in my view…
-
1
votes1
answer393
viewsError when connecting oracle
I’m trying to perform operation Insert on the oracle by Laravel (5.6), but is giving error: The method I do the Insert is this: public function salvar( Request $request ){ $agenda = new Agenda();…
-
1
votes1
answer1531
viewsValidate password using Laravel
I have the following form My password fields are like this: <div class="form-group {{ $errors->has('senha') ? ' has-error' : '' }}"> <label for="senha">Senha</label> <input…
-
1
votes1
answer200
viewsHow to enter values in Laravel
I am 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,…
-
1
votes1
answer374
viewsWeb and API in Laravel 5.6
One could explain about the route changes in version 5.6 of Laravel, now has the web.php and api.php files, and which middleware the api is using. Thank you.
laravel-5.6asked 6 years, 3 months ago Eduardo Dallmann 111 -
1
votes0
answers34
viewsRadio Button back with old value
Hello! I have the following code: <div class="resposta"> <label class="radio-inline" style="padding-right: 20px;"> <input type="radio" name="1" value="S" {{ old('resposta1') == "S" ?…
-
1
votes0
answers114
viewsCross-orgin with Laravel and vuejs
In my dilemma to publish my application I am facing some problems. I am making the front separate from the back. The frontend is in vuejs and the backend in Laravel (being only an API) On the server…
-
1
votes1
answer733
viewsChat with warning notification in Lockable
I’m developing a chat with Laravel, and follow this tutorial. The chat is working fine, but wanted to know how to appear a notification of this type: When a message is sent to a user and has not…
-
1
votes0
answers21
viewsFind file that generated CSRF TOKEN error
I set up the file handler for whenever any error occurs on the server, I receive an email with the details. So today I got an email with the following error: array(3) { ["message"]=> string(0) ""…
-
1
votes0
answers146
viewsProblem using Route::Resource on production server
I’m making a system using the Laravel 5.6 I climbed to a server I have and access this externally But I’m having problems when the route uses the resouce, for example: Route::resource('materiais',…
-
1
votes0
answers30
viewsReturn 302 status in form Submit
I did the migration of my project Aravel 5.4 pro 5.6, but in a new form I am having the return 302 when giving the Submit in the form, it is a normal form like the many others in my system, however…
laravel-5.6asked 5 years, 7 months ago Alvaro Alves 1,065 -
1
votes0
answers281
viewsLaravel: Access Relationship Attributes
I have the tables products, images, products_images. The table products_images has a foreign table key products and images. When I will list the products and the names of the images that are in the…
-
1
votes0
answers164
viewsJob Format does not pass constructor data to Handler
When dispatching a job in Laravel 5.6, send parameters to it. In the constructor, the parameters are received normally, containing the data sent. However, when executing the job with the php artisan…
-
0
votes1
answer209
viewsLaravel 5.6 + JWT (json web token)
Good afternoon to all, I am developing an API in Laravel and intend to use JWT(Json web Token) to perform authentication and token management. I read the documentation on GITHUB, but did not…
-
0
votes0
answers89
viewsLaravel Routes 5.6
Gentlemen I’m having trouble setting the wheels and returns me the following error: protected function methodNotAllowed(array $others) { throw new MethodNotAllowedHttpException($others); } I’m doing…
-
0
votes0
answers28
viewsTransfer data from an Hidden input to a route
I have the score function of a control with the following code : public function score($ids, $points) { $score = Team::find($ids)->increment('points', $points) ; The $ids field will receive…
laravel-5.6asked 6 years ago Alessandro Carvalho 21 -
0
votes0
answers25
viewsUse the DB increment function to update from an array
Here’s what it is: I have a javascript array with the id I want to increment usingDB::table('team').increment->('points', 1000). How should I make my controller take this array and increment only…
-
0
votes1
answer171
viewsfopen and fputs for Amazon S3 by Laravel
In php, is it possible to send an image file, obtained by returning a request by Curl, directly to a S3 Bucket using Laravel methods? If yes, how to do?
-
0
votes2
answers131
viewsStore array within Cookie
It is possible to store a array within a Cookie? I’m trying this way: $carrinho = array(array('frete' => '', 'mercados' => array())); Cookie::queue('carrinho', $carrinho, 525600); But the…
-
0
votes1
answer577
viewsReturn form with data after Validator failure
I have a user registration form on Laravel <form class="form-horizontal" method="post" action="{{url('/usuarios')}}"> @csrf @if(session()->has('message')) <div class="callout…
-
0
votes1
answer46
viewsMassassignmentexception in Model.php line 444: users_id
I’m making a listerner to save when the user logs in, and prints the title error in User models. public function accesses() { // Não esqueça de usar a classe Access: use App\Models\Access; return…
laravel-5.6asked 5 years, 9 months ago Fernando Santana 71 -
0
votes1
answer68
viewsError between account in 2 tables
Sorry I wouldn’t experience in Latin, I’m starting the studies and need to consult a Mysql table according to the value of another table ex.: Tabela Sessões | id | nome | | 1 | João | | 2 | Fabio |…
-
0
votes1
answer123
viewsHow to display two different tables in the same view?
Using the Laravel 5.6 I am trying to display two different tables in the same view, but it is giving error this is my controller <?php namespace App\Http\Controllers; use Illuminate\Http\Request;…
-
0
votes1
answer241
viewsPusher Error - Uncaught Referenceerror: Pusher is not defined
Good morning. I followed this tutorial to the letter: https://pusher.com/tutorials/chat-laravel But I get the following error in the browser console: Uncaught ReferenceError: Pusher is not defined…
-
0
votes1
answer230
viewsLaravel Mail, Error: Undefined variable
Good evening friends, I’m having a problem, when I try to pass the variables from one control to the other, he ends up accusing that the variable "was not defined": (Undefined variable: Black and…
-
0
votes0
answers229
viewsHow to resolve this error? (Ajax Error)
I use a datatables feature on this system here and every time I refresh the page or after including a new record, this error appears. I did a lot of research, but still no solution. I tested the…
-
0
votes1
answer121
viewsDetermine route according to the url that called the request
My situation is as follows, I am using a form of charging that makes the entire online subscription system, the system when performing the registration of a customer and validate the payment of the…