Questions tagged as 'laravel-4'

2
answers

Laravel - Accessing directory absolute path for download

I created a directory within / public called / uploads / pdf. In this directory I save PDF files that I need to download. I created an AJAX request for this which calls an application controller for this, however, via AJAX it does not work. I...
asked by 07.06.2014 / 19:16
2
answers

Laravel 4 (Eloquent) Error deleting records

Hello, in this code below I make a delete in the database of the selected records in a list of chekboxes. I have an array of Ids that is mounted as follows: Array ( [0] => 810 [1] => 811 ) On top of this array I make a fore...
asked by 09.04.2014 / 21:45
1
answer

Form :: model + checkbox in view edit

I'm using form::model to edit data. It works correctly but the checkboxes return empty. How do I return the ones saved in bd? I want them to show the ones that are registered. For example: in the course register I marked Morning and af...
asked by 04.03.2014 / 21:22
0
answers

Browser opening JSON

I have a validator that returns a JSON to an .js that reads this JSON and displays the error messages or releases the submit. However, sometimes the browser opens the JSON itself instead of displaying the error messages. Has anyone seen anything...
asked by 18.09.2018 / 14:14
1
answer

Open existing project Laravel

I need to open a project previously made in laravel. I've never worked with laravel, so I do not know where I might be going wrong. The project came in a .zip file when I unzipped it it created a folder called engraf182-my-project-6609a7d5...
asked by 26.02.2018 / 18:11
0
answers

SQLSTATE [HY000]: General error: 2053 when I call a Stored Procedure?

I am using Laravel 4.2 and am calling a Stored Procedure from a database on the server. Locally it works fine, but on the server, using the same DB, it gives error. The call is as follows: $result = DB::select('CALL sp_precos_...
asked by 07.02.2017 / 18:21
1
answer

How to define providers that only work in local environment with Laravel 4?

In Laravel 4, we have a file called app/config/app.php , which we use to define configuration information that will be used in the application. When I am in a development environment, I configure the application to process app/config...
asked by 06.02.2017 / 14:58
0
answers

Is it possible to share validation failures between nested controllers?

I have two templates, one child of the other, User and Address where User>hasOne>Address and I'm about to do the following: Request : [ 'User' => [ 'name' => 'fulano', 'etc' => 'etc' ],...
asked by 27.01.2017 / 18:07
0
answers

Problems using the PHPExcel cache system with Laravel 4.2

I am trying to use the PHPExcel library cache system , however I am still getting memory overflow in my application. I need to use cache because I am generating reports with more than 100,000 records on a server with limited memory. Therefore...
asked by 06.12.2016 / 19:27
0
answers

Sending email with Laravel 4.2 does not reach recipients

Hello, I'm trying to send emails using Laravel 4.2 but the messages only arrive when the recipient's email is the same as the one they are sending. The configuration of the mail.php file looks like this: <?php return array( 'd...
asked by 12.12.2016 / 13:44