Questions tagged as 'laravel-5'

1
answer

Laravel 5 and Sql Server

I need a help, I made several attempts to connect Laravel with SQL Server and all without success. However, I was able to run pure php using sqlsrv_connect and Code Igniter. Windows 10 64 bits. Wampserver 2.5 32 bits. PHP version: 5.5.12 (TS,...
asked by 16.11.2015 / 18:58
2
answers

Change table users Auth Laravel 5.1

I'm developing a system using Laravel 5.1 and I do not want to use tables in English. Actually I'm trying to keep the standard here in the company. I would like to know if I can use Auth or OAuth and change the table from users...
asked by 13.08.2015 / 17:32
1
answer

Is it wrong to use the facades in the laravel view to display elements to the master user?

I wonder if it's problematic to do this type of validation in Laravel views. Example: Only one master user can delete a certain record, so I have the delete button only if the user is master (logically validating the deletions in...
asked by 10.01.2017 / 17:15
2
answers

What is the .env file for Laravel 5?

What is the .env file serving? No app.php has env => env('APP_ENV','production') . What would this production be? What other string can go there? And the var APP_ENV ? What does it mean?
asked by 04.10.2016 / 20:03
1
answer

Library for data validations in Brazilian Portuguese for Laravel

Whenever I need to use cpf or telefone validations in Laravel, I need to use the Validator::extend method to add these validations. Validator::extend('cpf_real', function($attr, $value) { $c = preg_replace('/\D/', '', $valu...
asked by 27.05.2016 / 18:10
1
answer

Best solution for three types of users

I'm starting in frameworks MVC with Laravel 5.3 I have 3 very different types of users, OperadoresDoSistema , AnunciantesDoPortal and ClientesCompradores , who can view the ad. Each has its sessions, its dashboards, log...
asked by 28.10.2016 / 13:33
1
answer

Multiple schemas in the Laravel database 5

Good afternoon, I'm redoing a system and I adopted Laravel 5. In this system I have several schemas in the database and the solution I found was to work with a connection for each schema, as follows: 'pgsql' => [ 'driver' =>...
asked by 25.08.2015 / 21:34
1
answer

Laravel 5 - Remove public from URL

I've developed a form and need to "play" it on the production server . I do not have any type of server access (Linux, Slackware). I access my application through the link url. With the script below I get only the message Sorry, the page y...
asked by 10.04.2015 / 16:07
1
answer

Pass parameter from one route to another

I need to get a url variable and redirect with the parameter to another function Route::get('doacao/{id}', function(Request $request){ return Redirect::route('escolha/doacao')->with('id',$request->id); }); Redirecting to this other...
asked by 02.02.2017 / 13:21
1
answer

Broadcasting with Laravel

I'm creating a chat and for this I need to do a real-time mode so I do not have to be pinging several times on the server SignalR that does this service, I'm working with Laravel-PHP and read the documentation Broadcasting , but I...
asked by 17.07.2018 / 19:43