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...
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...
Consider the following architecture:
ThisisaverymoderntemplatewheretheAPIprovidesend-pointsfordifferentservicestodotransactionswiththedatabase.I'mabeggineruserinLaravel,somyquestionisabeginner'squestionregardingtheFramework.Laravel,aswellasothe...
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...
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...
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...
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...
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...
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...
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'), '[email protected]');
I mean, do I have to ent...