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
votes2
answers2962
viewsHow to total fields in Lade using Laravel?
Dear, I’m making a dashboard, and set up a table on HTML, in a View and I need to tally some columns, and I’d like to do that right at HTML, but how I’m using DB::select I can’t use the command SUM.…
-
0
votes0
answers37
viewsI bought a website but I don’t know how to install it. [Nginx, Laravel, linux]
the site is Laravel Nginx, if it were apache I would even know. that is written, but does not say the commands I have to give in vps to install this and tals:…
-
0
votes1
answer227
viewsHow to use an . php extension file in an Laravel form?
I have a file .php which was developed in php pure and need to use it in Laravel. For that I need to call him directly from action of a form, but the application is being developed in Laravel. How…
-
0
votes1
answer281
viewsAssign and send unchecked checkbox value in Larevel
I have a form where the user can enable or disable certain options by checking or not a checkbox. <input name="ppra" type="checkbox" data-oFF-text="INATIVO" value="1" data-off-color="danger"…
-
0
votes0
answers74
viewsRunning dll via php and Laravel
I have a project in php with Laravel and I need to use some functions contained in a dll, I tried to use the COM(Component Object Model) class native to PHP, but the Laravel from as a class not…
-
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
votes0
answers67
viewsHow to choose the default folder when performing the "Styles" and "scripts" functions of Elixir?
Using the Laravel Elixir, I usually use the functions styles and scripts to concatenate the Assets to a single file. However, it seems that by default these two functions try to read files from the…
-
0
votes1
answer138
viewsLaravel environment with multi login
I have a personal project that I would like to make available to some companies, but each company must have its own login, so the login screen should have the following address:…
-
0
votes1
answer1537
viewsLaravel 5.4: AJAX request using route with JS variable?
I need to use a route from Laravel within the AJAX request code. The way I built it doesn’t work, but it doesn’t work. I believe the variable call (servico) you’re wrong, because I put a number…
-
0
votes1
answer382
viewsHow to make the CRUD by model in Laravel?
We can do in the controller the method save() the find($id) the update() and create(). How could I do in that Model had that accountability?…
-
0
votes1
answer82
viewsAppend to a specific line in a text file
Good morning, I have a function that makes an append in certain line of my xml file. function addInFile($file, $lineNumber, $content) { $fileTemp = "$file.bak"; $currentLine = 0; $fpRead =…
-
0
votes2
answers317
viewsHow do I use the same session in the Standard for all subdomains?
I’m looking to log in to a users.meudominio.com subdomain. To test the session, I’m just displaying what I type in the login field on the screen with the code in the controller:…
laravelasked 8 years, 1 month ago Arthur Brandão 31 -
0
votes1
answer174
viewsCurl and Laravel, always redirect
I’m trying to make a simple Curl to an Laravel app (5.2) running on my machine: curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"…
-
0
votes1
answer267
viewsHow to Get Answer from a Route with JS
The route is configured this way: Route::get('database/getClubes', 'DataBase@getClubes'); The Controller is like this: public function getClubes() { return ClubesDB::getClubes(); } The Model looks…
-
0
votes0
answers93
viewsSum of working time of several employees
I have a collaborators table, and other 2 activity tables, each with a column of time used to perform that activity and I would like to add these tables to know the total time, example, employee A…
-
0
votes1
answer124
viewsReturning External Array when Retrieving Data with Laravel
I have a column called clube and in one line she has the following {"clube":["Santos"]}, using this form for the data $clubes = Socios::where('socio', $socio)->select('clube')->get(); He…
-
0
votes1
answer54
viewsURL error in google search with Laravel
Speak people, I’m with the following problem I developed this site here, If you go to google and type pass well contests it appears in the search quietly, put this on desktop version. Now if you try…
laravelasked 8 years, 1 month ago Felipe Henrique 2,135 -
0
votes1
answer62
viewsPayment Method divided between accounts
I am developing an E-commerce in which it will have several brands, each brand will have its proper integration with Pagseguro, the question in question is how to separate the values of each brand…
-
0
votes1
answer1063
viewsTEF communication
I need to integrate TEF into my system. Does anyone have any idea how I can start this? Is there any open source software to do this integration? I found some information on the Internet that talked…
-
0
votes2
answers44
viewshow to orient image using image intervation
I need something to guide the image in the right way and then appear. I’m using Laser and image intervation <?php $img = Image::make("{{$file->caminho}}{{$file->nome}}")-orientate(); ?>…
-
0
votes1
answer135
viewsHow to identify which method called the view in Laravel 5.4?
How can I identify which método who is calling the view within itself? Example: Indexcontroller.php public function create() { return view('index'); } Inside the archive view/index.blade.php how do…
-
0
votes2
answers173
viewsWhite stripe below the footer in the Airship with Adminlte
It was learning to use the Laravel 5 Framework, using the Adminlte template and there is a fact that is bothering me a lot, a direct track appears and so cutting the look of the template, below the…
-
0
votes1
answer107
viewsReturn code from a record to a code field in the view via a modal
I wonder if someone could show me how I could open a modal to select a record in a table and return the code to a view text field so I can use when saving the form data, I am using the Framework…
-
0
votes0
answers891
viewsRoutecollection.php line 161
I developed an application PHP using Laravel on a computer, when I copied this same project to another computer and run it, the path error occurs below: NotFoundHttpException in…
-
0
votes0
answers127
viewsError executing make command with repository plugin
When I execute the command php artisan make:entity User it returns the error [ReflectionException] Method Prettus\Repository\Generators\Commands\EntityCommand::handle() does not exist I did the…
-
0
votes1
answer1171
viewsHow to use the bcrypt function of the Laravel?
I have a file .php in the public folder of Laravel and for larger reasons I cannot create a controller of it. However, I need to use the function bcrypt to generate the password an encrypted…
-
0
votes1
answer56
viewsHow to install only autoload and Laravel routes in a new project?
We are doing a test with a new project for a high traffic site (a few hundred, or thousands, of users per second) and wanted to know if there is any way to install only the route system and autoload…
-
0
votes1
answer246
viewsUsing multiple js Vue files in Laravel
Guys I am using Laravel v5.5 to start a personal project and I will use Vue.js, I did not find a very didactic content on the internet, as I do to use other files . js?? for example: /js/login.js…
-
0
votes0
answers75
viewsProject manifest file error Readable
I was downloading the app for hosting and I came across an error that does not find solutions, locally it works normally, in hosting this error. If anyone can help I’d really appreciate it!!…
-
0
votes1
answer234
views -
0
votes0
answers25
viewsBug lib jQueryGantt on bootstrap page
I’m using the jQueryGantt plugin (https://github.com/robicch/jQueryGantt) but I realize that on pages with bootstrap he "Buga" the table as in the image below, I wonder if anyone has used that lib…
-
0
votes1
answer183
viewsAfter inclusion/exclusion setar active my tab-panel (Laravel)
I am developing an application where it is possible to include services in a tab-panel and the other tab-panel it is possible to save other information, but when saving the record in the tab-panel…
-
0
votes1
answer43
viewsIn this Laravel Validator, what is the right code with variable?
In this Validator of Laravel, what is the right code with variable? public function salvar() { $n =Request::input('campos'); for($i=1; $i < $n; $i++){ $pontosa =Request::input('pontosa'.$i);…
-
0
votes1
answer273
viewsForeach with two bd lists. Laravel Street
I read some articles and saw this way, but it is not correct giving the following error: (1/1) Errorexception Undefined offset: 1 @foreach($palpites, $confrontos) as ($p, $c)) <tr> <td>…
-
0
votes1
answer38
viewsHow to identify the data type returned from a controller?
I noticed that when creating a controller in Laravel it informs that some methods will return an object \Illuminate\Http\Response. I used a dd() at the end of the method and saw the following…
-
0
votes1
answer96
viewsHow to create sorting with multilevel relationships in Aravel 5.4?
I did a lot of research to find a solution, but I only found a few libraries that perform sorting with only 1 level. $anuncios = Anuncio::with(['veiculo' => function($q){ $q->orderBy('nome',…
-
0
votes4
answers320
viewsHow to load a project in Laravel in an old version?
I have a project done in Laravel Framework 5.4 and recently Laravel made an update to 5.5, when passing my project to another computer, Laravel 5.5 was installed in this PC, now I can not work in…
-
0
votes1
answer112
viewsPaginate Doubts Arable
I turned that code 1 into code 2 1)//$palpites=DB::select("SELECT * FROM palpite WHERE id_u='$id' order by id_c desc "); 2) $palpites =…
-
0
votes1
answer284
viewsTransform Brute Inner Join to Laravel Join
I’m updating a system that is developed in pure PHP and I’m putting it in Laravel, however, I’ve never made more than a Join and with "AND" parameters so I would like you to help me, how can I put…
-
0
votes2
answers139
viewsI can’t find the model generated by Artisan
I used the command php artisan make:model Exemplo and I couldn’t find where he saved this generated model so I could change it. I looked in the app/html folder and found nothing. My db is ready, so…
-
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
answers70
viewsHow to set timeout to dump in database.php?
I need to increase the timeout of MySQL for the execution of a dump bank. 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'),…
-
0
votes1
answer218
viewsLaravel - Does not take the table column
I’m in a quandary at Laravel I can’t fix, and I’ve tried a lot of things, and now I’m stuck with this: echo of a column value of my table in a input in the html. Code in the Controller: public…
-
0
votes1
answer787
viewsAsset function of the Laravel is not referencing
I have a project and I honestly do not know what I did differently, but at the time of opening it, out of the blue all images, files css and javascript are not being referenced. I’m using the…
-
0
votes0
answers101
viewsSearch bmp image in bank and show in view.
I have a bmp image saved in the database, but this file is already in the database and was not included in the framework, I would just like to know how to show this image in the view. Note: I have…
-
0
votes1
answer119
viewsPagination in relation to Laravel
How to make pagination in Laravel in hasMany() method for relations between models in Laravel?
-
0
votes0
answers82
viewsCan’t find Controller’s method
I was testing some features on the project site that I am doing in MVC, but it has a function that is not working anymore. When accessing the site it says: "Method App Http Controllers…
-
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
votes1
answer546
viewshow to pass many controller variables to the view in the Laravel
I want to pass these variables, but it seems that quantity prevents me, there is another way? return view('pontuacao')->with('somas', $somas[0]->p)->with('somas1',…
-
0
votes1
answer63
viewsHow to display different categories lists on the same page using Laravel 5.3
Good morning, I’m using Laravel 5.3, and I need to put together a page with a list of categories, and each category is a dropdown that should present the link to the products of these categories,…