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
-
0
votes1
answer72
viewsError running Gulp --Production Vagrant Laravel/Homestead
I set up an environment laravel/homestead to study the Laravel 5.1 , when trying to execute the command gulp --production get the error below: Error: Cannot find module 'strip-bom' at…
-
0
votes1
answer856
viewsFilter a query using an attribute in Laravel
I have, briefly, the following structure:: Suppliers: id | cnpj | razao_social | endereco_id People: id | nome | tipo_pessoa | fornecedor_id Addressee: id | logradouro | cep Model - Supplier: public…
-
0
votes2
answers2205
viewsNothing to migrate
Hello, I’m starting in php plus the Laravel framework, and my doubt is about the command php artisan migrate to migrate a table in the database. When I executed the command for the first time it…
-
0
votes0
answers38
viewsCommit only at the end of the registration stages
I want to register that will have several forms, for example: first I will register basic information, to advance register more advanced information according to what was passed in the 1st phase of…
-
0
votes1
answer906
viewsHow to escape a javascript variable to the Laravel Slide?
Hello, I have this javascript function that receives a parameter: function teste(id){ document.getElementById("campo1").innerHTML = id; document.getElementById("campo2").innerHTML =…
-
0
votes3
answers1454
viewsAccess all file settings. env
Does anyone know how to access all the data that is in the file . env? , I need to bring all the data as an array, I have already used the helper env() function, without success, I need something…
-
0
votes1
answer52
viewsRequest returning Decimal
Guys I have a field in a form that is type text and when I give a post in the form and capituro the request->get this field returns string when it has some letter in it. but if it only contains…
laravel-5asked 8 years, 9 months ago Joao Nivaldo 1,229 -
0
votes2
answers555
viewsController pulling database data from wrong place
I have the application properly configured and running normally. But one detail is jamming. This is my file . env: APP_ENV=local APP_DEBUG=true APP_KEY=9FaEj6iJCBur1favtWQ88b8m1anbGbzP…
-
0
votes1
answer240
viewsWhat is the best way to calculate between attributes of a model, to display in the view?
I’m currently calculating everything in the view, something close to below: {{{ $object->a + ($object->b==1?5:10) + $object->c * (int)object->d... But it doesn’t seem like a good idea. I…
-
0
votes1
answer194
viewsProblem with routes with alias in Laravel 5.1
I’m having problems creating routes with alias in Laravel, I can use normal routes, however, when I add an alias on the route as: Route::get('admin/categories',…
-
0
votes2
answers694
viewsSidebar via Controller - Laravel 5.1 + Adminlte 2
Good afternoon! I have the following problem here... In my view model app.blade.php have the line @include('partials.sidebar') which includes my sidebar, okay. The point is that I have 2 different…
-
0
votes1
answer1626
viewsArray to string Conversion, Orange Validation
I have the following code: HTML: <form method="POST" enctype="multipart/form-data" action="/admin/dashboard/category/{{$action}}"> ... <fieldset class="form-group"> <label…
-
0
votes2
answers94
viewsSave Related Models (One to One) - Laravel 5.1
I have a Model Info and a Model Complement that are related one to one. The relationships are already working properly, I can pull the data and such, but I need to do an update and do not know how.…
-
0
votes1
answer1771
viewsChange authentication table, Laravel 5
I’m making a platform that will have 3 authentication systems, one for ordinary users, one for admins, and one for workers. I thought changing the model and table in config->auth would be enough…
-
0
votes1
answer1903
viewspgsql connection problems in Laravel 5.1
I am trying to connect to the pgsql database by Laravel 5.1 but an error is appearing: Pdoexception in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using…
-
0
votes2
answers1269
viewsHow can I treat Violation Constraint exception to show the user in a user friendly way
How best to treat a Integrity Constraint Violation exception to explain user-friendly ?
-
0
votes0
answers8142
viewsLaravel date in full in English
I’m using Laravel 5.2 and would like to bring the dates in full in Portuguese (pt_BR), but Carbon brings the dates text only in English. $post->created_at->formatLocalized('%B'); //"January"…
-
0
votes1
answer174
viewsEloquent giving error 500 with many results
I’m performing a query in my base with some LEFT JOIN and some WHERE clauses, however, I’m having a lot of difficulties with the return of this query that, for having many results, simply after a…
-
0
votes0
answers404
viewsLogin and Register on the same page - Laravel 5.2
Hello, I am developing a web system using Standard 5.2 and used make:auth to generate the Standard login system, but I came across the following problem: I want to use the registration form on the…
-
0
votes0
answers683
viewsHow to record and display images using Postgresql and Laravel 5.1
I have the following code in my Controller to save the image in the database, not any error so I think it works right. $data = Input::file('assinatura'); $escaped = bin2hex($data);…
-
0
votes0
answers136
viewsRun cycle of Migrations ordered in Laravel 5, how to change it?
I’m starting to use that framework and I realized that the migrations when not created in a time cycle for execution there can be several errors, this is normal? For example if you create a…
-
0
votes1
answer409
viewsProblem with select and use of ajax in Laravel 5
I am trying to implement a select with ajax in Laravel 5 have the following situation. a state model class class Estados extends Model { protected $table = 'estados'; public function cidades() {…
-
0
votes1
answer851
viewsError page 500 returned instead of Laravel error page
I don’t know why errors aren’t rendered in my project, it just doesn’t go through the Handler method. bootstrap/app.php <?php $app = new Illuminate\Foundation\Application( realpath(__DIR__ .…
-
0
votes1
answer4866
viewsI cannot access my project in Laravel 5 using Xampp
I started studying the Laravel 5 and I was able to install the commiserate and the php framework. I did some testing after the installation worked perfectly a wonder, I turned off my machine and the…
-
0
votes1
answer289
viewsField return in Laravel
I have the following field stored in my database: When trying to return it in view by Laravel 5.2 he is returning only the 45 the rest is not. the field is defined this way in the bank: But other…
-
0
votes2
answers1077
viewsLaravel Authentication Several Different User Types
I need direction guidance on how I will separate my authentications by user type... My application has 3 types of users, each with its own Dashboard and specific admin panel, adminGeral(eu),…
-
0
votes0
answers721
viewsLaravel 5 (Eloquent) JOIN between two consultations, is it possible?
The following SQL, executes two queries and "sums" the hard answers "laterally": select * from (select id,name from client where id = 20) as a join (select id,age from client where id = 20) as b ON…
-
0
votes1
answer91
viewsRoute order in Laravel 5
I’m starting at the Larable, I have the following routes: Route::get('/', function () { return view('indextemplate'); }); Route::get('/', function () { return view('footer'); }); Route::get('/',…
-
0
votes1
answer1965
viewsNetbeans is identifying as bugs aguns files from Laravel. How to resolve this?
I just installed a version of Laravel 5 and opened the project in Netbeans IDE 8.1. I am running with PHP7. As you can see in the photo, there are several errors in different folders. Even the…
-
0
votes1
answer166
viewsLaravel 5 - database table for array with predefined index
Is there any way to retrieve the results of a query in the database and transfer it to a Array with one of the table fields being index of Array? You could achieve this result in two steps. After…
-
0
votes1
answer617
viewsProblems configuring routes on apache2 server with Laravel 5.1
I was doing a local project and always ran it with php artisan serve and everything was going perfectly now that I am going up the project to a machine of the digitalocean I am having problems with…
-
0
votes1
answer357
viewsHow do I list all unstable controllers in Laravel?
On Laravel 5, we have a folder called Http\Controllers that has the controllers used in the application. There is also a controller called Controller, which is abstract, i.e., is only used to be…
-
0
votes1
answer235
viewsHow to access a project route (URL) written in Laravel from another project (URL) that does not use Laravel?
Let’s say I have myApp1.com and myApp2.com, and that only the second project is written in Laravel. My question is: Taking into account that myApp2.com has login authentication, it would be possible…
-
0
votes1
answer71
viewsWhere affecting only one field in select
Good morning, how do I make my Where clause affect only one (1) field in my search? For example: $query = DB::table('proventosdesc as proven') ->join('calculo_rh as calc', 'proven.pessoaId', '=',…
-
0
votes1
answer573
viewsHow to install Laravel 5 without using Composer?
Is there any way to install Laravel 5 without using Composer? I think version 4 had a form where I didn’t need Composer, but it seems that 5 is now "more dependent on Composer".
-
0
votes0
answers68
viewsFrequently disconnects Laravel App
I created a CMS on the platform of Laravel 5.2, created the whole user system (login, Register, reset pass, logout), but the user disconnects frequently, already disabled the Middleware…
-
0
votes3
answers1022
viewsHow to keep a radio input selected in a view in Laravel?
How would you keep one radio input selected in my view, I have the following codes: View: <div class="col-md-3"> <div class="form-group"> <label>Tipo de Conta</label>…
-
0
votes1
answer41
viewsPaginate Updating Request?
Good morning, I will try to simplify my difficulty, however any extra doubt I will be available to provide any code information... I have a filter whose which I do my searches for certain values and…
-
0
votes1
answer418
viewsLaravel does not return Belongsto
Opa galera I have two tables one with name Product and another with name Productocategoria. When I go to make the relationship in the models, only the Product object returns the products, the…
-
0
votes1
answer355
viewsInstall Laravel 5.3 on Ubuntu 14.04.5 server
When executing the command composer create-project --prefer-dist laravel/laravel blog Laravel 5.2 is installed. My machine is installed with php 5.5.9 but php 5.6.26 is installed on the site. Why is…
-
0
votes0
answers226
viewsProblem compiling Gulp in Laravel 5.3
Error while running Gulp Laravel 5.3, already reinstalled all packages. What to do? Follow the mistake you give me: Vue packages version mismatch: [email protected] [email protected] This…
-
0
votes1
answer68
viewsLaravel returns Incorrect table Definition;
When running migrate here, the Variable is returning: Incorrect table Definition; there can be only one auto column and it must be defined as a key. Attached is the code I’m using to create…
-
0
votes1
answer1034
viewsHow to bring the radio button checked with a Bank result
It seems such a simple thing but it’s not working I’m trying to bring checked a radio button but it does not bring anything marked the data is being returned from the bank already made the test but…
-
0
votes2
answers1153
viewsLaravel Relationship 5.2 Eloquent
Good morning, everyone, I’m having a problem in a relationship between tables with Elouquent (Laravel) I have two tables [clients / activities_commercial] (innoDB MYSQL) In the client table there is…
-
0
votes1
answer450
viewsProblem with Datatables in Laravel 5.2
Hello, I tried using Datatables server-side and not server-side but it does not display the datatables. I do everything according to the document (https://datatables.net/) and in tutorials on the…
laravel-5asked 8 years, 1 month ago RamonVicente 115 -
0
votes1
answer741
viewsLaravel 5 Pagination without "refresh"?
I have a form where I display a table with data to assist the employee in creating the contract, this table is being paged: ($seguranças = DB::table('Segurança') ->where('disponibilidade', '=',…
-
0
votes1
answer4306
viewsLaravel 5 - Tokenmismatchexception in Verifycsrftoken.php line 67. How to solve this without using the FORM class?
I have a php/Html project and I’m passing it to Laravel. Which means a lot of stuff I won’t create from scratch and I want to make the most of what’s already written. At the moment I am working with…
-
0
votes0
answers391
viewsLaravel query using SQL tags Like, Where, and, or
Good afternoon guys I’m having a problem because I need to make the following representation of consultation in Aravel SELECT * FROM imovels AS i INNER JOIN estados AS e ON e.id = i.estado_id INNER…
-
0
votes0
answers297
viewsRequest select returning null value
Good afternoon, I’m having trouble getting the value of a select in the following form: {{Form::open(array('action' => 'FilterController@EstatisticaEsic', 'class' => 'form-filter'))}} <div…
-
0
votes1
answer1176
viewsGet Registry ID created Laravel 5
I have the code below to create a report: $this->repository->create($request->all()); return response()->json(['sucesso' => 'Relatorio cadastrado com sucesso.']); How do I get the…