Questions tagged as 'laravel'

3
answers

Laravel: Migrations

I have a question about Laravel's Migrations and I believe they can help me. 1 - I created a model with migration by php artisan make:model Evento -m; 2 - In addition to increments and timestamps I added one more field to the migrat...
asked by 12.09.2015 / 23:43
1
answer

Mounting a query with laravel

I'm studying the laravel structure from this ready-made example = > bestmomo . In the project there is the userRepository repository with the following structure: <?php namespace App\Repositories; use App\Models\User; class...
asked by 24.11.2017 / 19:48
2
answers

ORM (Eloquent) in Laravel 5.x VS microservice architecture. How to develop web services using Eloquent that consume end-points of an API?

Consider the following architecture: ThisisaverymoderntemplatewheretheAPIprovidesend-pointsfordifferentservicestodotransactionswiththedatabase.I'mabeggineruserinLaravel,somyquestionisabeginner'squestionregardingtheFramework.Laravel,aswellasothe...
asked by 11.04.2017 / 16:25
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
2
answers

What is the csrf_token in the Laravel layout file?

I am aware that to submit a form in Laravel, you need to add a csrf_field, or declare that the route should ignore this protection. However, in the layout file there are the following occurrences: <meta name="csrf-token" content="{{ csrf_to...
asked by 28.02.2017 / 15:44
0
answers

Working with two databases in Laravel [closed]

I'm creating an application that needs to connect to 2 different databases. A database I'm creating (MySQL) and a database I got ready that I have permission to query only (SQL Server). The purpose of the application is to query the data of the...
asked by 19.10.2015 / 12:08
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
2
answers

How do I get the user language of the browser?

I have a website in 3 languages, EN , EN and EN . But on some separate machines when accessing the site by the browser is directing to page in English . This happens because of the code below that I developed to retrieve the user's brows...
asked by 17.08.2015 / 14:29
3
answers

User Authentication with Laravel 4

I'm starting to authenticate users with Laravel 4 as a basis for this link . My doubt and the next, every route, I have to use this way? Route::get('/', array('before' => 'auth'), 'HomeController@index'); I mean, do I have to ent...
asked by 03.07.2014 / 16:52