Questions tagged as 'laravel'

1
answer

Optimize SQL query using Eloquent de Laravel

I hope you're all right, I have the following query on my system. public function visits() { foreach ($this->countrys as $country) { $query = Visit::where('country',$country)->count(); $visits[$country]=$quer...
asked by 08.10.2018 / 02:07
1
answer

how to show Permissions in vue with laravel?

I have brought data from the user model and I have laravel permission but when I bring them, I can not show only the name of the role in my veu component, I have my partner as follows <tr v-for="user in users" :key="user.id">...
asked by 01.10.2018 / 23:22
1
answer

Page jump concatenated in a variable Laravel

I'm developing a project using Laravel. When I try to show the details of an actor on the screen, it shows everything on the same line like this: Is taking the as a text and not as a page break. This is my code portion pu...
asked by 02.10.2018 / 20:28
2
answers

Pass an object to a controller from a view in Laravel

I'm trying to find a way to pass an object from a view to a controller in Laravel 5.2. The view contains a Form and the $user object is accessible in the view. I would like to know some way to access the $user object in the c...
asked by 05.08.2016 / 17:20
1
answer

Display laravel project in vps (apache)?

I'm trying to upload my laravel project to a vps, obviously you think I'm an imbecile asking how to configure apache to deploy the app, but I get HTTP_ERROR 500 and I can not think of anything else to do, I have to say that I have previously man...
asked by 20.09.2018 / 13:53
1
answer

Remove an object from the collection in Laravel?

I have the following, I am getting all the clients that belong to a user with eloquent, these clients show them in a select in the blade view, my problem is that in the clients table there is a field that specifies if the client is already is as...
asked by 29.08.2018 / 23:51
1
answer

use 'where' with 'like' in an eloquent realation

hello I have two models Movement and Account In the Movement model I have the following relationship. public function cuenta() { return $this->hasOne(Cuenta::class); } What I am looking for is to bring all the Movements with their...
asked by 03.09.2018 / 01:04
1
answer

Error when opening a Project in laravel

I'm new to laravel, I have a problem. I have a project that was passed to me from a PC and I am using it in mine. I already install the composer and install laravel, when I try to open it by php artisan serve in the direction of my project in ht...
asked by 08.09.2018 / 03:14
1
answer

error in datatable laravel actions

I am making a table with actions of habilitar and deshabilitar when clicking on the buttons the url sends me with its respective id but the function does not call me in the controller. Route::get('/admin/votos/all/{id}/deshabilia...
asked by 23.10.2018 / 17:18
1
answer

Role management in Angular 4+ routes (JWT)

I would like to know what is the best way to handle user roles in Angular? The scenario is as follows: I have an application in Angular that consumes a REST API made with Laravel, the same one that gives me a token. The application will handl...
asked by 08.08.2018 / 07:07