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
answers181
viewsHow to include a string in the database from an input array with Laravel?
I need to include a string data in my database table that I will take for input, which in turn is an array. Follow the form so you can see how it is. <div class="form-inline col-md-12">…
-
0
votes1
answer110
views@forelse within @forlese
Hello, I need to make one @forlese within a @forlese in Laravel: <div class="row"> <div class="col-md-12"> <h3>Contas cadastradas</h3> <table class="table…
-
0
votes1
answer61
viewsBoostrap alignment
Guys All right? I’m trying to make a lineup using bootstrap but it’s not working, can someone give me a help? I have 23 questions and I need to put four selects aside. Thank you…
-
0
votes2
answers76
viewsThe form is not being saved in the comic
Controller public function cadastro() { return View('/cadastro'); } public function novo() { $user = \App\User::where('User',"=", Input::get("User"))->first(); $user->name =…
-
0
votes1
answer233
viewsSave token coming in Api Sponse
I am trying to save the token that my server sends in each request. Although "Authorization" appears to be present in Sponse, I cannot print the value. The code is: What returns from the server:…
-
0
votes0
answers115
viewsRelation between 3 tables with pivot
I have the following structure that I have to follow. Films People People ( Actor, Cameraman, Director) Where Each Person Types Hasmany People And Each Person Hasmany Movie That is, Each film will…
-
0
votes2
answers297
viewsReturn after sending email
In Laravel 5.3, at the time of sending the email it does not return anything. It would have to return some data to verify whether the email was sent or not? Something like that: $mail =…
-
0
votes1
answer113
viewsImage upload outside the LARAVEL folder
Good afternoon, I have a question, is it possible for me to upload an image in the project folder? Because I have a project that the folder of the site is outside the folder of the Arable and I need…
-
0
votes0
answers27
viewsCentralizing information
Good morning. We are starting to develop several small solutions for web (We Use Laravel) to meet the needs of our customers, based on this I came up with a great question. I would like to…
-
0
votes2
answers1254
viewsValidate Laravel Single Field
Speak guys, I’m trying to learn Laravel and I’m currently caught in a seemingly simple thing, is the following. I created a very simple system with login and other things, and I’m trying to…
-
0
votes0
answers477
viewsError Method save does not exist in Laravel
Good afternoon guys. I have an application that uses Polymorphic Relations according to Laravel’s doc. https://laravel.com/docs/5.4/eloquent-relationships#polymorphic-Relations I have the error…
-
0
votes0
answers89
viewsFile common functions between various projects in Laravel
I’m developing a large web project, a project that is a cluster of sub-projects programmed in Laravel. Naturally, this project has many common functions to be used among several files and classes of…
-
0
votes1
answer50
viewsKey keys in session
I would like to save and recover an array session in Laravel type in PHP Example: in the PHP: $_SESSION['dado']['dado1'] = $valor; Recovering echo $_SESSION['dado']['dado1']; In the Laravel I’m…
-
0
votes1
answer42
viewsmultiple images with wysiwyg editor
I’m using a wysiwyg editor to generate text content for dynamic blog pages that I’m doing. How it would be possible to add multiple images in the texts, positioning them in a certain place of the…
-
0
votes1
answer182
viewsRun php Artisan in a different directory
How to execute the command: php artisan ... In a different directory so that the generated files stay in the folder I set
-
0
votes0
answers284
viewsProvide in view polymorphic relationship data Laravel
I have the models Trainer, Modality and Image using Laravel’s Polymorphic Relations https://laravel.com/docs/5.4/eloquent-relationships#polymorphic-Relations I want to make this data available in…
-
0
votes1
answer31
viewsI need to receive value from a redirect with with in controller
In my class loginController I make the following way: return Redirect::to('home')->cookie($nome)->cookie($sessionid)->with('cnpj',$cnpj); I need to have that data $cnpj to pass on the…
-
0
votes1
answer27
viewsFeed div after receiving new data
I started to implement a chat and needed to update the div where the messages are inserted, but when I get new messages I need to update the page to have access, and if I set a timeout to 10 in 10…
-
0
votes0
answers69
viewsConnect Laravel using Ubuntu in an MSSQL BD
Can someone help me? I am trying to connect my project in Windows hosted in the apache2 of Ubuntu 14, using php 7.1 in a Microsoft SQL SERVER 2012 BD. I already installed the Freetds libraries and…
-
0
votes1
answer102
viewsRelationship MORPH
I’m modifying a table database, in case it is to be made a relationship Morph of the fields that are according to the image. I’m wearing the Laravel 5.6 How do I make this relationship within…
-
0
votes0
answers312
viewsLaravel - Multi-page form; Best practices
I’m developing a system in Laravel where there will be several research projects (the validation of each form is a little complex). Schema::create('projetos', function (Blueprint $table) {…
-
0
votes0
answers180
viewsDate Missing in field date/time Laravel
I am facing a problem with my production environment and developing from the Laravel. The development environment is linux (using apache2 and php7.1, sql server drives 2014 properly configured) and…
-
0
votes1
answer158
viewsHow to create Scope in Laravel 5.4 with linked tables via belongsToMany
The structure of the table is this: pessoa id - integer nome - string unidade id - integer nome - string pessoa_unidade pessoa_id - integer unidade_id - integer I have the models: class Pessoa…
-
0
votes0
answers26
viewsSet value in Database session
I’m trying to use a database session SESSION_DRIVER=database I would like to know how to set the session in the specific column also I’m trying like this Session::put([ 'login' => $login ]); But…
-
0
votes1
answer52
viewsDoubt about the connection to the bank in the authentication of Aravel 5.6
Hello, I have a question and I can not solve, I need to connect the auth of Laravel 5.6 with an existing database, but I am a little lost, I have put the sql server drivers and already connected to…
-
0
votes1
answer173
viewsHow to use Auth::user()->id on route?
| id | user_id | url_to | controller | isAuthorized | | 1 | 1 | page1 | DadosCtrl | 1 | | 2 | 2 | page3 | Dados3Ctrl | 1 | | 3 | 1 | page2 | Dados2Ctrl | 1 | I have a middleware that is only allowed…
-
0
votes0
answers363
viewsHow to fix "delay" when loading the datatable?
When loading the page containing the data into the datatable the following failure occurs: first all data is loaded into the datatable and is visible to the user; after a few seconds this data is…
-
0
votes1
answer67
viewsDoubt with Laravel MVC
I made the presentation to the teacher of Pfc but she said I broke the mvc pattern, calling the sql in the controller, and asked to send it to the model and retrieve the query for the controller and…
-
0
votes0
answers29
viewsJoin Only 1 result
Does anyone know how to make a Join return only the first result ? ->join('addresses', function ($join) { $join->on('s_complete_clients.id', '=', 'addresses.client_id')->limit(1); })…
-
0
votes1
answer31
viewsphp method that checks two strings in a variable
Does anyone know any method in PHP that matches the value of a variable with string? I need to refactor the following code: public function hasPlan() : bool { return $this->reference === 'unico'…
-
0
votes0
answers157
viewsI can’t get bootstrap icons on the speaker
Hello, I’m not getting to call the bootstrap icons in my Windows, example: : <span class="glyphicon glyphicon-th-list"></span> Can anyone explain why?…
-
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
votes1
answer444
viewsError message via middleware Laravel
I am trying to pass an error msg through a middleware. If I use $errors->all() the error appears, but how do I use $errors->has('active')? Or if you could just pass this message from…
-
0
votes1
answer181
viewsProblems accessing show method at the root of Laravel
I am studying Laravel and in parallel creating some projects, however I am struggling with some problems, when I am calling the method show(); Example the controller : Route::resource('/',…
-
0
votes1
answer42
viewsDomain Forwarding/Mapping
I don’t know if I used the correct terms in the question, but I’ll explain what I need. I am developing a system, and in this system there should be profiles of entities/companies. Each of them…
-
0
votes0
answers27
viewsProblem when receiving return array - Laravel / Vue.js
When I run dd($var) #attributes: array:3 [▼ "id" => "1" "department" => "TÉCNOLOGIA DA INFORMAÇÃO" "branch" => "BIGUAÇU" ] Error in Vue.js: app.js:42893 [Vue warn]: Error compiling…
-
0
votes0
answers95
views -
0
votes3
answers214
viewsHow to create a PHP progress bar using the Laravel Framework?
Please, someone can help me. I need to create a progress bar for a PHP application using the Laravel framework. Example: when loading (display the BD list) from a table with three thousand records…
-
0
votes1
answer738
viewsHow to update to a collection in the Standard/Eloquent
I am using the Laravel Repository in my project. I created a Service to add some rules. In the upload method it is a reusable method for both saving and updating images. The save method works…
-
0
votes1
answer266
viewsHow to remove photos from public folder or protect to not be accessed by URL using Intervention image with Laravel?
I am using the image Intervention is this all working, my doubt and I would like to remove the saved photos from the public folder not to be accessed by the URL or protect the access by the URL for…
-
0
votes1
answer362
viewscannot add or update a Child Row a Foreign key Constraint fails Laravel
Guys, I have this error in my system: cannot add or update a child row a foreign key constraint fails laravel It informs that the ID does not exist, only that it exists. Even when I try to manually…
-
0
votes1
answer77
viewsError uninstalling Laravel Passport
I had installed Laravel’s Passport, but, I decided to work with JWT (removed via Composer) Now Laravel is not locating my functions in the controller What am I supposed to do? It seems I have to…
-
0
votes1
answer171
viewsfopen and fputs for Amazon S3 by Laravel
In php, is it possible to send an image file, obtained by returning a request by Curl, directly to a S3 Bucket using Laravel methods? If yes, how to do?
-
0
votes1
answer209
viewsForm problems using PHP with Laravel
Next staff I developed a website using laravel I am programming a form but it has no action I have already finalized it does not work when I click to send, it does not do anything only from reload…
-
0
votes2
answers131
viewsStore array within Cookie
It is possible to store a array within a Cookie? I’m trying this way: $carrinho = array(array('frete' => '', 'mercados' => array())); Cookie::queue('carrinho', $carrinho, 525600); But the…
-
0
votes3
answers1617
viewsMascara in Laravel form field
Good night, all right? I can’t find a way to include a validation mask with Laravel’s Form Collective. Below the code snippet with a field: {{Form::label('comp_nota','Competência')}}…
-
0
votes1
answer113
viewsHow to take the absolute path from the Side of the View?
Laravel 4.2 I need to get the directory of . Full Slide after its rendering, how to do this? I have been trying to navigate through the Application, this seems to be a bad idea, however I have not…
laravelasked 6 years, 4 months ago David Dias 995 -
0
votes1
answer514
viewsHow to send email simultaneously with Windows
I need my system to simultaneously send emails to all the emails in the comic book. Following the code below it only sends the first email from the list and still sends wrong. Sends to spam. And the…
-
0
votes0
answers750
viewsHow to return variables in all views in Windows?
I have a Windows project, I have index.blade.php that where the header and footer part are fixed, and content and that changes. My problem is to return data from a controller to the footer, it lists…
laravelasked 7 years, 6 months ago César Sousa 2,025 -
0
votes0
answers410
viewsPage limit in DOMPDF - Laravel
Good afternoon, everyone, I am making a requirement for printing DOMPDF, which is more than 200 pages. When I make the request it cannot generate, but if I pass a condition to generate up to a given…