Questions tagged as 'laravel'

1
answer

Update in laravel with primary key other than id

I am starting to work with laravel, but the database was already created and in none of the tables the primary key is named id . The roles table has its primary key id_role when trying to do the update it tells me the following...
asked by 31.07.2018 / 18:25
3
answers

I iterate 2 array in a v-for with fields that have a relation

I want to show two arrays in a table veran I have two arrays in the first one I have the products and the second one I have the states of the products and it has a field product_id to which it refers. <table class="...
asked by 30.12.2018 / 03:55
3
answers

Error when consulting with eloquent in laravel 5.6

I'm trying to show data from a table that is related and I'm using Laravael Eloquent for the query. but it generates the sgt error:    SQLSTATE [42S22]: Column not found: 1054 Unknown column 'a.name' in       'where clause' (SQL: select co...
asked by 27.09.2018 / 01:04
2
answers

Laravel, Form is sent double

Good morning, I'm starting with laravel and I've created a login / registration system using Auth but I have a problem, I try to put the login and registration form on the same page and when I give "Logear" they send both the data of the first f...
asked by 29.07.2017 / 18:22
4
answers

Problem in laravel "Invalid route action: [App \ Http \ Controllers \ HomeController]."

Hello create a driver with PHP artisan make: controller HomeController --resource HomeController <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Display a lis...
asked by 06.03.2018 / 18:01
1
answer

Help with query on sql server

I have the following question, I need to filter a query on sql server by date range and time range, for this I made the following query: SELECT * FROM AHUMA00016 WHERE Fecha BETWEEN '28/5/18' AND '29/5/18' AND Hora BETWEEN '09:13' AND '09:28'...
asked by 25.08.2018 / 19:11
1
answer

Error creating a new related record

I have a table related to other PRODUCTS AND MARKS, what happens is that when I create brands and products everything is going well. The problem is when I delete a brand and create another one, and when creating a new product with a role, it sen...
asked by 28.01.2017 / 17:03
2
answers

Remotely access Laravel project

Hello, I do not know how to access my project echo in laravel from another computer in the network, locally I can access it with: http://localhost:8000 Now I try to access by replacing localhost with IP on the same computer on which I h...
asked by 04.10.2016 / 19:27
1
answer

Laravel (5.4) Parse error: syntax error, unexpected '-' (T_OBJECT_OPERATOR)

Description Last days they answered me in another question that could implement whereHas to make a query to two different tables. In this case the table noticias and notas same that does not let me receive the data in the...
asked by 08.04.2018 / 20:36
3
answers

Laravel can not find the driver in App \ Http \ Controllers

I am creating a project in laravel, I have created a driver, and when I try to link it to the path, it throws me an error that does not find it. I show you the code    CONTROLLER: Home      namespace App\Http\Controllers\Home; use Illuminate\...
asked by 05.04.2018 / 18:46