Questions tagged as 'laravel-4'

1
answer

How to return difference after running update in Laravel 4?

Does anyone know how to return only the fields and values changed in an update in laravel? ex: a table that contains a field name with value John, let's assume that I change this field to John. I would like to know how to return the changed f...
asked by 24.04.2016 / 14:38
1
answer

How to customize the Laravel 4 error page?

When an error occurs in Laravel 4 , with the setting of app.debug equal to false , the following page is returned: In this case, for both% and% errors, this page is displayed. Is there any way to change the page th...
asked by 24.02.2016 / 15:07
1
answer

How to configure Laravel 4 to automatically detect which environment I am in (production and development)?

In Laravel 4 , we have a configuration file in app/config/database.php . And in the app/config/local/database.php folder you have another file. The Laravel 4 has a mechanism to be able to detect in which environment w...
asked by 17.02.2016 / 12:51
2
answers

How to list the routes in Laravel (Without using artisan)?

No Laravel 4 I know how to list all routes through the command line. Just do php artisan routes . But now, I have to do this in the source code of my application. That is, I need to list the routes (in foreach for examp...
asked by 17.02.2016 / 12:03
1
answer

Make changes to a site developed in Laravel 4.2 [closed]

I'm starting the development in Laravel and I have to implement new features in a site developed in Laravel 4.2 and by another programmer. I need to create a function that adds rows to a Log style table, which needs to be accessible throughou...
asked by 13.10.2015 / 11:28
1
answer

In laravel, what is the file indicated to use MacroTraits?

In Laravel, some classes use trait MacroableTrait . Through this trait you can create settings like: HTML::macro('urlQuery', function () { // Faça alguma coisa aqui }); HTML::urlQuery(); // O método urlQuery é "criado" ma...
asked by 16.07.2015 / 15:09
3
answers

Problem uploading Laravel / Intervention image

I have a problem when I try to upload an image, well, when I submit on form it returns the following error: Intervention\Image\Exception\NotWritableException Can't write image data to path (public/images/products/2014-06-01-16:24:38-581165_571...
asked by 01.06.2014 / 19:20
2
answers

I can not access the other project urls

I'm migrating to linux and I'm having a hard time, I installed php, apache, mysql and composer, I can create projects all blz I had a great help until I came to that. The problem is when I try to access my.project / my_project ... when I ente...
asked by 06.06.2014 / 03:35
1
answer

Multiple POST Optimization via Ajax

I have a small application, and I was building it as I got to know Laravel, so nowadays there are things I see that are wrong and I try to adapt to good programming practices and one of the key points is the endless inclusions in db , via ajax....
asked by 18.02.2014 / 19:49
1
answer

Service Validation Package

I am developing a large project with Laravel and need to validate my data. Initially I had planned to use Ardent, but this is not compatible / advisable for anyone using the default repository. So I'll have to do the services validations. Do...
asked by 10.02.2014 / 20:45