Questions tagged as 'laravel-5'

1
answer

Command to let running Laravel 5.1

I have an installation of laravel 5.1 To start, I'm using:    php artisan serve --host = mydomain.com --port = 8001 I have already tried to include & (And commercial) at the end, with space, but after executing this command, it remain...
asked by 30.12.2016 / 05:21
1
answer

Laravel 5 Pagination without "refresh"?

I have a form where I display a table with data to assist the employee in creating the contract, this table is being paged: ($seguranças = DB::table('Segurança') ->where('disponibilidade', '=', 'disponível')...
asked by 04.11.2016 / 14:00
1
answer

Connection Problems pgsql in Laravel 5.1

I am trying to connect to the pgsql database by Laravel 5.1 but an error is appearing:    PDOException in Connector.php line 55:   SQLSTATE [HY000] [1045] Access denied for user 'root' @ 'localhost' (using password: YES) -    in Connec...
asked by 28.12.2015 / 14:38
1
answer

(php / laravel) How do I calculate math expressions? [duplicate]

I need to do form calculations with php, for example, I will have a field in which I will put 2 + 9 (4 * 8) / 6 and it will return the result, but I have no idea how to do it. how I need it: link     
asked by 05.12.2016 / 18:02
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

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
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

Netbeans is identifying errors as Laravel files. How to solve this?

I just installed a version of Laravel 5 and opened the project in Netbeans 8.1. I'm running with PHP7. As you can see in the photo, there are several errors in different folders. Even the project folder appears in RED. I installed the Larave...
asked by 27.07.2016 / 22:34
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