Questions tagged as 'laravel'

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

Views mysql in Laravel [closed]

Can I use call table view with the model in laravel? What good practice is it? or is it preferable to call it with the DB selector? Example = vusers / Model: User     
asked by 09.06.2018 / 01:44
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 command to run a blade

hello I want to create a command in laravel that runs once a week to call me a blade, that has a script and that combines ajax and php which generates some images I already have the command as php artisan img :: images <?php namesp...
asked by 05.03.2018 / 16:41
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
1
answer

Search filter

Good, I have a kind of problem, when I try to filter the users, in itself, it gives me two errors both related to paging. The first is that when we change pages the fields are sent empty, so when changing the page, all the user's data is re...
asked by 25.07.2017 / 04:54
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