Questions tagged as 'laravel-4'

2
answers

How to create a Grouped List in Laravel 4 from an entity with self-relationship

I'm trying to create a select box com \Form::select() (grouped list) in Laravel 4 and I have the following entity: Items id = id do item nome = nome do item pai = fk dessa mesma entidade I have already created the model with hasMa...
asked by 12.12.2013 / 12:06
1
answer

Access Permissions in Laravel 4

I'm developing a system in Laravel 4 based on Laravel's official tutorials and documentation. I have not seen anything related to (ACL) access permissions in Laravel. Knowing that my system will have several resources available, such as: New...
asked by 07.02.2014 / 13:46
1
answer

How to use Angular JS and Laravel 4 without conflict with the blade?

I would like to know how do I configure Laravel 4 to use AngularJs without conflict with the Blade, since the interpolation tags are the same?     
asked by 17.02.2016 / 12:04
2
answers

.htaccess with subfolder other than root

I was working with this framework and with this htaccess: structure config/ logs/ www/ app/ bootstrap/ public/ packages/ .htaccess index.php ... vendor/ .htaccess ... htaccess...
asked by 16.01.2014 / 19:23
6
answers

Error installing Composer on Project in Laravel 4

I'm starting in the Laravel world and I'm having a problem running the composer install on the project. When running the command, it shows the following error: D:\htdocs\cpi2>composer install Loading composer repositories with packag...
asked by 09.01.2014 / 13:24
2
answers

How does the Laravel 4 Query Cache work?

I'm trying to cache my query, but I do not know how to recover the data later. Another question: when the number of rows in the database increases, does it automatically redo the query cache, or every time I enter the page does it cache the quer...
asked by 12.01.2014 / 07:22
1
answer

Increase login session time google with Laravel 4

Working with the Google 3.0 API. My Laravel session expires in 5 years (not to log out). But the Google session has 3 hours, ie if the system is stopped for 3 hours it logs out from Google, but not from the system in Laravel. What I want i...
asked by 25.02.2014 / 23:03
1
answer

Define default value for database column in Laravel 4

How can I add a default value for a column of my MySQL table through Laravel 4? In SQL would be: create table tabelaTeste( id int NOT NULL AUTO_INCREMENT, coluna1 varchar(50) DEFAULT valor, PRIMARY KEY(id)); In Laravel I am c...
asked by 23.11.2015 / 11:22
1
answer

Conflicts with the ConfideUser class

In my User model, I left my protected $table = 'usuarios' and in auth.php the same thing, but when calling the save() method of Eloquent, it recognizes table ' users ' and not ' users ' as I instantiated. So, I renamed the t...
asked by 17.01.2014 / 20:23
2
answers

How to log in only active users?

In authentication, in addition to the data required to log in, I want only those with status ativo = 1 to log in, but I do not know how to do this. table user: id username email password ativo UserController public function...
asked by 08.01.2014 / 03:44