Questions tagged as 'laravel'

1
answer

check if there is a record - in a table (EN LARAVEL)

In laravel I created a survey system I have 3 tables Tabla 1 : Encuesta Table 2 : Opciones_encuesta Table 3 : opciones_usuarios Table 4 : Usuarios How can I know if I already voted in a poll? How do I access it from Laravel? My relati...
asked by 30.12.2018 / 09:49
3
answers

problem with e.preventDefault () using Ajax in Laravel 5.7

I have a form sent by ajax but it does not save the information in the DB when I activate e.preventDefault (); if I mention it if you save it. EL Ajax is: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token...
asked by 27.12.2018 / 22:48
0
answers

Multiple middleware Laravel

I have two types of guard Embajador y Experto my problem is that both can have access to similar pages. My problem is that in pages where the two types are allowed, it does not allow me access. try to use: function __construct(){...
asked by 17.12.2018 / 19:05
0
answers

TreeView with Kendo UI and VueJs in laravel

Dear, I can not correctly develop a treeview with Kendo UI and Vuejs in laravel. To unravel the problem, I will describe what I am using. This is what the url of the laravel driver (index) returns, which I will then use with kendoUi to create...
asked by 19.12.2018 / 20:00
0
answers

search for an element in a result of a table

I am doing a small task delivery module. Then, when I make the query that belong to a group. Show me all the users who made the delivery, In this way I take care of all the tasks, with their deliveries, in this delivery comes the ID of the...
asked by 21.12.2018 / 01:27
0
answers

Spatie / Laravel-Permission - Add a field to the "ROLES" table

I related the table "roles" with my table "company", that is, in the table "roles", I have the field "company_id", in the view, there are the necessary fields and the select of the company but when I want save the data, I get the following error...
asked by 12.12.2018 / 20:48
1
answer

How to make a join with the user model that brings laravel by default and a model related to it?

In the migration create a table called employees, and this has the fk of the users table that has the default laravel for the logeo. Therefore the table users and employees are related, now what I intend is to obtain the employee data from th...
asked by 05.12.2018 / 11:26
0
answers

How to change the status field of a foreigner every 3 months and send an alert [closed]

I have no idea how to do this. I have a view with two tables, where one shows me the status of a team and the other the maintenance that is done to them, what I want to do is change the status of "pending" made when maintenance is done and every...
asked by 05.12.2018 / 14:33
2
answers

How to update file array in laravel?

I am developing a project in which I have to save several files from a table, I can save them the problem is to update or edit I can not do it I get this error    "Argument 1 passed to Illuminate \ Database \ Grammar :: columnize () must be  ...
asked by 06.12.2018 / 00:22
0
answers

Insert a laravel Array to MongoDB

I need to know how I can insert an array (that was obtained from a MySQL query) to mongodb (it should be inserted in the same way in mongodb as an array), this is what I have done but it does not keep me as it should be. public function create...
asked by 07.12.2018 / 22:23