Questions tagged as 'laravel'

1
answer

Multi languages in Laravel 5

I'm developing a project in laravel 5, but I would like it to be in several languages. Changing the language would be by clicking on the link for each language and automatically translating the site into that language. Thank you.     
asked by 28.02.2016 / 23:22
1
answer

Problem with select and use of ajax in Laravel 5 [closed]

I'm trying to implement a select with ajax in laravel 5 I have the following situation. A state model class class Estados extends Model { protected $table = 'estados'; public function cidades() { return $this->hasMany( 'App\Models...
asked by 28.02.2016 / 03:10
2
answers

Controller pulling bank data from the wrong place

I have the application properly configured and running normally. But one detail is stuck. This is my .env file: APP_ENV=local APP_DEBUG=true APP_KEY=9FaEj6iJCBur1favtWQ88b8m1anbGbzP DB_HOST=localhost DB_DATABASE=laravel_blog DB_USERNAME=roo...
asked by 22.12.2015 / 19:09
1
answer

Migration change only the default value of a field - Laravel

I want to launch a migration that updates only the default value of a field, I tried the following: $table->string('mikrotik_rate_limit')->default('1048576/1048576'); $table->bigInteger('mikrotik_recv_limit')->default(1073741824)...
asked by 22.02.2016 / 19:39
1
answer

Define custom settings for the database in Laravel

My situation is next, I have several settings with the database defined in the file databade.php , so far so good. But there are some connections that require 'variable' data, such as the name of the bank. My question is whether you can defi...
asked by 07.12.2015 / 14:08
1
answer

Laravel / Angular Routes $ routeProvider

I have something like this in the app.js of my application: app.config( function( $routeProvider ) { $routeProvider.when('evento/:id/:caminho', { templateUrl: 'views/evento.html', controller: 'PrincipalEventoController'...
asked by 10.10.2015 / 14:21
1
answer

Command Laravel [closed]

I have a queue class in laravel 5.1 that does an insert in mysql through a csv, but I can not use session in this class and not even get the id of the user logged in by oauth 2. How can I do this, at least use session. Within the handler meth...
asked by 29.09.2015 / 18:54
1
answer

How to change the Laravel 4.2 Auth database?

My project has two databases: one bank for user accounts and one for the project domain. My need is to define the database that Auth uses for authentication, because in the default configuration the domain database is defined. return ar...
asked by 12.01.2016 / 21:35
1
answer

Filter a query using an attribute in Laravel

I have, in short, the following structure: Suppliers : id | cnpj | razao_social | endereco_id People : id | nome | tipo_pessoa | fornecedor_id Model - Supplier: public function endereco() { return $this->hasOne('...
asked by 15.09.2015 / 17:54
2
answers

Nothing to migrate

Hello, I'm starting in php plus the Laravel framework, and my doubt is regarding the command php artisan migrate  to migrate a table in the database. When I ran the command for the first time it presented this message Nothing to mi...
asked by 18.09.2015 / 06:55