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
answers1289
viewsToo few Arguments to Function
I created a route to register users in Aravel: Route::post('registrar', 'Auth\RegisterController@create'); My class: <?php namespace App; use Illuminate\Notifications\Notifiable; use…
-
0
votes0
answers417
viewsLaravel can’t find my class
I have a controller that is located in: app/Http/Controllers/Auth/LoginController that has the login function. I created a route in my api.php for when to login access my method:…
-
0
votes1
answer492
viewsLaravel Dynamic Route
I have the following question. It is correct to create a dynamic route to return my views, or I have to create a route for each controller and return the appropriate view? Example of the code I’m…
-
0
votes1
answer935
viewsTrying to get Property 'email' of non-object
I am trying to send an email from a contact form. But it returns the error "Trying to get Property 'email' of non-object". Controller: <?php namespace App\Http\Controllers; use…
laravelasked 6 years ago christian0rodrigues 73 -
0
votes0
answers88
viewsHow to pass more than one Can middleware in the Aravel?
Hello, I need to pass several defines for a route, for example admin, annual plan, and new-user, when I put can in middleware it only identifies the first parameter. Authserviceprovider.php…
-
0
votes0
answers91
viewsError while listing routes in an Laravel Api
Personal I am developing a Rest api using Windows and to create this api I am using the tutorial: https://rafaell-lycan.com/2015/construindo-restful-api-laravel-parte-1/…
-
0
votes0
answers116
viewsError trying to authenticate to a standard API
I am trying to authenticate my request to an Laravel API (5.4) . Even following the documentation authentication documentation, whenever I send the request, I get the following return: Not Valid…
-
0
votes0
answers93
viewsRedeem time records for a specific date and calculate time interval
I’m having a question of how to set up the logic to calculate hours/minutes difference. I have the following return: {timestamp} {tipo} 2018-10-18 02:22:35 O 2018-10-18 02:22:34 OI 2018-10-18…
-
0
votes1
answer423
viewsComplete form without giving Reload on page
I am trying to implement a page where the values of a table registered in a system database can be changed. When selecting the names of the people listed, I call the function ola through the…
-
0
votes1
answer47
viewsHow to clear the combo box field with AXIOS?
Context Items are loaded from the selected template, but items are accumulating when a new template is selected. Doubt How to clear combo box data when another model is selected? Because item data…
-
0
votes1
answer208
viewsHow to save radio input inside an Laravel table
How to update the database in case id=54 updating radio inputs meet with value=a / purchase with value=c. Obs: This is a purchase request made by the user, I would like to give an update only in the…
laravelasked 6 years ago frodrigues 181 -
0
votes1
answer87
viewsHow to get the html of the page after loading javascript, using Guzzlehttp
Good morning, I’m creating a Crawler for you to access a specific page and then take some specific data from the page, but I’m having problems. Right now I’m trying to perform a test on instagram,…
-
0
votes1
answer211
viewsLaravel 5.7 - Ajax call and Session::get()
Some days I’m banging my head to read a dice Session through a ajax call. In an application without Framework I do this normally using the PHPSESSION, however in Laravel 5.7 I can’t do it at all. My…
-
0
votes2
answers35
viewsAm I having a problem in the Manytomany relationship in Dallas if someone help me ouder?
I’m sorry but I’m new to Latin, you’re making this mistake when I try to view the page:`Trying to get Property 'name' of non-object This is my controller public function index(){ $medicos =…
-
0
votes1
answer540
views -
0
votes2
answers710
viewsDo I need to use a middleware auth on the controller if I use Gates from Laravel?
It’s safe to remove an authentication middleware from a controller if I’ve already set a Gate on Laravel? I did so: In Authserviceprovider.php Gate::define( 'admin', function ( $user ) { return…
-
0
votes0
answers519
viewsGroup data - Laravel Collection
I need to group the data of an SQL function in Indicators and Data, but in my attempt to group, I’m only getting by date(Column), for this reason the data is repeated. Model: public static function…
-
0
votes1
answer729
viewsHelp Update Laravel
Good evening, I’m starting to study Laravel and I came across a problem that has already taken me a few hours in search of a solution. I need to update a form, and when I give the Submit I get the…
-
0
votes1
answer112
viewsPivot Table for 3 Laravel Tables
My doubt would be how to display table data in a relationship Many to Many with more than two related tables: Ex: Main table SALE PIVO VENDA_DETALHE table (where to buy/idproduct/idcentrocust)…
laravelasked 5 years, 11 months ago frodrigues 181 -
0
votes1
answer149
viewsError sending form with if:Lse in the Standard
I am making a small form with option to upload files with Windows and I ran into a problem at the time of submitting. The following problem occurs: When sending the uploaded form it sends and stores…
-
0
votes1
answer56
viewsVue.js build error in Laravel
I am getting the following error while saving the app.js file: https://imgur.com/a/akBRZ5D The arches are these: app js.: require('./bootstrap'); window.Vue = require('vue');…
-
0
votes1
answer120
viewsLaravel + AJAX Jquery
Good night, I’m learning Laravel and need to upgrade a div every 10 seconds. I have a route that when called makes a query to the database. This route returns the Dashboard view. Route:…
-
0
votes0
answers126
viewsTreat callback json from ERP Bling in Laravel
I’m having trouble treating the following json return from ERP Bling on Laravel: array ( 'data' =>…
-
0
votes2
answers419
viewsHow to upload an Laravel project to the server
I did some things to test Laravel, I did everything on my localhost with Xampp and Composer, now I need to go up to Dreamhost and I’m not getting it, when I try to access the project on Dreamhost I…
-
0
votes0
answers220
viewsMismatch token error in the Laravel
My login form works correctly: <form action="{{route('autenticacao.logar')}}" method="post"> {{csrf_field()}} <input type="text" name="cpf" class="form-control" placeholder="CPF"…
laravelasked 5 years, 11 months ago Italo Rodrigo 4,344 -
0
votes0
answers29
viewsShow in json a Relationship
I am making a system that there is a register of products, these products the same can be part of only one group, or not. I have this model for Products: class Products extends Model { protected…
-
0
votes1
answer70
viewsGood practices on a GET request (Laravel API)
Hello, I have a table with user login data and this table has relation with several other tables (FK). I’m doing an API using Laravel, but a question has arisen. If I do a GET in the Login table,…
-
0
votes2
answers342
viewsHow do I store 0 or 1 of a checkbox?
How do I store 0 or 1 of a checkbox with Laravel? Html <div class="custom-control custom-checkbox"> <input type="checkbox" name="dashboard" value="1" class="custom-control-input"…
-
0
votes0
answers100
viewsInsertion with relationship N:N
I have these text inputs, in a way people can choose to fill them or not. Or just fill in some of them. I send the data from this form via Xios in an array (I don’t know if it’s the best way, so I’m…
-
0
votes1
answer2219
viewsLogin and login to Laravel 5.7
I’m developing a project in Laravel, but I’m having a hard time understanding how user login and authentication works to redirect to Dashboard. I have a table in the database called "user", which…
-
0
votes0
answers241
viewsStructuring Vue Components in Laravel
Hello I’m beginner with Vuejs and I’m trying to implement it in a project Laravel 5.7 my. I currently own a few Components and I’m about to create some more and I see that it’s kind of messy…
-
0
votes1
answer95
viewsSave checkbox inside While Laravel
I’d like to know how to save values checkbox within a while, the field comprar01 the checkbox who must return true or false. I receive through the request():…
laravelasked 5 years, 11 months ago frodrigues 181 -
0
votes1
answer220
viewsHow do I resolve the "call to Undefined method Parameterbag::save() " error?
I am trying to save Checklist data from protocol, but the following error is occurring at the time of saving: Call to Undefined method Symfony Component Httpfoundation Parameterbag::save() The…
-
0
votes0
answers140
viewsHave you been in conflict with Bootstrap?
I am implemented Vuejs in an Laravel5.7 mine and I realized that this occurring apparently a conflict with almost all my Nav-tabs, because when I change tab in Nav-tabs, regardless of how many tabs…
-
0
votes1
answer193
viewsDisplay file data . env in Blade
I would like to read some data from the archive .env on the page .blade.php, but some do not work, for example, I am using the following way: apkey: {{env('PUSHER_APP_KEY')}} #ler chave…
-
0
votes0
answers27
viewsLaravel: Templates Blades, Keep a modification made by a script after the view is extended
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="cm-menu-scroller"> <ul class="cm-menu-items"> <!-- Melhorias: dependendo…
javascript laravel typescript laravel-bladeasked 5 years, 11 months ago Carlos Eduardo do Carmo Junior 23 -
0
votes0
answers379
viewsProblem passing parameter in form | Laravel
I have an application for project management, and each project has its tasks. These tasks can be deleted or completed. Each task is displayed through a foreach, which is within a view, being…
-
0
votes1
answer64
viewsFailed to load Highchart data into Laravel
I’m trying to make a simple chart that displays the Daily Total Sales. <body> <script src="{{asset('onboard/Scripts/highcharts.js')}}"></script> <script> const data = []…
-
0
votes1
answer204
viewsLaravel Error | Methodnotallowedhttpexception
I am trying to send a form to update certain record in Baco, but it displays the error message: Methodnotallowedhttpexception I am using route Resources, my route is difinida:…
-
0
votes0
answers33
viewsLaravel Custom Authentication with Postgres
I created a custom provider, called CustomUserProvider, extendi of EloquentUserProvider and brought the perfect fields. However the login does not persist public function…
-
0
votes2
answers108
viewsLoop form on the Laravel
Good morning, I’m trying to make a form in a loop for each row of the table, when the user clicks the button on a row, picks up the data from that row and loads on another page, but for some reason…
-
0
votes2
answers137
viewsIs there a framework in php that is similar to frontend frameworks?
First of all, obviously I understand the difference between the Back End and Front End, but my question is in the sense that the front end frameworks, comes with their components ready, example if I…
-
0
votes0
answers452
viewsGroup by month or week with Laravel eloquent
I have a project that has managed my investments, that is, it takes my daily statement and saved in my project so that I can see how much it is yielding, in short I have a table that are daily these…
-
0
votes0
answers38
viewsProblem with file upload with ajax/jquey and Laravel 5.7
Good morning friends, I need to make a request in ajax with Aravel 5.7, but for some reason ajax is only processing and does not return a response, follow the code: Ajax: jQuery.ajax({ url: "{{…
-
0
votes1
answer447
viewsEloquent Relationship / Laravel Onetomany
Good afternoon, I am using Laravel 5.7 to create an order system. Therefore I have 3 tables: customers, products and orders. My Database: For now my Migrations are like this: Migrations: Migration…
-
0
votes1
answer572
viewsHow to make dynamic query using select in Laravel
I have in my view a with Dashboard/index. This index has a table and a chart that by default, it brings information of the current month (first and last day of the month). I would like to update…
-
0
votes1
answer239
viewsHow to display the name of the image that is in the bank in the view with Laravel?
Good night. I’m having problems to update an image with Laravel in Mysql database. My controller’s store method is like this: public function store(Request $request){ $filename =…
-
0
votes1
answer180
viewsIntegrity Constraint Violation in "Many to Many" create - Laravel
Context: When registering a company, by being "attached" several customers to it and that same customer can be "attached" in other companies. I have the following database structure: Model "Client":…
-
0
votes0
answers44
viewsLaravel: Duplicate project in same directory
Good morning, everyone! I have a Laravel API on a server in the folder /www/var/html/api1, for second reasons I have to build another API on the same server, so I duplicated the one I had to…
-
0
votes0
answers36
viewsLaravel advanced search
Mount table according to search Good afternoon, people, it is possible to create a search and assemble a table according to the result EXAMPLE public function envia(Request $request){ $bcentrocusto…
laravelasked 5 years, 10 months ago frodrigues 181