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
-
1
votes2
answers212
viewsIssues with Laravel Resources 5.4 within Groups
I’m having trouble trying to access some routes that come from a Resource (products), She’s inside a group, follows my code: Route::group([ 'middleware' => ['web', 'auth'], 'prefix' =>…
-
1
votes1
answer308
viewsRelationship Many to Many with select multiplo in Laravel
I have the Post and Tag models with a Many to Many relationship. When registering a post the previously registered tags appear normally in select and I can save in the bank. In the edit form I am…
-
1
votes0
answers62
viewsHow do I do direct treatment on the Laravel model as much set as get?
I am working on a database already populated and I need to do the replacement of , for . and of / for - without having to use the frontend only in the model.…
-
1
votes1
answer1131
viewsProblems listing data from related tables in Laravel 5.3?
I’m working with php, Laravel 5.3 and myql. Having created everything (Migration, model,controller, View, relationship), is giving me the following error: Errorexception in…
-
1
votes0
answers968
viewsLaravel: Fill in form::model
I use the same form to register and edit, so I have that if else to show the form. As I have the table Convenio and Endereco, need to bring the information from the address through a with, my…
laravelasked 7 years, 2 months ago Diego Vieira 1,807 -
1
votes1
answer367
viewsOrange Push and Native React notification
I have a web application developed in Laravel, where I register clients, register orders for each client where an order code is generated and for each order I register the steps. This application…
laravel laravel-5 react-native push-notificationasked 5 years, 11 months ago Maurício Biléssimo 351 -
1
votes1
answer195
viewsMysql connection to Laravel 5.0
I’m making the connection to the database mysql with laravel using the following code in the archive database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'),…
-
1
votes1
answer151
viewsHow to queue requests for an api made with Laravel?
I have an api made in Laravel 5.6, where requests cannot be executed simultaneously and are queued to be executed in the request order. It’s hard to explain an example, but if anyone can help me I’d…
-
1
votes1
answer314
viewsDocker Container does not start
I’m a beginner in Docker and I’m trying to create a development environment with ngix mysql and php using Laradock, I have in my machine Docker installed, I tried to follow the steps of…
-
1
votes1
answer329
viewsHow to turn an Eloquent Collection into a simple array?
I am making a consultation to the bank and is being returned a Collection... How do I stop instead of having to call $role->role to get the column value, get the same behavior by calling only…
laravelasked 5 years, 10 months ago Fábio Jânio 3,407 -
1
votes2
answers1429
viewsLaravel 5.4: List information from 4 tables related to the WITH clause
As you can see in convenio controller, I am listing the information of each agreement along with the information that are in other tables(phones, addressee), but I would also like to list the…
-
1
votes0
answers44
viewsProblems with Laravel uris 5
Guys, I’m still doing a choir here with Laravel’s addresses. In my environment works well, when I go up to my web environment (kinghost - shared), it works bad. Use PHP 5.6 and Laravel 5.0 What…
laravelasked 7 years, 2 months ago Tchelo Cabral 53 -
1
votes1
answer56
viewsCheck whether multiple inserts have been successfully completed in Aravel
Good morning programmers, I have an application that has a report with several insertions, I need to know if all were executed successfully, I’m using the DB library: DB::insert('insert into…
-
1
votes1
answer95
viewsDeveloping Apis with Laravel or Micro Frameworks?
Good night! After analyzing my project I decided to divide the whole project into Apis, it will have an api for the login, another for client registration and so on. Ah beats such doubt will be that…
-
1
votes1
answer631
viewsSave value of a variable in Laravel
I’m starting a project in Laravel, and at the sidebar I have a dropdow with a list on which I access the database and bring information from 3 companies for example, and when I click on one of these…
-
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
answer81
viewsSearch with multiple LIKE values with Laravel
Good afternoon, I do a search using LIKE with Laravel in a table, but this search may require several values ex: %joão% %josé%, etc. but I’m not finding a way to do this search with various values…
-
1
votes1
answer693
viewsNotifications/Mail com Laravel
I’m having trouble firing notifications with Laravel 5.4, I’ve already followed the steps of the documentation, but was unsuccessful. Follows my code \Larashop Users Notifications Messageuser…
-
1
votes1
answer59
viewsLaravel 5.4 Migrations?
I’m learning Laravel 5.4, when I will create a related table one to one is not creating the foreign key, but creates tables normally. My Migrations: <?php use Illuminate\Support\Facades\Schema;…
-
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
answer62
viewsmake:auth do not create Route::group
I am studying Laravel following the following tutorial and I stopped at the part where the instructor gives the following command line php artisan make:auth In it creates the following block:…
-
1
votes1
answer74
viewsStock Control Grouping Products of the same type
I am producing a stock control system, but the stock needs to have a product grouping system with the same SKU, example, I have a product called "T-shirt A", but there are several types of "T-shirts…
-
1
votes2
answers882
viewsScheduling tasks in Laravel
I am working on a medium-sized project, is one of the functions is to send SMS to system customers. At the Laravel we have how to use the new cron to schedule a task to be run every 10 minutes or…
-
1
votes1
answer45
viewsCheck for string in a PHP multidimensional array
I have the following array: array => [ "c2_unid" => array:2 [ 0 => { "tipologia": "Tipologia" } 1 => { "c2_unid": "Tipo" } ] "c1_unid" => array:2 [ 0 => { "disponibilidade":…
-
1
votes1
answer559
viewsLoad an html file into the Laravel
I have a website and need to attach to this site a folder called processes where when the user type meu-site.com/processos or meu-site.com/processos/index.html, be uploaded the file. Locally I can…
-
1
votes2
answers727
viewsWhich files go up in an Laravel project
Dear, I have an application in Laravel, which I do development on my machine. And I have several clients who use this app, and I have an app for each client. Today I have a server windows server…
-
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
answer206
viewsHow to use mysql zerofill in Laravel Migrations?
I’m trying to add the zerofill of MySQL in the Migrations of Laravel but I’m not succeeding. Can you tell me how to do this ? Follow my sample code by editing a table by adding this tinyint field…
-
1
votes1
answer157
viewsLaravel: "Could not open imput file: Artisan". What can it be?
I’m learning how to use Laravel and I was downloading Composer. I installed via program, everything ok, but when installing Laravel and testing php Artisan serves, it appears in the image. It seems…
-
1
votes1
answer112
viewsWhy am I not receiving the requisition data?
I have an Angular frontend application consuming an Laravel API. I’ve never had problems like this in other cases. But when I try to update a record, it just doesn’t send the data to Laravel. But if…
-
1
votes1
answer109
viewsEloquent mapping, is it?
Is there any way to map a foreign key to a database out of my default database in Laravel Eloquent? Example: CREATE TABLE Banco1.Persons ( PersonID int, LastName varchar(255), FirstName…
-
1
votes1
answer45
viewsWhy can’t I recover the amount of record that corresponds to the date range?
$quantidade_week = DB::table('serviceorders') ->where('serviceorders.status_serviceorders', '=', 'OPENED') ->WhereDate('serviceorders.date_started_serviceorders', '>=', $firstDayOfInterval)…
-
1
votes0
answers570
viewsProblem with Laravel 5.5 - API Routes
all right? I’m here again with a new problem... I’m using the Laravel 5.5 and in the process I’m having problems in the routes using the API middleware. To illustrate, my web.php file is as follows:…
-
1
votes0
answers263
viewsWatermark in photos
Good person, I’m doing my TCC and now I’m implementing a photo gallery, but I need these photos present a watermark that the user choose previously, I’m using the nanoGallery2 to show the gallery/…
-
1
votes1
answer122
viewsDisable Collapse bootstrap v4 Standard 5.5
all right? For this my doubt, I already found solution for bootstrap 3 but for 4 no. I searched several pages, here in the stack, I tried to modify the css and nothing. Anyone can help?…
-
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
answer789
viewsHow to hide the token generated in the url by the variable
I have this form with the method in get, but when sending the request it sends the token by the url. How can I hide the token from ur? URL: 127.0.0.1:8000/search?…
-
1
votes1
answer1927
viewsHTTP redirect to HTTPS with LARAVEL
Good afternoon devs, I’m having trouble rerouting HTTP to HTTPS, I have the following content in my . HTACCESS # Redireciona para o HTTPS independente do domínio RewriteCond %{HTTPS} off RewriteRule…
-
1
votes1
answer147
viewsHow to maintain the sender email signature when using the Mail::send() function in the Standard?
I can send the email correctly but, the email goes unsigned from the sender email, and I’m not finding how to resolve. $emails = ['[email protected]', '[email protected]']; $copias =…
-
1
votes1
answer2516
viewsHow to download a file to the server with php Laravel
I would like to know how to download an image or video using Laravel and save on my server direct, taking a url as example: https://brandmark.io/logo-rank/random/beats.png?
-
1
votes0
answers24
viewsRelationship between Many to Many Laravel
Good evening, let’s say I have the following models: Donor, Donation, Institution i need to create a relationship between the donations and the Institutions INTERESTED in the donation, N…
-
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
answer51
viewsJoin with sum in Laravel
I am trying to bring a JSON result from my database. $products = DB::table('products') ->join('order_product', 'products.id', '=', 'order_product.product_id') ->select('products.sku',…
-
1
votes2
answers331
viewsPrint a sum in the view
In the Mysql Workbench the result comes out, but how to print in View? Errorexception Array to string Conversion public function listadepontos() { $id = auth()->user()->id; $somas =…
-
1
votes2
answers108
viewsRoute envelope
In my file Routes > web.php I have the following routes: Route::get('/user', (...)); Route::get('/user/{id}', (...) ); Route::get('/user/{id}/{nome}', (...) ); // retorna o nome e id do usuário…
-
1
votes1
answer622
viewsCreating and checking session - Laravel
Good evening guys, I’m new using Laravel and I was creating something basic products, and I’m having doubts regarding the use of session in Laravel. After the user logs in, as I can create the…
-
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
votes1
answer46
viewsHow to ignore the default Model $with in Laravel (Eloquent ORM)
I have a model with with already predefined calling some other models. public $with = ["itens", "filial", "cliente", "status", "produtos", "servicos", "composicoes", "execucoes", "tipo", "vendedor",…
-
1
votes1
answer137
viewsMaximum Execution time doesn’t work?
I need my application to stop, accuse error, "Maximum Execution time of 5 Seconds exceeded" would be ideal as long as the time is over 5 seconds for example. Researching right here in the community…