Questions tagged as 'laravel-5.7'

1
answer

Problem with pivot table in laravel 5.7

I am doing a project for the university and I have a problem working with a pivot table, it is the relationship between Vaccines (Vaccine) and Pets (Pet), it is a relationship of many to much, believe the migrations of both Vaccine and of Pet, a...
asked by 31.12.2018 / 20:43
1
answer

Problem when creating object with tinker (Laravel)

I created a migration in the following way: public function up() { Schema::create('partesdiarios', function (Blueprint $table{ .... Effectively, create the daily shares table in MySQL. But when I want to create an object from tinker it retu...
asked by 20.12.2018 / 14:18
1
answer

Laravel MethodNotAllowedHttpException error en route Resource

I have a question, when I try to update a data I get the MethodNotAllowedHttpException error, I understand that this error comes out when there is a problem with the paths that are get and should be post but in my case my path is...
asked by 04.12.2018 / 06:33
1
answer

Driver laravel moficar to search with more than one product

I have the following driver: public function show($id) { // Busco el perfil $perfil = lista::where('di', $id)->first(); //con el resultado de la busqueda muestro el perfil $mostrarperfil = Perfiles...
asked by 17.11.2018 / 16:19
1
answer

All routes (route) of Laravel return ERROR 404

I have just created my first project with Laravel, and I am following all the steps little by little. But I find myself stuck with an error that I can not solve. When editing the web.php file in the routes directory, it happens that no ro...
asked by 16.12.2018 / 00:33
1
answer

Consult many many laravel 5.6

Well as you can see I am learning laravel, that is why I need help from the experts in a clear way if it is not too much trouble not to get lost. ' I want to receive this fix in my vue component. and it does not work with the foreach in the...
asked by 16.11.2018 / 01:42
1
answer

How to delete a data within the same index in Laravel

I work in Laravel 5.7, I have a Model Locations, a controller LocationsController, and since there are so few data that this model will have (and its respective table in the database) I have decided to make their respective crud in the same inde...
asked by 17.12.2018 / 22:24
1
answer

How to work correctly with entities that are related in laravel?

I have a model called Inmueble , its attributes are: Property Number Location (in flame database id_ubicacion ) Type of Property (in flame database id_tipo_inmueble ) Area Description This model has its respectiv...
asked by 13.12.2018 / 15:39
2
answers

Show notice when trying to delete foreign key LARAVEL

I have two tables with one to many relationship, "Locations" and "Devices", the problem arises when trying to delete a "location" that has a "device" related, I need you to show a notice that says that the deletion was not made and not the error...
asked by 08.11.2018 / 12:42
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