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
answers250
viewsChanging the default apache port does not resolve on Windows 10?
I did the normal installation of xampp, after running xampp-control I’m having the errors: 10:20:09 [mysql] Error: MySQL shutdown unexpectedly. 10:20:09 [mysql] This may be due to a blocked port,…
-
0
votes2
answers1448
viewsConsume data from an existing table in Laravel
I have a base of use of Laravel, but I always used this creating the tables by Migrations. I know consume data from a php database too, but in this case I have to build the class for such. I am…
-
0
votes1
answer96
viewsChunk on Laravel 4.2 using lots of memory
I am using in an application a query to get data from a table and then generate a file xlsx. The problem is that it returns a lot of information, about 1,5 GB. As a solution, so I’m using the method…
-
0
votes0
answers80
viewsAdd PHP Meta Fractal
I’m using the fractal next to the Laravel to manipulate my collections. In some Transformers I use the available include (as an example below). What I’d like to do is include a goal with array of…
-
0
votes1
answer140
viewsAuthentication Required (packagist.org)
I’m trying to create a project in Laravel with the command: composer create-project --prefer-dist laravel/laravel blog But is requiring an authentication: Authentication required (packagist.org)…
-
0
votes0
answers40
viewsForeach Laravel does not update with tabs navigation
I have a view that has tabs navigation. When implementing a way that when saving or editing a record it goes to the respective tab, the foreach that lists the record has stopped working. I need to…
-
0
votes1
answer637
viewsValidation of the update in the Standard
I have a problem to validate the update on Laravel. My Controller is like this: public function editar(EspecieRequest $request, Especie $esp) { $especie = Especie::find($esp->id_especie);…
-
0
votes1
answer310
viewsHow to create a link to call Resource Stroy?
I have a Blade view with the following structure: @forelse($posts as $p) <tr> <td><a href="/post/{{ $p->id }}">{{ $p->titulo }}</a></td> <td>{{…
-
0
votes2
answers86
viewsProblem downloading audio . wav Laravel 5.2
When I play the audio . mp3 it works normally, but when it is an audio . wav it even goes down, but when I listen to it from a runtime error. If I go in the directory where this audio is. wav, I can…
-
0
votes1
answer59
viewsupdate in the Standard
good afternoon to all!!! I put together the form, which will be sent to the "update" method public function update(Request $r, Voluntarios $vol) { $up = $vol->update($r->all()); var_dump($up);…
-
0
votes1
answer232
viewsLogin with permissions Laravel 5
I have a login system with permissions done with Auth do Laravel, where there are options "Student" and "Teacher" to choose. For example: if he is a teacher, he will come back with a screen to…
-
0
votes1
answer97
viewsDatabase log in Laravel 5.4?
I caught a project in progress but still do not know very well the Laravel, and I’m trying to save the data in the database using this code in controller: public function store(Request $request) {…
-
0
votes1
answer490
viewsPass Headers on a route in the Laravel
Good Night, I am working with Laravel 5.3 on a solution, because it is an API application, I chose to use Laravel Passport as authentication. I have a certain difficulty in being able to load the…
-
0
votes1
answer457
viewsHow to use Blade-Laravel in an MVC project that is not running with Laravel?
We have here in the company a large system in production that needs to be redone 100%. Among many discussions and uncertainties there is still no conclusion of the framework that will be used. At…
-
0
votes0
answers122
viewsTransaction with Laravel
DB::connection('gtsql')->beginTransaction(); $seriefat = DB::connection('gtsql')->table('se_seriefat') ->where('c_codserie', 'FO')->first(); echo $seriefat->c_numultdoc; sleep(15);…
-
0
votes0
answers27
viewsDeleting an image in the form
I need to delete one image at a time from my bank, I have a table n:m and I’m unable to delete the image. Follow part of the method to delete the image. public function deleteImg(Imagem $imagem) {…
-
0
votes0
answers186
viewsLaravel with JWT not authenticate by header
I’m using the Laravel 5.3 along with the JWT, but when I send the authentication by header it returns to me that I am not authenticated and I forward the token by parameter it displays me the…
-
0
votes0
answers182
viewsuse the csrf token automatically generated by the Flag without using the Slide
I am developing an App with Cordova and wanted to know if it is possible to use the token csrf generated by Laravel, without having to set up the meta tag using Blade, as taught on the site:…
-
0
votes0
answers22
views -
0
votes0
answers99
viewsUploading files with fileinput
I’m using the fileinput of this website Bootstrap: fileinput.js v3.1.3 and I need to get my BLOB of the image uploaded when submitting the form. I observed that by doing the uplod from some image to…
-
0
votes1
answer222
viewsLARAVEL - Loss after running the MIGRATE command
Monday I inserted a new migrate into a project, where a new table was created. After running the commands in the local environment and everything works, I updated the git of the production server…
-
0
votes1
answer140
viewsLaravel 5.2 non-object problem in foreach
I’m trying to pull the information from this relationship as you can see below: Model: public function endereco(){ return $this->belongsTo('App\Models\End\Logradouro_Bairro'); } public function…
-
0
votes2
answers492
viewsI can’t access my Laravel 5 project from Vagrant and Nginx
I’m creating a development environment using the Vagrant with the following dependencies: PHP7; Postgresql 9.3; Nginx 1.9; Git. The problem is that when accessing the url http://advodocs.local.com/…
-
0
votes1
answer732
viewsLogin with Ionic using Windows for the back-end
Good afternoon. Could someone indicate some tutorial on how to login with Ionic 1 using Laravel 5 or 5.3 for the back-end? Att, Mauritius.
-
0
votes1
answer693
viewsArtisan Command Calling Controller
I did a job on a Controller and created a Command in the Artisan to run this function. Follows: Controller <?php namespace App\Http\Controllers; use App\Http\Requests; use App\EmpresaRating; use…
-
0
votes1
answer821
viewsLaravel with panel Laravel-admin
I’m a beginner with Laravel and I’m using Laravel 5.3 with the Admin Panel called Laravel-admin (https://github.com/z-song/laravel-admin) I need to get the answer of a radio button with Ajax before…
-
0
votes1
answer221
viewsHow to send image to route from Laravel with AJAX
I have a common POST route on the Laravel, but in a separate project I would like to use AJAX to send an image to that route. I will use html2canvas to get the screenshot of the screen. var content…
-
0
votes1
answer26
viewsWhy are you error in the Protect variable by saving manually?
I am entering a record manually (without create) taking data from Dorm and recording but is giving an error in the $request variable and I am not able to solve it. It is declared in the same…
laravelasked 7 years, 10 months ago Marcos Birro 353 -
0
votes0
answers63
viewsParameter in the Register
I wonder if it is possible to pass a parameter by url on auth pattern of Laravel, the one made for make:auth register/login because this login would use in the table user?…
-
0
votes0
answers331
viewsRecover Data to Controller in Laravel
I am developing a web application with Laravel and on one of my screens I have a Customer and Contact relationship, where a client can have multiple contacts. So in my View I have a method to add my…
-
0
votes0
answers58
viewsProblems with Laravel 5.2 routes and AWS EC2 server
I’m having trouble getting my project up to hosting, when access to the service via localhost everything works perfectly, but when I upload my project to the server it presents the error: My…
-
0
votes2
answers750
views(bootstrap and php) How to create a row every 3 database records
Guys, I have a template that has the following: <div class="row"> <!-- INICIO --> <div class="col-md-4"> Aqui vem uma imagem e o nome de um imóvel </div> </div> <!--…
-
0
votes1
answer228
viewsUse Phpunit with interactive form
I have a form with Brands, Models and Versions of Cars. I’m using Phpunit to test the form. It works that way: User selects the brand, then the select of templates is loaded and at the end the…
-
0
votes1
answer3340
viewsrequest value of a checkbox in Laravel
I need to get the value of this checkbox but nothing is working. @foreach ($options->getGenresEventos() as $agenda) <input type="checkbox" name="cat" id="cat" class="checkbox"…
laravelasked 6 years, 10 months ago user100984 -
0
votes0
answers104
viewsAllow upload of pdf
Need to allow pdf upload, how do I? see validation public $rules = array( 'file' => 'required|mimes:png,jpg,jpeg,gif,pdf|unique:images,local,NULL,id,type,upload' ); I added pdf but it didn’t…
laravelasked 6 years, 10 months ago user100984 -
0
votes1
answer74
viewsInsert multiple rows of a single query using FOR
I’m trying to input a lot of data using FOR but it’s not working. The impression is that he is not getting the data from FOR? The expectation is that this happens:…
-
0
votes0
answers307
viewsAngular form with Laravel
I have two tables: Invitations and Process. A process can have an invitation as well as an invitation belongs to a process. In this way I made the relationship in the database where the Invitation…
-
0
votes1
answer131
viewsMigrate: Is it possible to change a table to add a column and already pass some value to it (excluding the nullable() option)?
for example I have the student table (name, age); Then I create a Migration to add the genus (M/F) Schema::table('estudantes', function (Blueprint $table) {…
-
0
votes0
answers640
viewsLaravel problems to redirect after authenticating?
I’m starting to learn how to use the Framework Laravel and I’m having a problem with directing after login, I’m using the login system itself Framework. To learn how to use the Framework I’m…
-
0
votes1
answer225
viewsHow does the Front-end part work with Oauth 2.0?
I did all the necessary part of the back-end to use Oauth and the api already returns the access_token and refresh_token, my question is, what is necessary to do in front-end (if possible with…
-
0
votes1
answer123
viewsHow to define providers that only work in a local environment with Laravel 4?
On Laravel 4, we have a file called app/config/app.php, that we use to be able to define configuration information that will be used in the application. When I am in development environment, I…
-
0
votes1
answer251
viewsHow to organize project versions on Github?
I have an old project that was written in Laravel 5.3, recently rewrote all the code using the version 5.5. My question is how to organize this in Github, currently the master branch supports my…
-
0
votes0
answers45
viewsVersion 5.3 Laravel with php 5
Good afternoon. I use version 5.0 of Laravel and one of the requirements of this version is that php has to be greater than or equal to 5.4. So far so good, my php installed is 5.6.32. But I wanted…
-
0
votes3
answers145
viewsError in simple search in Laravel
I’m trying to perform a simple search. By putting dd($clientes) in the search method it is returning the search result correctly, but when returning to the view of the error: Trying to get Property…
-
0
votes1
answer41
viewsMigrations giving error 42000
I’m trying to spin mine Migrations (php Artisan migrate) inside my docker container. I’m using Lumen to develop my API. I don’t know what could be going on: What might be going on? I’ve refilled my…
-
0
votes1
answer111
viewsPhpstorm terminal does not recognize php from xampp
Does anyone know why the Phpstorm terminal does not recognize php from xampp? Because Windows terminal works normal Composer, php used with Laravel, but phpstorm terminal does not work…
-
0
votes1
answer48
viewsHow to make several separate selects with the 4.2 Standard?
Hello I need to make a select on a table, however if I do not receive the month by the parameter I must do the SUM method to sum all months if($month != 0){ $dbRegister =…
-
0
votes0
answers781
viewsSQLSTATE[HY000]: General error: 2053 when do I call a Stored Procedure?
I’m using Laravel 4.2 and I’m calling one Stored Procedure of a database on the server. Locally everything works fine, but on the server, using the same BD, gives error. The call is as follows:…
-
0
votes1
answer169
viewsreplace symbol by space
I need to replace the signal + for %20 Example : São+Paulo for Are%20Paulo the search is on Laravel with knockout…
-
0
votes2
answers862
viewsLaravel: Syntax error or access Violation: 1071 Specified key was Too long
I went to create the tables in the database, but shows me the error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes. How to fix this?…