Questions tagged as 'laravel'

1
answer

select in laravel between tables many to many

To select specific columns in laravel by select by obligation you must bring the id and the fk so that the tuples can be related, but when I want to do a - > select () between a much relation a lot does not work for me since in the middle...
asked by 08.07.2018 / 19:44
1
answer

Intermediate tables and pivot relationships

I have the following 3 tables with the relationships shown in the image In the models of Laravel I am defining the relations with the intermediate table in the following way: Table model discounts ; class Discount extends...
asked by 07.07.2018 / 20:43
2
answers

see table with the creations of the logged in user

I have this table of products and I want to show the values of only that one by the user that is logged. my controller public function mostrarTablausu() { $productos = productos::with('usuario','categoria','estado','m...
asked by 09.07.2018 / 22:40
0
answers

Laravel - call ajax to an api

from a blade template I try to make an ajax call to an api the code I have is this @section('custom-js') <script type="text/javascript"> $(document).ready(function(){ alert('test'); $('#edit').on('submit...
asked by 11.07.2018 / 13:36
1
answer

Error deploy in heroku with a laravel app

I'm doing an app in Laravel, it works perfect for me on the host site, but when I deploy heroku I get this error: In Compiler.php line 36: Please provide a valid caché Path I have read and therefore this error says it happens when the dire...
asked by 12.07.2018 / 19:26
1
answer

Laravel does not load the relationships correctly from belongsTo

At the database level, all the users have a profile assigned, when it comes to consulting from the profile model, the users bring it well, but when consulting from the user model the profiles with with () loads only 1 relation for each type of...
asked by 04.07.2018 / 23:01
3
answers

Can not I update with Eloquent in laravel 5.6.25?

Hi, I'm trying to update Laravel, I'll leave my model and my controller, I'll even show the values in the log and if they are correct. My database is Mysql. This use in Ajax $.ajax({ type: 'PUT', url: 'posts/...
asked by 06.07.2018 / 06:11
1
answer

Datatable with laravel

I am using datatables to show the information of my clients and some other useful fields, the datatable works perfectly, but now I need to create reports according to the query made with the searchable datatable. through the method getElement...
asked by 06.07.2018 / 06:58
1
answer

how to use the httpdocs folder of the hosting as public of laravel?

I have a problem with my plesk hosting, I have my project finished in laravel 5.1 and locally everything works fine, I make product registrations and upload the files. the detail is when I upload my page to the plesk hosting, and the public fold...
asked by 04.07.2018 / 16:32
1
answer

laravel does not allow me to upload files higher than 1MB

Hello classmates, I need help. I have to upload some images to the server but these images are very heavy. I have my custom validations $rules = array ( 'comprobante' => 'required', 'comprobante.*' => 'image|mimes:jpeg,png,jpg,gif,svg...
asked by 04.07.2018 / 17:13