Questions tagged as 'laravel-5'

1
answer

Problems obtaining values from a foreach LARAVEL

Entry for characters: Character1, Character2 $personajes = explode(',',$character); $result = array(); if (count($personajes)>1) { //count(personajes) = 2 foreach ($personajes as $persona) { $obt_id...
asked by 22.07.2016 / 20:14
1
answer

Modify the User table

You see, I have the User table, which is the one that stores the users of my database. I am interested in adding a variable balance, so that said user can make purchases online. I'm looking at 2 options: -The first is to modify User.php to add a...
asked by 16.02.2018 / 13:45
1
answer

Have two different templates (one for front-end and one for back-end) [closed]

I need to have two different templates for my project, one is for the front-end which has its own menu and design, on the other hand I have another template for the back-end that also has its own menu and design, the grace is in making these two...
asked by 03.04.2018 / 07:33
1
answer

From a Laravel controller how to separate the business logic with data access logic?

I am new to Laravel and I do not like that in a controller, business logic or data processing logic mixed with data access logic is made. If we see the example of Codeigniter has the controllers and the models. Models have access to data and...
asked by 08.05.2018 / 21:56
1
answer

Laravel 5.4 and Socialite

It was working correctly and overnight I was not allowed to perform the login through Facebook I get the following error:    {"error": {"message": "An active access token must be used to query   information about the current user. "," typ...
asked by 31.03.2017 / 21:25
2
answers

validate text field with mask in laravel

I want to validate some fields of a form, by axis: the text field that has the following mask: 000-0000000-0     
asked by 14.03.2017 / 05:16
1
answer

Laravel and the treatment of dates

Gentlemen, I'm getting a date in this DD / MM / YYYY format, and since I'm using MYSQL, I have to save it in YYYY-MM-DD. The issue is that I'm using eloquent and I'm doing something like this: public function create(Request $request) $tabla...
asked by 20.02.2018 / 19:32