Questions tagged as 'laravel-5'

4
answers

405 (Method Not Allowed) In Search ajax laravel

I'm trying to do a search with AJAX and it says 405 (Method Not Allowed) . I do not know what I can be, I tried looking at the routes and I can not find the error. My AJAX <script type ="text/javascript"> $(document).read...
asked by 24.01.2018 / 09:59
2
answers

Impossible to include momentsjs in Laravel5 with 'laravel-mix'

I'm using laravel-5 that comes with webpack and laravel-mix , the idea is to use the library datetimepicker that at the same time uses momentjs . The problem is that I can not include the library in any way. I...
asked by 15.08.2017 / 00:08
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
1
answer

Error when inserting in the Sql Server 2016 Database?

I have tried to store values in my database and I have run into a problem I am handling Laraver 5.5 and SQL Serve 2016 "message": "SQLSTATE[23000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]No se puede insertar el valor NULL en...
asked by 13.06.2018 / 17:37
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

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
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
2
answers

Validate form field in request from laravel

How can I validate that a field of the form only allows text ?, that is, do not accept a number or other characters other than normal letters of the alphabet. I assumed that this would be enough "campo" => "required|string" but if I e...
asked by 16.03.2017 / 14:18
2
answers

Can I use the same driver to register two types of people?

Well I have a form in php I have a select in which I choose if the type of client to register is natural or legal, by selecting which of the two shows the corresponding form. The problem is that to register each client type I am using two contro...
asked by 08.12.2016 / 03:32