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
-
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
votes0
answers50
viewsIs it possible to install Koel on a simple php server?
I was wondering if it’s possible to install the Koel, on a simple PHP server, basic hosting. If yes, how can I install correctly ?
php laravel commiserate hosting configurationasked 8 years, 4 months ago Jefferson Mello Olynyki 864 -
0
votes0
answers123
viewsAccess to a json array value in Ajax
I am working on a project in Laravel. I am doing a dynamic search function using Ajax and Json. Function in the controller: public static function busca_ajax() { $query = Input::get('query');…
-
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
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
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
answer406
viewsQuery with the following logic
Hello friends of the community. I need to fill a chart but I can’t assemble the query to receive the attributes, could someone help me? The query I need to do is the following. select client.name,…
-
0
votes1
answer73
viewsLaravel - Route "insecure"
I am doing a function to evaluate a transaction between a client (company) and his client (end consumer). Then an email/sms is sent to the final consumer with a link for him to evaluate the…
-
0
votes1
answer201
viewsIssues with Laravel Sqlite File Permission
I’m having problem with initializing the Sqlite database when I run the command migrate error appears like this [PDOException] SQLSTATE[HY000] [14] unable to open database file My file .sqlite is…
-
0
votes2
answers251
viewsUpdate many fields of a model
Use the method below to update a table from the form: public function postEdit(){ $produto = Produto::find(Input::get('id')); $produto->nome = Input::get('nome'); $produto->descricao =…
-
0
votes1
answer126
viewsProblems using Query Builder in Laravel
I have manipulated the BD data with the creation of Models, but in my latest project I’m tending to make use of Query Builder, but it’s going wrong. I would like to understand what is missing so…
-
0
votes1
answer120
viewsSet Result Even If Record Does Not Exist
I’m trying to make a query where the table shows the column with the total 0 even if there are no records in that given status. For example: SELECT STATUS, COALESCE(COUNT(ID), 0) AS TOTAL FROM…
-
0
votes1
answer353
viewsIs there any way to render a Laravel view to a string?
I wonder if there is any way to save the return of a view on Laravel in a string. Usually we return to view to "print" the result of an action on the page: function getIndex() { return…
-
0
votes1
answer62
viewsQuery scanning all records
Good morning guys, could someone help me with this comeback? Well, I got this select: public function Empenho($id) { $table = DB::table('empenho as emp') ->join('gestora', 'emp.unidGestId', '=',…
laravelasked 8 years, 7 months ago Lincoln Binda 319 -
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
votes1
answer184
viewsUse of the Eloquent hasManyThrough
// Modelo Cliente public function plano() { return $this->hasManyThrough('App\Plano', 'App\Plano_cliente','cliente_id','id','plano_id'); } //Modelo Plano public function cliente() { return…
-
0
votes0
answers89
viewsProblems with Composer and Laravel 5.0 on Mac El Capitan
I have the following error, after running a command to install a versioned project. Script php Artisan clear-Compiled Handling the pre-update-cmd Event returned with an error [Runtimeexception]…
-
0
votes0
answers414
viewsSend data to a controller via jquery with no return
I’m working on a project in Laravel. In a certain part I need to send data to a controller via jquery and from the data obtained in the controller, redirect to another view. How can I do that? I…
-
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
votes1
answer634
viewsRoute without authentication Laravel
Good morning I need to free a REST service on a system with authentication, in Laravel 5.1, so when I access the REST address in a place that is not authenticated, it asks to enter login and…
-
0
votes2
answers38
viewsList of Tables
Creating my Migrations in Laravel I came up with the following question: I have these two tables: Used ID NOME_MARCA_ID MODEL YEAR BRANDS ID NAME in Migration to keep the brand ID I would do so:…
-
0
votes1
answer285
viewsAuthentication in Laravel
Using Laravel, what can I do so that only authenticated users can register new users? With this, the user registration page would only be accessed by authenticated users. In Laravel’s default…
laravelasked 8 years, 2 months ago Fagner Lima 52 -
0
votes1
answer760
viewsData formatting
Good morning, could someone help me with this formatting? Well, I have the following form: <div class="form-group col-md-12 col-sm-12 col-xs-12"> <div class="col-md-2 col-sm-2 col-xs-2…
laravelasked 8 years, 6 months ago Lincoln Binda 319 -
0
votes0
answers263
viewsUsing Cache from Laravel
I wonder if the way I am working with cache is correct and if you have something more practical for it. Follows the code: <?php namespace App\Modules\Admin\Controllers; use Cache; use Auth; class…
-
0
votes0
answers78
viewsChange stopwords in slug generation in October CMS
It is possible to change the stopwords by generating a Slug in October CMS? My problem is that by default, it removes words like: from, to, do, which I will use in English, and I need to remove…
-
0
votes1
answer518
viewsHow to get the table name of a model?
I need to get the table name that is used by determined model in my written application in Laravel. In the past, in the Laravel 3, it was only necessary to do this to find out the table name:…
laravelasked 8 years, 6 months ago Wallace Maxters 102,340 -
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
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
answers222
viewsHow to include values in the same Section without overwriting the previous one?
I have a view which includes another view . I want these same views to include a javascript in view main call javascripts. Thus: #layout.blade.php <head>@yield('javascripts')</head>…
-
0
votes2
answers112
viewsMark checkboxes when choosing select value, coming from a PHP (Laravel) BD
I have a problem I don’t know how to fix and I don’t know how to look. I’m building a system in the php - laravel. This system will have user levels. I’ve done all the registration, changes, user…
-
0
votes1
answer944
viewsSending form via Ajax in Laravel + Request
I have a form that makes the registration of people. I need to send it with Ajax to not reload the page. So far I have the following ready that I followed from a tutorial. Js who makes the upload.…
-
0
votes0
answers119
viewsForm does not work with Standard
Speak next guys I have a problem sending form in this website I am unable to send from an error that I do not know what is follows part of my codes with the log error: Controller: <?php namespace…
-
0
votes0
answers131
viewsHow to use a single Larable authentication for all subdomains of the same domain?
I need to use a single authentication in a standard project, which is in the subdominio1.dominio.com.br. In this subdomain will have an authentication, and is working normally, via database 'driver'…
-
0
votes1
answer397
viewsLaravel - How to save checkbox choice in item listing?
In a contact management system, I have a list of items which have a checkbox each (gmail style) so I can select them and use some action related to the selected ones. What is the best way to save…
-
0
votes0
answers63
viewsAngular routing 2 and Laravel 5.3
I created an initial system (crú) of Laravel 5.3 and managed to implement angular 2.0... put to view the app.Component in Welcome.Blade and it worked normal... I have doubts about how to routing…
-
0
votes0
answers527
viewsHow to change the default name of the Laravel users table columns
I am interested in changing the default name of the table columns users and password_reset of Laravel 5.3. My question is, in which locations or configuration files should I replicate this change?…
-
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
answer1378
viewsError uploading Images with Laravel
I’m trying to use Jasny’s Bootstrap file upload(http://www.jasny.net/bootstrap/javascript/#fileinput) to upload photos and save the photo name in the BD with Laravel 5.1 but not working. Apparently…
-
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…
-
0
votes1
answer458
viewsCreate new users with Laravel 5.3
I ran make:auth from Aravel 5.3 but when I’m creating new users I lose my session and the new user is logged in. Does anyone know how to create a new user and continue logging in with my account?…
-
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
votes2
answers52
viewsColumn Not Found With Inner Join
Lines: 1 - Data from filter form 2 - That with i enter a Model relationship function. I do this because I need to sort my list by column order MEDIA. 3 - The strange thing is that I need to do an…
-
0
votes1
answer1057
viewsHow to keep data already filled in the textarea and select option after submitting a form?
I am using the PHP language and the Laravel Framework 5. In the form validation, if it contains any blank field or with unaccepted character sizes, clicking save shows the validation message, but…
-
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
votes0
answers448
viewsConnection refused Lockable
When I send my form, after processing the data in the save method of the Laravel the following error happens: QueryException in Connection.php line 769: SQLSTATE[HY000] [2002] Connection refused…
-
0
votes1
answer1294
viewsLaravel, increase the default fields of User authentication, already ready in the Windows via Poser
Hello I wanted to increase the number of fields of the authentication form to insert new fields. use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class…
-
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
votes2
answers610
viewsHow to pass several variables to a View in Laravel?
How do I pass several variables to the same view? Something like: return "view('textos.index', ['textos1' => $textos1, 'textos2' => $textos2, 'textos3' => $textos3]);"…