Questions tagged as 'laravel'

1
answer

Add more fields in a select with pluck laravel

Hi, I want to show more data in a select with the pluck method, does anyone know how to do it? It turns out that I have a Course table, which has a name and type as attributes. I want to give a course to a student, but with the pluck that I h...
asked by 11.04.2017 / 22:09
1
answer

Make a generic validation method in laravel

I am trying to improve my code a bit and since I have to validate several methods of several controllers, I would like to do a generic method in the Controller Controller, and redirect the validations there. I have tried several options but I ca...
asked by 08.04.2017 / 12:29
1
answer

Show events in fullcalendar through JSON

I'm just learning to use the bootstrap fullCalendar and after searching for the solution I could not find it, my code is as follows: script $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'p...
asked by 10.05.2017 / 07:12
2
answers

Relations in laravel

Good, I have a view where I receive a "subject id", "student id" and I want to show the qualifications that ESE student has in ESA ASIGNATURA. I have the following function public function verCalificacion($id, $idasi) { $alumno = Alumn...
asked by 11.03.2017 / 05:21
1
answer

Error using Ajax Uncaught RangeError: Maximum call stack size exceeded

I want to pass some data by POST using AJAX to insert in database I am working in laravel 5.1. My question is this: Is there a limit to the parameters that can be sent by Ajax? Because I have several and if I remove one nothing happens, in...
asked by 04.03.2017 / 14:29
2
answers

Fields in a form that are not completed are saved as NULL in the database or ignored in the query

I have a form with different inputs, of which the vast majority are not necessary to fill (and some of these are inputs that are related to other tables), my question is, when these inputs are empty, how do I do that are not added in the insert...
asked by 21.02.2017 / 15:01
1
answer

I do not recognize the metoo authenticate Laravel 5.4

Using the latest version I get this little problem, in the documentation says that you have to add this method to the controller to authenticate (This in the Login Controller) public function authenticate() { if (Auth::attempt(['email' =&g...
asked by 03.04.2017 / 00:08
2
answers

Add Notes to Students in bulk laravel

Hi Good I am creating a system of educational administration, it turns out that I have created the module to enter notes to the students the problem is that the way to enter the notes is one by one and now I need to enter the notes in a...
asked by 03.04.2017 / 03:09
1
answer

Query in controller from ID with jquery

I am trying to extract data from a table from an ID and display it with a datatable. By jquery, I have the following function: var info = function(tbody, table){ $(tbody).on("click","a[id=ButtonMas]", function(){ if(table.row(this)....
asked by 11.06.2017 / 23:50
1
answer

How to add data from a foreach?

I have a question, how can I add the values of the foreach? In this case I want to add the sales, to be able to show the total sales that the assignments have. One assignment can have many sales. <tbody> <?php $numero = 0; ?>...
asked by 09.03.2017 / 02:17