Questions tagged as 'laravel'

0
answers

Migrate Triggers to different databases in Laravel

I have a problem, it turns out that I work with laravel and migrate several tables to different databases thanks to Schema :: connection in a normal way, but the problem is that I also have some TRIGGERS and PROCEDURES as migrations using the...
asked by 12.11.2018 / 20:53
1
answer

Error uploading images in laravel to database

I'm trying to upload an image to the database from a form This is my view {{ Form::open(array('url' => '/saveAbsence'), ['id' => 'absenceForm'], ['enctype'=>'multipart/form-data']) }} {{Form::file('cover_image')}} {{Form::close()}}...
asked by 13.11.2018 / 14:27
2
answers

Error 404, laravel does not get a view with some data sent

As I did not manage to use datatables, I managed to improvise a different method. One that opens a form that edits the tables, the one to erase since it is done, can ignore that. For some reason, the view does not appear. It says 404 error....
asked by 14.11.2018 / 23:01
0
answers

Modals and JS functionalities do not work after compiling with npm run dev

I have a problem with my JS modals and functionalities of my web application. In summary my code in webpack.mix.js is the following: mix.scripts([ 'resources/assets/js/bootstrap.min.js', 'resources/assets/js/Chart.min.js', 'resou...
asked by 10.11.2018 / 15:10
1
answer

Error Undefined index: loading an excel - laravel 5

I would like to know if someone can help me with this error. I'm trying to upload a file in excel to a table in a bd, but I get that error, and sincerely I've given it a thousand laps and I do not know why I do not take the data. I'm tryin...
asked by 09.11.2018 / 22:33
2
answers

Save several records at the same time from a range of dates

I have a form in which I request 4 data; Start date, end date, note and attachment. What I try to do is that if the start date and the end date selected are different, I keep a record for each date. Example: Start date = 1-11-18 End Date = 8-11-...
asked by 09.11.2018 / 20:35
0
answers

Insert if inside laravel driver

I would like to introduce a simple if () to see when the variable $row->photo is empty simply this if($row->photo){ /// contenido <img> } But I can not implement it without having syntax error someone gives me a hand?...
asked by 08.11.2018 / 21:19
3
answers

Error datepicker in laravel 5.6

I am working with bootstrap datepicker in my application developed in laravel 5.6. It works fine, until I add the option of setStarDate and setEndDate when it starts to throw the error Uncaught TypeError: $(...).datepicker is not a function...
asked by 07.11.2018 / 16:10
0
answers

Plugins do not work in my modal window

I have a web app in laravel 5.5, I have several manners for registrations, validation for generic fields such as country I use select2 , and it runs perfect in all views of the application, except in manners, I even tried to place a table with...
asked by 08.11.2018 / 17:07
1
answer

Models in Laravel

Let's see, I have a big question about the models in Laravel. It turns out that in the models one generally stores all the access to data through methods and queries that are made to the BD. Here I do not have that very clear, because I see that...
asked by 06.11.2018 / 19:31