Most voted "laravel-5" questions
Laravel is an open-source framework for developing web applications and services with PHP. Use this tag for specific questions about Laravel 5 or later.
Learn more…751 questions
Sort by count of
-
1
votes0
answers467
viewsArtisan server in Laravel with php 5.6?
I created a project with Laravel 5.0 framework by Composer, to run the project using the command php Artisan serves, however, I have found that the php version used on this server is 7, I have…
-
1
votes1
answer439
viewsValidate Laravel email | Distinct Tables
I have a question regarding the unique field validation in the Laravel. I have two tables with no relationships (users and companies), both have a column email. I need to validate the field email…
-
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
answer170
viewsAccess in the view the last values entered in the database
I am trying to access the last "Books" inserted in the bank, and display in the view. This controller function returns the view with the recovered values from the database. public function index(){…
-
1
votes1
answer495
viewsAuth always returning false
Well I’m developing a login own and in it I have others campos and another tabela, everything goes perfectly but always returns result false. I changed the file Authenticatable.php inside…
-
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
votes2
answers786
viewsCount lines
Good am using Laravel 5.2 and I have much doubt to count the lines related to my research. I need to return the number of products within Categorias and SubCategorias. My relationship is as follows,…
laravel-5asked 8 years, 1 month ago Renan Rodrigues 3,709 -
1
votes2
answers1382
viewsOptions to generate API documentation in Laravel
I need a lib to generate API documentation in Laravel 5.4?
-
1
votes1
answer59
viewsObject only becomes available when I give dd()?
I am setting an attribute of an array, it is accessible only when giving dd() I do so: dd($categoria->categoria->NmCategoria) It works if I do it the natural way like this:…
laravel-5asked 8 years, 1 month ago Renan Rodrigues 3,709 -
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
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
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
answer35
viewsDoubts about requests and Returns
I have 2 different pages but access the same control. The idea is that I recover which page made the request, because depending on what it takes the two different returns. Ex. I have a button to…
laravel-5asked 8 years, 1 month ago Renan Rodrigues 3,709 -
1
votes1
answer186
viewsCreate alias for columns of a table in Laravel
Is it possible to create alias for the columns name of a table in using the Laravel Model? Example: I have a table questao with the columns: id questao disciplinas_id serie_id professor_id It would…
-
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
votes1
answer308
viewsProblems with csrf_token Laravel
Good understand the functioning of csrf_token but I’m having trouble with him. For example when I am about 5 minutes inactive without working on the site and try to log in, it informs me that I have…
-
1
votes1
answer455
viewsConsultation in Related Tables | Laravel 5.4
I have the following relationship in a test system that I’m doing. :: MODEL EMPLOYEE public function users(){ return $this->hasMany('lbo\User'); } :: MODEL USER public function employees(){…
-
1
votes1
answer1144
viewsSend . pdf, in Base64, by e-mail
I get a string through a API external, which comes directly from the client (I only take care of the website, making it impossible to change the type of information I receive). This string is a .pdf…
-
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
answer222
viewsLaravel: how to retrieve a model’s primary key after saving it
would like to know if it is possible to recover the ID of a model at the time it is saved in the bank. I am using the following Eloquent method: $modelo = Modelo::create(['ATT1' => 'valor1',…
-
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
answer239
viewscaption marker google maps
I use the cornford google googlmapper package of the Laravel where all intelligence is in the controller and then moves to the view via java script rendered, I need to insert caption in the map…
-
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
answer1707
viewsHow to solve css loading problem and js Ready to work?
When I run my local application, the styles and js are loaded normally. The css and js are in public/css and public/js. In production they are not loaded, below the production . htaccess:…
-
1
votes1
answer81
viewsHow do I send email via E-mail?
I have the following routine implemented in Laravel $prestadores = \App\Prestador::all(); Mail::send('emails.listaprestadores',['prestadores' => $prestadores], function($message) use…
-
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…
-
1
votes1
answer978
viewsLaravel update type error
Is appearing the error: Type error: Argument 1 passed to Illuminate Database Eloquent Model::update() must be of the type array, Object Given, called in…
-
1
votes2
answers434
viewsRemove Orange Result Quotes 5.4
I’m getting a result via Request in the Laravel thus: "2,1", I need to remove double quotes of the result, because when I enter as parameter in the query the whereIn understands as a string instead…
-
1
votes1
answer544
viewsHow to perform a double consultation in the Standard?
I have a query in SQL Ansi: select * from payments as P, receipts as R where P.created_at < CURRENT_DATE AND P.updated_at < CURRENT_DATE AND R.created_at < CURRENT_DATE AND R.updated_at…
-
1
votes1
answer1235
viewsHow to create an array dynamically in PHP?
I need to create an array in the format: //$arr = ['id' => 1, 'razao_social' => 'Teste'] // saida esperada // iteração foreach($prestadores as $prestador){ // logica separando apenas alguns…
-
1
votes1
answer72
viewsLaravel Schedule Frequency Options Do Not Work
I’m having trouble running Cron commands on Laravel 5.5, executes the command only every minute, not obeying the frequency options as every 5 minutes. Example:…
laravel-5asked 7 years, 1 month ago Guilherme De Menezes Ferreira 323 -
1
votes1
answer195
viewsUpload Laravel + Vue.js
I need to upload some files, but there is a detail, will be mounted a table as in the figure below, I can already add in the table itself, but at the time of the upload I do not have the slightest…
-
1
votes1
answer390
viewsGet the id of the maximum value
In a Mysql table id valor 1 5 2 15 3 7 I want to take the value of the "id" that has the highest value in the value field. I want to return in this case the value 2.…
-
1
votes1
answer378
viewsError: Array to string Conversion - Select Multiple Laravel 5
In my View I have: <select multiple="multiple" name="carga_mental[]" class="form-control select2"> @foreach($cadastros->where('key', 'carga_mental') as $carga_mental) <option value="{{…
-
1
votes1
answer86
viewsCheckbox value is null, Column 'situation' cannot be null
I have a field $table->enum('situacao', ['ativo', 'exonerado']);. I created a checkbox to register, but it returns the following error: 1048 Column 'situation' cannot be null. How can I solve?…
laravel laravel-5 laravel-eloquent laravel-5.3 laravel-bladeasked 6 years, 11 months ago Jonathan Silva Gomes 21 -
1
votes1
answer373
viewsProblem with referential integrity in Migrations (Laravel 5)
I’m having a problem using onDelete('set null') in a foreign key. You are returning the error: [Illuminate Database Queryexception] SQLSTATE[HY000]: General error: 1215 Cannot add Foreign key…
-
1
votes1
answer1213
viewsPassword registration with Hash in Laravel bank
Look guys I’m not able to register the password with the hash in the bank, I can register all data but the password is not encrypted public function CadastroSalvar (Request $request) {…
-
1
votes2
answers485
viewsLaravel 5.3: Auto_increment jump (id) (Gaps)
I did a basic CRUD using Eloquent. My problem is time to create (Create). I use the code below: public function store(Request $request) { $subscription = new Subscription; // Basic Data…
-
1
votes1
answer794
viewsLaravel 5.5 - Sending Email / Env File
I am migrating a site I have to Laravel 5 and I came across a problem. To email in Laravel I need to manually fill in the user and host port data in the file . env As in my site I have an interface…
laravel-5asked 6 years, 9 months ago Diego Lela 538 -
1
votes1
answer5714
viewsError Sorry, the page you are Looking for could not be found. in Arabic
I got a problem with this one website it appears this error on the screen when I try to access it what can this mistake be as I do to fix it. My parents: <?php /*…
laravel-5asked 8 years ago Felipe Henrique 2,135 -
1
votes1
answer7082
viewsOpen existing project Laravel
I need to open a project previously done in Aravel. I’ve never worked with Laravel, so I don’t know where I might be going wrong. the project came in a file . zip when I unpacked it created a folder…
laravel laravel-5 laravel-eloquent laravel-4 laravel-5.3asked 6 years, 9 months ago Cesar Vinicius 145 -
1
votes1
answer84
viewsManually create client_secret in PHP for Laravel + OAUTH2
Problem: I have an application with auto-installer. When the user sets up your account, I would like to manually register it in the table oauth_clients, already with a secret of his own. If I do…
-
1
votes0
answers72
viewsLaravel 5.3 Route does not accept parameters other than "/"
Good morning. I’m new to Standard and installed 5.3 with php 5.6. When I started defining the routes I came across the situation of that method Route::get() in the first argument only accepts "/".…
-
1
votes1
answer369
viewsManual authentication of a table field in the Laravel Framework 5.3
I’m starting now with the Framewok Laravel 5.3., however quado crio with artisan o make:auth it automatically creates the views, model, and controllers concerning Login. Only I added a field to…
-
1
votes1
answer69
viewsView does not show string value in the primary key field
Good people. I am trying to list the attributes of my table in Laravel 5.6 through a list view, but in the registration field (PK) the values contained are not presented completely. This field is a…
-
1
votes1
answer46
viewsDoes not display relationship data within WITH
I have a relationship Polymorphic between Customer and Car Class. Client class: public function carros() { return $this->morphMany(Carro::class, 'dono'); } Car Class: public function dono() {…
-
1
votes1
answer27
viewsDisable button after redirect
I have the following situation: A screen (Tela1) where the user chooses the button referring to a Set (an entity of my program), he clicks and opens a registration form for that Set. By clicking…
-
1
votes1
answer100
viewsFilter records within one month interval
I have several items sold in a month and would like to display only the items sold in the current month. Example: in September I had a total of 30 items sold, and in August, 20 items. How do I take…
-
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
votes1
answer277
viewsACL Laravel using ADMINLTE
Good morning. I am using Laravel 5.5 and adminlte. I implemented Acl with middlewares and use can to test permissions. I would like to put can('centrocusto') in the adminLte menu. It’s not working.…