Most voted "laravel" 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…2,777 questions
Sort by count of
-
1
votes2
answers613
viewsHow to return a collection of objects via ajax?
I created this function in my Controller to return a list of employees in my ajax request, but it is not returning anything. public function getFuncionarios(Request $request){ if($info =…
-
1
votes3
answers753
viewsCPF Regex with Laravel
The system where I am doing maintenance has Cpfs registered in two ways, with and without score, due to a bad development start that did not impose a standard. The problem is that the CPF cannot…
-
1
votes0
answers41
viewsHow to Debug Laravel 5.2 on MAC using X-Debug?
I’ve tried everything and so far I can’t debug Laravel 5.2 on MAC any light?
-
1
votes1
answer60
viewsMigrate Kohana to Laravel
In kohana bootstrap I have the following configuration Kohana::init(array( 'base_url' => 'myapp', )); How I migrate her to the Laravel ? Because in Laravel I have the following url…
-
1
votes1
answer1133
viewsSetting a middleware for a controller, except a function in Laravel 5
I’m starting to work now with Laravel and realized that setting the routes directly to the controls where I can set the type of HTTP request is more feasible for my application. Today I have…
-
1
votes1
answer964
viewsSlow loading with Jquery Datatables plugin
I am using Jquery Datatables in a small system and everything was fine until I came across a listing of almost 2500 records... The point is that it takes a certain amount of time for the information…
-
1
votes0
answers39
viewsConnection error in Composer install?
I’m having trouble turning the remote composer install no Laravel. I am very beginner in the use of it yet, so I have no idea what could generate this error: > php artisan clear-compiled Erro na…
-
1
votes1
answer488
viewsSaving several array at once
Well I have a function that is complex, because I need within the same function to do several for due to the complexity and amount of information. I am consuming an API where I need to get monthly…
-
1
votes1
answer380
viewsAuthenticate in a database and change information in others
So, I need to create an application with Laravel 5 where it is possible for different users to be authenticated in a specific database where the system is. After logging in, each user can change…
-
1
votes1
answer226
viewsCheck which Guard is logged
I have a 5.2 Standard application, with multiauthentication, the Guards configured in config/auth.php sane: ... 'admin' => [ 'driver' => 'session', 'provider' => 'admin', ], 'user' => […
-
1
votes0
answers39
viewsHow to auto fill a fk in Laravel using session data?
I have two tables, posts and users. The posts table has a relationship with the users table through the column user_id. The question is this: in the controller I am using a merge to fill the user_id…
laravelasked 7 years, 7 months ago Fábio Jânio 3,407 -
1
votes1
answer267
viewsDate update on Laravel
I would like to change the value of the date field at the time of a data edit. I can bring all values except the date. I’m using the Form:: of Laravel: {!! Form::label('dtemissao','Data de Emissão')…
-
1
votes2
answers1228
viewsProject Deploy on Laravel 5.4 on Umbler
Hello, I saw the Brazilian community of Laravel commenting on Umbler a good BR server for project deploys in Laravel. I went to test the deploy of a project, but I couldn’t get it to work on the PRO…
-
1
votes1
answer407
viewsLaravel Authentication by Routes
Is there any way in Laravel to add permissions or put a users in a specific group when logging in (I refer to the Auth structure of Laravel itself). Example, I define that only an Admin Group has…
-
1
votes1
answer462
viewsFilter results with Manytomany relationship in the Aravel
I have 2 tables where there is a relationship, client and content using a pivot table contents_clients, when selecting the contents of the "X" client I can know which contents belong to it, but I…
-
1
votes1
answer1146
viewsMaximum Function nesting level of '100'
I’m getting the following error on Laravel (while recovering a password): Maximum Function nesting level of '100' reached, aborting! The solution I found was to add this line in autoload.php…
-
1
votes2
answers1305
viewsVuejs: How to display a value in the dynamic modal input with v-model or v-bind:value
There is a list where return all active users on the system and in the same there is a button to Edit User, when I click on this option, I open a modal, capture the user id and perform a query of…
-
1
votes2
answers1382
viewsOptions to generate API documentation in Laravel
I need a lib to generate API documentation in Laravel 5.4?
-
1
votes1
answer2025
viewsPick up records with date greater than the current - Laravel 5.1
I need to list the schedules that have date greater or equal to the current date, I am doing the way below but does not work, it does not return any record.…
-
1
votes1
answer305
viewsajax is not returning success in Laravel
Hello, I’m getting to know this framework now. I’m trying to send ajax via post and see if it returns something, but it didn’t work, follow the problem below: $("#modal-comentario").on("click",…
-
1
votes0
answers1177
viewsHow to host my website created in Laravel on the Hosting Server? [HTTP ERROR 500]
I’m trying to host my site developed in Laravel on the website hosting (Locaweb), but an error (HTTP ERROR 500) is preventing the operation. File structure: http://i.imgur.com/Ncg8bsl.png Version of…
-
1
votes2
answers881
viewsLARAVEL Login by email or username
Hello, I’m developing an application in Laravel 5.2. * and I need to implement a login system by username or login, someone has an idea of how to configure or do this type of method?
-
1
votes1
answer172
viewsRandom search
I am making a random query in the table users of my application in laravel, example below: User::inRandomOrder()->paginate(10) It actually returns me the result randomly, but I need the entire…
laravelasked 7 years, 5 months ago Bruno Santos 103 -
1
votes1
answer465
viewsLaravel 5.2 - Relationship Many To Many between records of the same table
The tables: The table users, records users who may have N functions that are stored in the table funcoes (student, responsible, teacher, etc). The table funcao_user is pivot that makes the…
database laravel laravel-eloquent relationship laravel-5.2asked 8 years, 2 months ago Julio Alves 83 -
1
votes1
answer1643
viewsUpdate several records at once
Hello, I have a table with the following fields:KEY, VALUE , ALIAS, CLIENT_ID. In a certain system process I need to update Key and Value. To update a record I have no problems, the problem is that…
-
1
votes0
answers67
viewsWrong mimetype when sending image to S3 with Laravel
I’m using Laravel 5.3 and sending images to Amazon S3. I have already put the rules in Bucket so that it is public and I am sending the image as follows:…
-
1
votes0
answers51
viewsAccentuated error in e-mail
In the archive .env of my application in Laravel set a default name for sending email for example: MAIL_FROM_NAME='Registro Jurídico' and in the inbox comes Registro Jur?dicdico, What can I do to…
laravelasked 7 years, 5 months ago Bruno Santos 103 -
1
votes1
answer102
viewsHow to filter a list using the same parameter with two different values?
I’m implementing a motion filter where you can choose the parameter on which the filter should be based (for example: Date, Species, User) and when choosing any of these parameters, you can choose…
-
1
votes1
answer181
viewsHow to insert multiple rows of a single query using the same ID
I’m trying to make multiple Inserts using the same ID with the Laravel but it is doing only 1 Insert. The idea would be something like this. ped_cod|est_cod|ped_qtde 8 |2 |9 8 |3 |2 8 |4 |2 8 |9 |15…
-
1
votes2
answers73
viewsBug change position of banners site Laravel
I’m developing a website where it has a banner modal and I want to define a field in the database of type "order", where I can define which banner appears in first, second, third ... on my admin…
php database laravel laravel-5 laravel-eloquentasked 8 years, 2 months ago Danilo Tiago Thai Santos 409 -
1
votes0
answers27
viewsError no npm run watch - Cannot read Property 'install' of Undefined
This error occurs when I make an "npm run watch". When I do an "npm run dev", don’t make this mistake. I’ve reinstalled all npm and it hasn’t solved... some solution?…
-
1
votes1
answer551
viewsVagrant shared access between team
Setting: Two machines (A and B), both on the same local network and with Vagrant and virtualbox installed. One is Windows and the other is mac On machine A I have a box Homestead (Laravel/Homestead)…
-
1
votes1
answer91
viewsLaravel SQL returning with interrogation?
I’m making an appointment at Laravel and it is returning the date with the following value. select `campo` from `tabela` where `campodotipodata` = ? well it returns so the SQL, follows the code in…
-
1
votes0
answers514
viewsAny command with Artisan is not working
I went to try to install a dependency: https://github.com/barryvdh/laravel-dompdf . But at the end of the installation, an error message appeared: Installation failed, reverting ./composer.json to…
-
1
votes0
answers21
viewsMake libreoffice call by browser
I need to edit a document online. Call libreoffice from the browser and open it on the client’s machine to edit the document online. Something that resembles the online edition that exists in…
-
1
votes1
answer142
viewsIs it possible to sort the result of the parent model by the child model?
Controller $menu = MenuLoginPermission::with('submenu') ->where('id_empresa_login', '=', $idUser) ->get(); Model Menuloginpermission class MenuLoginPermission extends Model { public function…
laravelasked 8 years, 1 month ago Diego Souza 16,524 -
1
votes1
answer48
viewsProblems with {!! Form::model()!! }
I have a form where I add it to the create.blade.php page and Edit.blade.php page more when I will specify the element does not appear the tag <form></form> More when I remove the…
-
1
votes1
answer1968
viewsHow to host a Windows server?
The computer where I want to host the site developed in Alavel is in another network. I put the whole site in the server and I turned the command php artisan serve --host MEUIP --port MEUPORTO When…
-
1
votes1
answer141
viewsIs it mandatory to visit Mutator/Accessor?
I just faced a problem in Laravel 5.1. Suppose I have the following: Model class User extends Model{ # Mutator public function getNomeUpperAttribute(){ return…
-
1
votes1
answer1682
viewsHow do I upload files by sending the attachment as an email in Windows 5.3?
I’m making a page to work with us with uploading files(resumes), I would like to send this file by email attachment, but I’m kind of aimless. Can someone help me? Controller public function…
-
1
votes1
answer1091
viewsOrange Sum and Subtraction Update?
I’m starting to learn how to use the Framework Laravel 5.4 for this I am making a personal finance system and I have a table of Conta with the countryside (Saldo); I would like to make a transaction…
-
1
votes1
answer659
viewsValidation with Internationalization in Laravel 5.3 error
I am creating an application where I have to validate the data sent to the database (obvious), however, I am responding to the following error: Errorexception in Fileloader.php line 109: Object of…
-
1
votes1
answer1087
viewsLaravel 5.4 - Send e-mail with text attached?
The case is simple: I need to generate a text on Laravel based on Array and then attach this text file with Attachments via Mail::to()!
-
1
votes1
answer472
viewsAuthentification Laravel
I am studying the authentication part of Laravel and basing myself on the following documentation Laravel I followed every step: I set up the database I set the routes I put the Views When I walk…
-
1
votes1
answer870
viewsHttp method post, date parameter is passing always empty (Angularjs + Laravel 5.2)
I am using the Angularjs + Standard to build my application. The point is, I own $Cope.frequencias, which contains some information about a student’s attendance. I made an angular foreach to send…
-
1
votes0
answers38
viewsProblem deploying Larable application to Heroku
I’m having trouble deploying to Heroku with a portable application, Heroku is not seeing my extended pages .blade.php. For example: index.blade.php But if I change to index.php He sees, someone has…
-
1
votes1
answer1061
viewsRoute error when accessing the page in Laravel
People after I executed this command in my Standard the situation in some pages got bad, are no longer working, the command is as follows: Composer require mnabialek/Laravel-eloquent-filter Error…
-
1
votes2
answers2002
viewsLaravel 5.3 - How to change a logged-in user’s password?
I’m having difficulty creating a method that allows me to make a password change form available to logged in users. I would like to use the class methods: App Http Controllers Auth…
-
1
votes1
answer984
viewsWhat is the best way to use Notifications in Laravel 5.3
I’m using the event Registered of Laravel himself (Illuminate Auth Events Registered) to fire a Listener I created to fire a welcome email. See how the Listener turned out: <?php namespace…
-
1
votes1
answer1490
viewssymbolic link with Storage Laravel 5.2 folder
Currently there is the PHP Artisan Storage:link command that makes the symbolic link between public/Storage and Storage/app/public. I would like to know how to make this link in Laravel 5.2 since in…