Questions tagged as 'laravel'

2
answers

How can I ensure that my API will only use the features I want it to use?

Hello, I have the following question. I have an application that will be used by several companies, each company will have a number of employees (only users of the company) and I have regular users (business customers). The system relationshi...
asked by 17.06.2018 / 18:28
2
answers

Error setting up Passport in Laravel

I have a laravel API and in it, I need to authenticate access requests. So I used Passport Laravel, but according to the API return, there is some definition that I did not report in my code. In my route, I type the middleware type: Route::...
asked by 17.06.2018 / 17:52
0
answers

Problem with sending data via ajax and laravel

Good afternoon, I'm having trouble sending data via ajax, it returns code 200 but returns    SyntaxError: Unexpected end of JSON input But I do not think it's even in the controller <input type="button" class="btn btn-primary btn-blo...
asked by 08.06.2018 / 17:30
1
answer

How to use the make: request request Laravel to be able to clean the controller

Laravel 5.5 I'm using the validations as follows, directly in the controller $this->validate($req,[ 'nome' => 'required|min:10', 'cpf' => 'required|size:14', 'agencia' => 'required', ],[ 'nome.re...
asked by 08.06.2018 / 21:36
0
answers

Laravel: Access relationship attributes

I have the products , images tables, image_products tables.  The image_products table has a foreign key to the products and images table. When I list the products and names of the images that are in the images table with the comm...
asked by 07.07.2018 / 06:17
0
answers

Request data is coming null

Contextualization Home Deleting a record of errata history occurs the 404 error that the object was not found; the object is coming empty. How do I fix this? The request is arriving at controller . But no errata is found with that id and...
asked by 29.05.2018 / 21:20
0
answers

Image upload in Laravel does not work on web server

When trying to upload an image in Laravel to a web server it is not generating the image. When using the $ request-> hasFile ('image') even though the image is being sent but if I run the same project on the local server it works normally Th...
asked by 29.05.2018 / 02:09
0
answers

Connect SSH with Laravel (Windows Server)

The server where you are hosting my XAMPP is Windows (Win 7), and I need to connect via ssh to other linux servers through Laravel. I'm using the LaravelCollective 5.5 library ( link ). Initially my code is as follows, but this is returning t...
asked by 05.06.2018 / 18:45
0
answers

Identify type of operation with javascript

How can I identify when the click is "From:" "To:"? I have a code to add a value from a database field, to another field, follow the example: HTML: <div class='row justify-content-center'> <div class="con...
asked by 05.06.2018 / 22:14
0
answers

laravel pdo_connection mssql

I'm using laravel 5.6 in ubuntu 16 and I'm trying to connect it in mssql 2012. I'm using the db_lib library because this is project requirement. When I try to connect this error: PDOException : SQLSTATE[IM001]: Driver does not support this...
asked by 16.05.2018 / 16:09