Most voted "laravel-5" questions
Laravel is an open-source framework for developing web applications and services with PHP. Use this tag for specific questions about Laravel 5 or later.
Learn more…751 questions
Sort by count of
-
0
votes1
answer303
viewsLaravel - 'Route' call without a command for this?
I’m doing a test using Laravel, jQuery and PHP. I have routes, jQuery action, controller methods, and two views-Lade, one to provide search elements (Invoicingview.blade.php) and one to display the…
-
0
votes1
answer130
viewsUpdate a record with a single field
I’m using the L5-Repository in my project, but I’m having the following difficulty: I have the code below to make the Slug is unique, but when I update it says Slug already exists, when in fact it…
-
0
votes1
answer1252
viewsTransforming image upload to Base64 - Standard
I’m having trouble getting the data from my View and turns it into the base 64, in the controller I’m doing like this: public function store(ImagemRequest $resquest){ dd($resquest->all()); //Nest…
-
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]);"…
-
0
votes1
answer67
viewsGet news through the URL
I recently saw a video on youtube, where the guy through the URL of a news item Uol, globe and other sites of the type, he recovered the title of the news, the body and the images along with the…
-
0
votes1
answer694
views(php/Laravel) How do I calculate mathematical expressions?
I need to do shape calculations with php, for example, I will have a field in which I will put the 2 + 9 (4 * 8) / 6 and return the result, but I have no idea how to do. Here’s an example of how…
-
0
votes1
answer285
viewsImage in blob does not appear
I need to make my images appear on tag img however only a few appears, I’ve taken all the css and it’s no problem in this. Below the photo that testifies that html is understanding the image: On my…
-
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
votes1
answer189
viewsAngular js Reload
Person, I noticed that whenever I give Reload on the page, while page is being loaded, it shows all the keys {{}} of scopes of my project, is it normal ? the page containing the scopes coming from a…
-
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
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
answer1256
viewsConfirm exclusion in Laravel 5.4
i have the form below, in which a button deletes the record of the current line. <form class="form-inline" method="POST" action="/servidores/{{ $serve->id }}"> {{ method_field('DELETE') }}…
-
0
votes2
answers798
viewsHow to create a scheduled task
Guys I’m trying to work with cron for the first time and trying to create a very simple scheduled task. was looking at the documentation and saw that this command needs to be executed * * * * * php…
-
0
votes1
answer241
viewsWhat is the best way to integrate Laravel with angular 2?
I know how to create an application using Laravel, and I also know how to create an application using Angular 2/4. But how to integrate the 2 ? would be just creating an Laravel API and another…
-
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
votes1
answer180
viewsSelect Laravel Collective does not select value
I’m trying to recover the value set in the bank and it stay selected in the edit form. The value 2 is coming up to the form but I’m not getting it selected. {!! Form::label('cupUnic', 'Único?') !!}…
-
0
votes0
answers119
viewsPull logged in user information without using Auth::user()
I have an application developed with Laravel that has some small. php files in the public folder that are loaded in a certain view. I need to pull user information logged in in these files, but I…
-
0
votes1
answer890
viewsImage blob and cache problems
I’m having trouble with images BLOB, programming is being done with the framework Laravel in versão 5.2. The mini world is next: I upload the file and save only one BLOB, I don’t do any size…
-
0
votes1
answer242
viewsHow to consume data from the Restful API?
I watched some video lessons about Restful and did one in Laravel 5.4. Now I would like to use a template I have done in HTML5 + Bootstrap 3 to consume this data, where do I start? What do I need to…
-
0
votes1
answer45
viewsStatic element with vuerouter
I have an application that uses Vue-router, but it also has the need to login, and with this login comes the change in the header, where will be login and register, or panel, but in specific cases.…
-
0
votes0
answers193
viewsLaravel - Pass more than one parameter using use in callback functions?
The thing is, I have a job callback of that kind: \Excel::create($limite_vagas_array[0]['nome_curso'] .' - '.$limite_vagas_array[0]['nome_polo'] .' - Limite de vagas', function($excel) use…
-
0
votes0
answers542
viewsAuthentication with JWT Auth and dingo Laravel API 5.4
I authenticated with the standard user model of Laravel 5.4, but now, I did the same implementation, only with a custom model, and it’s not working. Give me back that mistake "message": "Undefined…
-
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
answer111
viewsProblems with angular heading 2 and Laravel 5
I have a system in Laravel 5.3, and I’m putting in Angular 2 to take care of the front end. I have several modules, ex: companies. The route /companies will lead to the listing of companies thus…
-
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
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
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
answers70
viewsHow to make a filter in Laravel 5.3
Hello, I’ve been trying to make a form that receives a Cpf and if this Cpf is in the database it returns all the data linked to this Cpf (name, position, code etc) right next to the form, in the…
-
0
votes0
answers512
viewsChange sent email templade to reset password in Laravel 5.3
I created the authentication module for my application with php artisan make:auth and the password reset method is created automatically by him, ta everything running blz... what happens is that I…
-
0
votes1
answer230
viewsLaravel store method with problem
I’m trying to implement a POST in this method: public function store(Request $request) { $veiculo = new Veiculo($request->(['marca', 'modelo', 'ano', 'preco'])); $veiculo->save(); return…
-
0
votes1
answer1176
viewsDatatable with pagination server side
I searched a lot on Google but I did not have a clear path of how to make a datatable ( angular use 2 ) that contains pagination by the server, or seka, that each page he made an individual request…
-
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
answer406
viewsHow to make the Laravel project see the Xios file?
Before I was having trouble getting the project to see the Vue file as you can see in this post: I need to make my Javascript file see the Vue and Axios files He was like this : And now it’s like…
-
0
votes1
answer280
viewsLaravel: Model-Form Binding Undefined variable
Greetings, I’m new to using Standard, and at this time I use Standard 5.3,I can’t edit any data in my database and I’m using Route Model Binding. The mistake you make is "Undefined variable…
-
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
answer1083
viewsError while running Composer install
I’m cloning a Github repository Gitscrum and when I will execute the command Composer Install, it returns me the following error: C: www Gitscrum>Composer install [32mLoading Composer…
-
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
votes0
answers288
viewsSave JSON data using Laravel
When saving data to the database Mysql with the column of the type JSON using the Laravel. He inserts the data this way:…
-
0
votes1
answer1224
viewsSQL Server connection in the Laravel
Guys, I’m making the following mistake: sqlstate 08001:[Microsoft][odbc driver 11 for sql server] tcp provider: no connection can be made because the target machine actively refused them. I am using…
-
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
votes0
answers906
viewsPass Controller data to a modal in the Laravel 5.5 view
I’m trying to pass data from a Controller to a Modal in the view. In the view I have this code populating a datatable as soon as the page loads: .... @foreach($exames as $exame) <tr>…
-
0
votes1
answer493
viewsPlace auth folder in subfolder (Laravel)
I’m new in Laravel and in my project I want to put the auth view folder inside the admin folder, getting like this: C:\xampp\htdocs\projeto\resources\views\admin\auth\ However, I know I must still…
-
0
votes1
answer277
viewsLaravel Defender Trying to get Property 'name' of non-object
Is returning the following error of my assignment: $user->attachRole(12); Observing: if I use this way parameterized the normal functional defender models $user->roles()->attach(12); What…
-
0
votes1
answer280
viewsCURL is not working locally
People have 2 applications in Laravel 5.5 running locally. One is the API and the other is a frontend. The API I configured it as a vhost in WAMP Server as the name api2018.local and I configured…
-
0
votes1
answer179
viewsLaravel 5.4 (1/1) Tokenmismatchexception
Locally all forms work, but when I put online is giving erro as if I didn’t have the _token attributed to forms. APP_NAME=MonkStudio APP_ENV=production…
-
0
votes0
answers659
viewsError Laravel 5.6 "Undefined Property"
I am trying to list an association table, in my case it is the class table, which associates employees (teachers) and students. I did a good search before posting this question but could not solve…
-
0
votes2
answers712
viewsTesting if the image exists
I use Intervention in Laravel 5.5 and use its routes with filters to generate images dynamically. I would like to know how I can test in the filter class and the image I passed it exists on the…
-
0
votes1
answer226
viewsForeach array and create a name for array with same ID
Good idea and create groups of arrays with example names, $arrays = array( array( 'teamID' => '1151', 'username' => 'iLilithZ'), array( 'teamID' => '1111', 'username' => 'iLilithZ'),…
-
0
votes1
answer187
viewsHow to save relationship tables in Laravel?
I will put a small example to explain my problem. Tables: main itens The two have relationship, one main has several itens. What I’m doing to save: ... $main =…
-
0
votes2
answers1050
viewsCommand to leave running Laravel 5.1
I have an Laravel 5.1 facility To start, I’m using: php Artisan serve --host=meudominio.com.br --port=8001 I have tried to include & (Commercial) at the end, with space, but after executing this…
laravel-5asked 7 years, 11 months ago Matheus Silva Itep 231