Questions tagged as 'laravel'

0
answers

Number of queries to check user in laravel

I have a system of user authentication , where I use API sentinel in Laravel 5.2 . When I make Check_user() in middleware to see if the user is logged in and has access to the route, he checks 5 queries in the data...
asked by 13.06.2016 / 16:45
1
answer

LaravelExcel is converting the header values of an excel spreadsheet. How to disable this?

I'm using the LaravelExcel library to import data from an excel into a database. To get the header data from my worksheet, do the following: Excel::load('file.xls', function($reader) { $nomeDasColunas = $reader->get()->first()-&...
asked by 25.07.2016 / 15:53
2
answers

Api Restful laravel 5.2

Hello, I'm trying to create an api in laravel 5.2 What I'm trying to do is the following: 1 - Continue using the default auth system for web user. 2 - create an api for users of an application. I am using the method: auth: api, bu...
asked by 16.06.2016 / 06:04
1
answer

Laravel 5.2 subtraction in the same column

I'm starting out in Laravel (5.2) and I need to mount query down in Builder ! Pretty much it subtracts the previous value from the same column. It works normally, but I'm migrating to Laravel. $query = "SELECT tbl_leitura_gas.id_lei...
asked by 18.05.2016 / 17:20
0
answers

pagseguro transparent checkout laravel [closed]

I'm developing a system with laravel 5.2, and would like to implement the payout signing scheme using transparent checkout. In the official PHP library ( link ) there is information that it is compatible with laravel, so I would like to use this...
asked by 21.07.2016 / 02:42
0
answers

Error Sending Email

How do I handle this error? This error is when I try to send an email through Localhost in Laravel. OnLine works. But I'm afraid that this mistake will happen online too. I want to be able to treat; when it is not possible to send th...
asked by 11.05.2016 / 14:57
0
answers

How to find select with no where in a laravel application [closed]

I have a problem and I can not identify where the laravel is doing a select without where in a table with many records, can anyone help me?     
asked by 24.05.2016 / 03:36
3
answers

How does Laravel "keep" the routes?

In Laravel , in both 4 and 5, we can use a class called Route to create certain routes. My curiosity is: how do Laravel (or other frameworks) do to "know" that a given route corresponds to a url? Is this all saved in so...
asked by 15.04.2016 / 20:46
1
answer

Laravel 5.2 pages redirecting to POST without showing validation errors

In laravel 5 whenever I try to send a post to save or edit the data, a redirection occurs in all requests with status 302. This is occurring on any system page where I make a POST to insert the data into the database. I'm using% cus...
asked by 06.05.2016 / 16:26
1
answer

Return query via ajax laravel

Good evening, could someone please help me on this: I made a select and gave a "get ()" at the end to get the results, I passed them in an array that I'm getting in a function via ajax: $table = DB::table('empenho as emp') ->...
asked by 30.03.2016 / 06:32