Posts by Thiago Bueno • 483 points
5 posts
-
6
votes1
answer1456
viewsQ: Increase google login session time with Laravel 4
I work with Google API 3.0. My Laravel session expires in 5 years (not to log out anyway). But the Google session has 3 hours, IE, if the system stands still for 3 hours it logs from Google, but not…
-
3
votes3
answers3257
viewsQ: Problem with Laravel date
My problem is in the date conversion, see: echo date('Y-m-d', strtotime(Input::get('data_evento'))); echo of Input::get('data_evento'): 14/02/2014 echo of date('Y-m-d',…
-
11
votes2
answers4531
viewsQ: Group and add array with PHP
I need to know how to group and add one array, but I’m not finding out how to do. $array = array("vermelho", "vermelho", "vermelho", "verde", "azul", "azul"); wanted a comeback like this 3 1 2 That…
-
10
votes1
answer946
viewsQ: How to get multiple of some PHP value?
I need to do a search in the database and according to the value found within a range of values must return a specific value. For example: if you find the values 1 to 4, you must return 1, finding 5…
-
8
votes2
answers650
viewsQ: How to use Packages in Laravel 4?
I am new to the Laravel 4 framework. In Laravel 3 it was simple to use Bundles. In version 4 the use of the Bundles was removed and started to use Packages, but I didn’t understand how it is used,…