Questions tagged as 'laravel'

3
answers

Best way (s) to use Dependency injection in Laravel

What is the best way to use Injection of dependence in laravel? The one I was using was this: public function __construct(Cliente $clientes, Telefone $telefones){ $this->clientes = $clientes; $this->telefones = $telefones; } F...
asked by 30.01.2014 / 13:41
5
answers

How to create a configuration file in Laravel 4?

I would like to know how to create, import and use new configuration files in a Laravel 4 project. By this, I mean, project files and settings themselves. For example: I would like to create a file that has some static project information, wi...
asked by 16.12.2013 / 11:46
2
answers

How do I convert a date into the American format in Angular?

I am using a Json answer in Laravel 5, where I use the Angular to be able to display this data. The date in Laravel is returned in 2017-05-17 15:56:46 format. When attempting to use the date filter on the angle, the same thing c...
asked by 18.05.2017 / 14:35
2
answers

Problem with @extends in view in Laravel.

I'm having a problem with @extends('layouts.template') . Only my view that is like index that does not show the page, instead shows me only this @extends('layouts.template') on the page. What could it be? obs: the route is normal...
asked by 19.12.2013 / 11:44
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
2
answers

Get an inverse relationship with Laravel

I am creating a forum system that is divided by sections. Each section contains categories, each category contains topics. Ex: Administração _ |_Regras da do fórum |_Sugestões e críticas Aeromodelismo _...
asked by 17.02.2014 / 16:35
1
answer

What is Service Container?

I was reading about Service Container in Laravel, but I was not able to fully understand the purpose of this feature. I know that to create new services we have to use some Laravel methods: App::bind() or App::instance() there are...
asked by 26.03.2017 / 01:24
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

E-mail sending with Laravel 5.2 [closed]

I'm having trouble sending mail with laravel 5.2. You are returning this error: Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required. The file .env looks like this: MAIL_DRIVER=smtp MAIL_H...
asked by 01.08.2016 / 19:01