Questions tagged as 'laravel'

1
answer

Curl and Laravel, always redirects

I'm trying to make a simple curl to a 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" http://192.168.1.65:8000/pt With this result: reque...
asked by 05.10.2016 / 10:34
1
answer

Sending and leaving the session form

I created a form with laravel. My site and onepage however when I submit my form the page back to home session I would like it to stay in contact session is this possible? Follow my code: The html: @if (count($errors) > 0)...
asked by 02.09.2016 / 17:06
1
answer

Authentication in Laravel

Using Laravel, what can I do so that only authenticated users can register for new users? As a result, the user registration page would only be accessed by authenticated users. In the default settings of Laravel the registry is done freely.    ...
asked by 30.08.2016 / 21:58
1
answer

Make a query with laravel with the following logic

Hello friends of the community. I need to fill a chart but I can not mount the query to receive the attributes, could anyone help me? The query I need to do is the following. select client.name, count(*) as Tickets from client, ticket where...
asked by 29.07.2016 / 13:51
1
answer

Problems with Laravel's SQLite file permission

I'm having problem with SQLite database startup, when I run the command migrate the error appears so [PDOException] SQLSTATE[HY000] [14] unable to open database file My file .sqlite is located in the storage folder and its nam...
asked by 08.08.2016 / 14:59
1
answer

Order of routes in Laravel 5

I'm starting in laravel , I have the following routes: Route::get('/', function () { return view('indextemplate'); }); Route::get('/', function () { return view('footer'); }); Route::get('/', function () { return view('header...
asked by 14.07.2016 / 00:23
2
answers

Error XMLHttpRequest (Ionic + Laravel)

Good morning! I'm developing a hybrid application using ionic, when I try to send a post to my server (laravel) the error below occurs:    XMLHttpRequest can not load link . In 'Access-Control-Allow-Origin' header is present on the requested...
asked by 15.07.2016 / 14:11
1
answer

Field return on laravel

I have the following field saved in my database: WhentryingtoreturnitintheviewbyLaravel5.2itisonlyreturning45therestisnot.Thefieldisdefinedlikethisinthedatabase: But other fields like phone are returning correctly. Does anyone know w...
asked by 19.06.2016 / 22:41
1
answer

Search in mysql by Javascript

Good morning, I'm trying to make a check if the cpf typed already exists in the bank, I'm using laravel, could anyone help me in this function please? In my controller, I search and ready all cpfs of the bank: $cpfduplicado = UsuarioEsi...
asked by 11.07.2016 / 15:41
1
answer

where affecting only one field in select

Good morning, how do I make my clause affect only one (1) field in my search? For example: $query = DB::table('proventosdesc as proven') ->join('calculo_rh as calc', 'proven.pessoaId', '=', 'calc.pessoaId') ->join...
asked by 24.05.2016 / 14:21