Questions tagged as 'laravel'

1
answer

Column not found: 1054 Unknown column 'id' in 'where clause' Laravel 5.3

Greetings, I am updating a table called tbl_articles using the same view where the Primary key = idArticulo, the insert performs me impeccably the problem is when I want to update it generates the error I AM WORKING WITH LARAVEL 5.3 QueryExcep...
asked by 23.05.2017 / 05:56
1
answer

error 405 POST ajax laravel MethodNotAllowedHttpException

I have a form in which I try to add a category by means of ajax and whenever I try to create a category I get POST 405 error, and it never reaches Controller category and obviously does not enter anything in the database I use windows 7 and X...
asked by 21.11.2016 / 18:11
1
answer

Use {{asset ()}} in an echo

I have the following problem: I need to make a query of images saved on the server to show them in a view echo "<img src={{asset ('images/producto/{$producto->imagen}'}} title='{$producto->imagen}'/>";     
asked by 05.10.2016 / 19:28
2
answers

Create user in Laravel 5.3 passing data with select

I am creating a registration form in Laravel 5.3, where one of the fields is a "group" that searches in a database. The groups are available and displayed by a select . The problem is that I could not save, because I think I'm not receivin...
asked by 31.10.2016 / 15:34
1
answer

calculate values in a view

Hi, I have a view in which I filter students per month. And I have some doubts: 1) The most important thing is that I calculate the total number of students enrolled and that I add the amounts of the selected month  When I make a dd...
asked by 03.04.2017 / 01:39
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

Differences between Seed, migrations and factories?

I am learning Laravel, but it causes me conflict to understand some things about the subject. As I understood the migrations are a kind of control of versions of the database with OOP Seeds are used to create test data. And the factorie...
asked by 23.05.2018 / 00:54
1
answer

Update user profile Vue-Laravel

I have to do the view to update user profile in Vuejs, the view is currently done in blade and it works fine, but I have to pass everything to Vuejs. From the sidebar.blade.php I pass the user to the Vue component named Profile.vue <pro...
asked by 12.04.2018 / 21:17
1
answer

error PHP-LARAVEL Undefined variable:

I'm doing a project in laravel. But he throws me the next mistake. In my controller I have this: public function edit($id) { $lanifComercial = new PlanifComercial(); $lanifComercial->LABORATORIO = 'LABORATORIO'; return view('P...
asked by 31.07.2017 / 22:48
2
answers

Laravel Blade Templating + Vue2 HTML Render

I have an application that uses Laravel 5.4 and in order to search for reactive records with AJAX I decided to use Vue 2. The issue is that when rendering the information of Vue.js I get the classic and logical err...
asked by 28.07.2017 / 23:42