Questions tagged as 'laravel'

1
answer

How to update the data of a registry Laravel 5.2?

I'm moving on Laravel soon, I have name, email and password and wanted to know how do I update this data with a form. <div class="container"> <div class="row"> <div class="col-md-10 col-md-offset-1">...
asked by 13.05.2018 / 08:40
0
answers

Consume API with JQuery and save to database

Good evening! I'm trying to consume an API using JQuery and Laravel. I created the route to access and save the data, access always returns me with status 0. web.php: Route::any('http://moviecom.com.br/MoviecomAPI/','MoviecomController@stor...
asked by 12.05.2018 / 07:56
0
answers

Error 500 laravel on request ajax

Form: <div class="modal-body"> <form name="frmEmployees" class="form-horizontal" novalidate=""> <div class="form-group"> <div class="col-sm-5"> <label class="col-sm-3"&...
asked by 10.05.2018 / 17:14
1
answer

Route of api in Laravel 5.4

Through the composer, I started a project with the command: composer create-project --prefer-dist laravel/laravel api After the installation of the dependencies, I was able to see the "welcome" of the application (through the default wheel...
asked by 21.05.2018 / 04:16
0
answers

How to validate select multiple?

Context Home I need to validate the multiple check box. You must validate the second checkbox. DoubtHomeWhereandhowdothesevalidations?InphporjavaScript?ValidationLogic Codes:LocationModality:Displaysthemultiplecheckboxontheedita.blade.phpp...
asked by 09.05.2018 / 14:49
1
answer

Is the writing of this function correct?

I made this function so that it takes a request from js and at the time of entering the name of a category, give a select in the database, check if the name already exists and if it returns 0 in the count, it will write. > You are recording, b...
asked by 08.05.2018 / 16:13
0
answers

How to add Laravel's HTTP-Tests in a PHP package?

I am creating a package in PHP, with the composer by the time it is published in the Packagist . This package consists of many requests in other APIs, in which case I'm using Guzzle . To run the tests on phpunit that helps test th...
asked by 04.05.2018 / 03:53
2
answers

Return after sending email

In laravel 5.3, at the time of sending the email it does not return anything. Would you like to return some data to see if the email was sent or not? Something like this: $mail = Mail::to('[email protected]')->send(new ContatoEmail($dado...
asked by 16.05.2018 / 19:47
1
answer

Uploading image outside the LARAVEL folder

Good afternoon, I have a question, is it possible for me to upload an image in laravel out of the project folder? Well I have a project that the site folder is out of the laravel folder and I need to display images uploaded to laravel on this si...
asked by 16.05.2018 / 21:04
1
answer

Datatables server-side processing with Sweet Alert 2

I am using Datatables with server-side processing and using SweetAlert2 to confirm before deleting the record. Everything is working except for the sweet alert that is not displayed when you click the delete link. Using datatables without aja...
asked by 03.05.2018 / 17:14