Questions tagged as 'laravel'

1
answer

Error while mounting Foreach Laravel 5.1

I'm trying to mount a filter where I'm looking for some options from the DB I made a foreach to bring this data from the DB but it's bringing an error: Trying to get property of non-object Follow my code: Controller public...
asked by 29.06.2016 / 22:16
1
answer

PHP - How to configure Laravel .env to access different databases and different languages?

I'm working on a system (portal) that offers service to 19 countries. For each country there is a database and each country with its language dictionary (even countries with the same language, have dicinários diferenets EX: Mexico and Spain). Th...
asked by 29.06.2016 / 18:16
1
answer

Is there any way to define a specific Title in the Laravel routes?

In%% 5, I'm creating a menu dynamically by making a Laravel in the list of registered routes. So, I can have a menu displayed every time a new route is created, however I'm only listing those that foreach the contém metho...
asked by 26.04.2016 / 22:31
1
answer

How to return difference after running update in Laravel 4?

Does anyone know how to return only the fields and values changed in an update in laravel? ex: a table that contains a field name with value John, let's assume that I change this field to John. I would like to know how to return the changed f...
asked by 24.04.2016 / 14:38
1
answer

Search Cep in another bank in Laravel 5 [duplicate]

I'm doing a registration system using Laravel 5, I created the client schema, with some tables, such as person, address, email, phone. happens I have another bank, called zip, where it has some tables like street, us, neighborhood, city. I am...
asked by 25.04.2016 / 16:23
1
answer

Format Pt-Br date controller

Good afternoon, if anyone can help me in this problem I will be grateful I have the following form: <div class="form-group col-md-12 col-sm-12 col-xs-12"> <div class="col-md-2 col-sm-2 col-xs-2 form-label">...
asked by 25.04.2016 / 20:04
1
answer

Bring DB data with javascript

Hello! I have a MENU and a submenu within each item of this menu. Every time I click on a menu item, it opens a sub-menu (concert effect). Is there a way to do select within the database and work with the result of these select, within...
asked by 08.04.2016 / 22:33
1
answer

How do I run Artisan in a specific environment?

How can I do to run Artisan as a specific environment? Well when I squeeze php artisan tinker Generating an error because it is recognizing the configuration of the production database. But I need to run it in the "local" enviro...
asked by 23.03.2016 / 22:03
2
answers

How to redirect the authenticated user to a specific page?

I am restricting the laravel registration page only to be shown or accessed after the login. A friend of the stackoverflow group told me they could be doing it this way: public function __construct() { $this->middleware('guest', ['ex...
asked by 20.03.2016 / 03:38
1
answer

How do I restrict access to the user registration page?

Next I am creating a project in laravel 5.2 I used the auth classes of laravel itself. And I would like to know how I can be setting it up so that the /register page is accessed only after the user logs in. Because by default it comes...
asked by 19.03.2016 / 17:12