Most voted "laravel-5.3" questions
Laravel is an open-source framework for developing web applications and services with PHP. Prefer the Laravel-5 tag if you are not dealing with an exclusive Laravel 5.3 feature
Learn more…132 questions
Sort by count of
-
1
votes1
answer422
viewsORDER BY in string date
I have a table in the database, novidades, where I have a column with the name date is being stored as a string in the format dd-mm-yyyy, but I would like to sort by date based on this value, I…
-
1
votes1
answer152
viewsGrid with Laravel 5.3 searching for the Foreign Keys
Hello. I have an application where I need to mount a grid with all table data produtos. This table has Foreign Keys for two other tables, grupo and subgrupo. To mount my grid, I need the product…
-
1
votes0
answers54
viewsUnscripted file refresh_token sending request with angular 2
When I make the request to recover the token it works, but when I send the request Grant type refresh_token the Laravel cannot decrypt the refresh token. Angular 2 let params = { client_id:…
-
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, 6 months ago Jonathan Silva Gomes 21 -
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, 4 months ago Cesar Vinicius 145 -
1
votes0
answers680
viewsSaving an Array in the Mysql database - Laravel
I’m a beginner in the Laravel framework and I’m in need of some help. I need to save an array in the Mysql database, however it is generating the following message. Errorexception in…
laravel-5.3asked 6 years, 11 months ago Hugo Ferreira Chiesse 11 -
1
votes1
answer226
viewsQuery problem using DB Where/orWhere Laravel
Good afternoon friends, I’m having problems with a query using DB in the Windows, I put a clause Where and another orWhere and a whereBetween, but it is not going through the between, and when…
-
1
votes1
answer162
viewsRelationships Laravel Onetoone?
I’m doing some exercises, but there is one but I can’t understand why it’s not working when I do it with another name in the method. I have a method in the Model Location, where he does the…
-
1
votes1
answer678
viewsHow to open the modal bootstrap form after an Laravel 5.4 validation error
I have a contact form in modal bootstrap. I have the validations where they are validating correctly. Now my question is: How do I stop when I do not pass the validation it return the message in…
-
1
votes1
answer247
viewsHow to check if there is an error in the Laravel Blade with the @error tag Laravel 5.8.13?
Well in Laravel 5.8.13 there was an update in which instead of using: @if ($errors->has('email')) <span>{{ $errors->first('email') }}</span> @endif can be used: @error('email')…
-
1
votes1
answer4875
viewsHow to make specific sql queries using Laravel?
I need to make an appointment at the bank to see the birthday of the current month. A consultation of this type, see: SELECT * FROM membros WHERE day(dataNasc) = day(CURRENT_DATE) and…
-
1
votes1
answer156
viewsBelongstomany Laravel 5.4 Class 'Department::class' not found
I have several 4 tables Starting with Users -> Departments -> categoria_departamento -> category -> posts; Where the categoria_department table it serves as pivot for relation Many to…
-
1
votes1
answer787
viewsInsert Many To Many Laravel 5.4
I have a situation as follows. I have 4 user tables -> department -> categoria_department -> category -> posts Where in my view I have a select where it shows a data relation on ex…
-
1
votes1
answer431
viewsAPP_URL of . env record entire URL (in addition to the domain) of the application
I have a server with a domain where there are several Laravel applications, for example, the path of the application1 is like this: https://dominio.com/aplicacao1/public The problem is that when I…
-
1
votes1
answer246
viewsHow to make paging in a table that this related Laravel 5.4
There is a 2 tables and a pivot where she makes the relationship ManyToMany among the 2 tables. A table is called Postagems and the other table is called Departamentos, so I’m trying to do a related…
-
1
votes2
answers644
viewsReal-Time How it works. Because I’m having problems with my Laravel 5.4 tests
What do I need? I need when a user in the frontend sends a message to the system and the system (Dashboard backend) to receive a real-time notification that is the message just created. I’m doing it…
-
1
votes1
answer102
viewsThe images do not appear in the Mail inbox. Laravel 5.4
There is a contact form where the user sends a message to the system and the system automatically sends a message thanking his contact and along with the message I send the most viewed articles.…
-
1
votes1
answer417
viewsHow to set up sending email in Laravel within cron?
After the creation of cron (code below) is made a scan in the database behind changed data. I have to send an email with this data. How can I do that ??? Code of the cron: <?php namespace…
-
1
votes2
answers501
viewsI cannot use the foreach with object twice in the same view in the Laravel
I have a big problem that I can’t solve because I’m still a beginner in Laravel. The problem is I’m developing a web application and I need to list the cities object in two different select, but…
-
1
votes2
answers185
viewsLaravel cron error does not execute
I have a cron that should be running every day in an hour. $Schedule->command('inspire')->dailyAt('15:00'); but he is not being executed Code <?php namespace App\Units; use…
-
1
votes1
answer949
viewspagination with ajax in the Laravel
How could I make an adaptation of my code to make the paging work without updating the page with ajax? My functional paging code is like this: defined route Route::get('/home',…
-
1
votes1
answer336
viewsAjax does not receive controller response
PHP public function salvar_distrito(Request $request) { $distritos=Distrito::create($request->all()); if ($distritos) { $messagem = 'Adicionado com Sucesso!'; echo true; } // Se houver algum erro…
-
1
votes1
answer47
viewsUPDATE VIA CSV LARAVEL
I have this parameter to import data via CSV and I want to know how to create the UPDATE function based on the CODE field. public function importEstoque(Request $request) { $validator =…
-
1
votes1
answer42
viewsLaravel:I can’t Download a file
I have tried several tutorials and researched similar problems here in stack,but without success ,previously I took the id of the file and it was passed as parameter and did not return anything.Now…
-
0
votes2
answers246
viewsSet connection according to logged user data
I created a second connection in my config/database.php file and I will also create a third one, I wanted to know how to switch between these connections according to the logged in user.…
-
0
votes1
answer612
viewsRead word file in Laravel 5.3
Guys I’m having a difficulty reading a Word file in the Windows, the situation is as follows: I have a form where a person adds a word file in an input type file field. I want to take the text of…
-
0
votes0
answers70
viewsHow to make a filter in Laravel 5.3
Hello, I’ve been trying to make a form that receives a Cpf and if this Cpf is in the database it returns all the data linked to this Cpf (name, position, code etc) right next to the form, in the…
-
0
votes0
answers155
viewsLaravel 5.3 Multi Auth with Heritage
I am using Laravel 5.3 and came across a problem. I need to authenticate multiple types of users. I saw in the documentation and in some tutorials that it is possible to do this in Laravel, the…
-
0
votes0
answers631
viewsError 404 - Not Found
Good afternoon, I am doing a project where I have installed php7, mysql, apache2 in a virtualbox with ubuntu16.04. I’m working locally and I’ve installed the 5.3 Laravel. I have an api already made…
-
0
votes1
answer1492
viewsBlocking routes for a particular User type in Laravel 5.3
This is my first post here. I’m starting to use Laravel 5.3 to create a system. In this system I will have two types of users (Admin and Client). I would like to block certain routes for the client.…
-
0
votes0
answers19
viewsLaravel on Windows server
Staff I made a site in Laravel 5.3 and when I was publishing it I realized that the client’s hosting is in Windows 2008 on Ocaweb. I can’t change to Linux. I’ve already turned on php 5.6. I just…
-
0
votes1
answer181
viewsSend form to controller with ajax
I need to send a formulario with ajax, so that there is no recharging of página. In case there’s no way, I need the screen to go back to where it was. On the website I have these tabs, the tab where…
-
0
votes0
answers174
viewsHow do I integrate File Manager (Ckeditor) with AWS S3?
I’m using the CKEditor with the Laravel 5.3 and I need to save the images and files on S3 (AWS). On the part of Laravel is working, but in File Manager of CKEditor nay. Can someone help me?…
-
0
votes1
answer57
viewsProblem to update user password via ajax in Laravel 5.3
I have a table where I list all the users I have in the database and I have a td where are the actions for them that contain two buttons load balance and change the password at this time I am trying…
-
0
votes1
answer225
viewsAdd items within an array to later save
Hello, I have the following situation and would like a hint if possible how would be the logic to implement this procedure in my application PHP Laravel. I’m creating a stock system, in the drive…
-
0
votes1
answer336
viewsValidation with AJAX in Laravel
Talk personal, I would like to know how to make validations with AJAX in Aravel, I have tried several ways and it does not work, not put the code because I had given up there I have no more rsrs...…
-
0
votes0
answers640
viewsLaravel problems to redirect after authenticating?
I’m starting to learn how to use the Framework Laravel and I’m having a problem with directing after login, I’m using the login system itself Framework. To learn how to use the Framework I’m…
-
0
votes0
answers512
viewsChange sent email templade to reset password in Laravel 5.3
I created the authentication module for my application with php artisan make:auth and the password reset method is created automatically by him, ta everything running blz... what happens is that I…
-
0
votes2
answers60
viewsAccess direct key
I would like to access the direct key of an array object without having to loop (foreach) Instead of being like this: $nome = ""; $codigo = 0; $objeto = DB::select( "SELECT NOME FROM TABELA WHERE…
-
0
votes0
answers85
viewsAccessors and Mutators in Laravel 5.3
How do I run my own method in Accessors and Mutators of Laravel 5.3 it works with the methods of PHP itself, but if I try to use a method of my own, it gives error. I’ve tried it like this: public…
-
0
votes1
answer732
viewsLogin with Ionic using Windows for the back-end
Good afternoon. Could someone indicate some tutorial on how to login with Ionic 1 using Laravel 5 or 5.3 for the back-end? Att, Mauritius.
-
0
votes1
answer1569
viewsPass value of select to route in Laravel
I don’t know much about web development and I’m a little lost. I need to pass the id of a movie to a route in Laravel and I’m not sure how to get this value. <select class="form-control"…
-
0
votes1
answer444
viewsAdd field to standard registration form of Laravel 5.3
Good afternoon, I want to add the type field to the user of a system in Laravel and am doing as follows: Migration public function up() { Schema::create('users', function (Blueprint $table) {…
-
0
votes0
answers331
viewsRecover Data to Controller in Laravel
I am developing a web application with Laravel and on one of my screens I have a Customer and Contact relationship, where a client can have multiple contacts. So in my View I have a method to add my…
-
0
votes1
answer171
viewsQuery in sql for Laravel
This is the example of the consultation sql, I am trying to make this same consultation on Laravel if you can help. SELECT p.nome,(select min(op.preco_unitario) from opcao_produto op where p.id =…
-
0
votes1
answer268
viewsThe Bug class doesn’t exist?
I’m making the following mistake: Reflectionexception in Container.php line 731: Class App Defeito does not exist I’m using Laravel 5.4, I’ve checked apparently this all right. Code: Defeito.php…
-
0
votes0
answers60
viewsProblem with alphabetical ordering in the Aravel?
I have a query in Aravel that lists me all the users that exist I want to sort by alphabetical order but the way I put that by the documentation of the Aravel and as I have done does not order…
-
0
votes0
answers45
viewsVersion 5.3 Laravel with php 5
Good afternoon. I use version 5.0 of Laravel and one of the requirements of this version is that php has to be greater than or equal to 5.4. So far so good, my php installed is 5.6.32. But I wanted…
-
0
votes0
answers487
viewsProblem with migrate from Laravel?
I just installed Laravel on my pc to learn a little bit. But I’m having a little problem using the migrate. Every time I try to use the migrate, it presents the following error: [Illuminate Database…
-
0
votes0
answers103
viewsConfiguration Phpstorm 2017.1.1 + Lavarel 5.3 - Problems in routing / Project execution
Dae pessoall... I need help in setting up the project, because I believe this is the problem. Scenario: Customer bought a website, little guy did and abandoned, disappeared, full of error and…