I'm a beginner in Laravel and I'm trying to get data from a DB with multiple Postgresql schemas with Laravel 5.1 and it's bringing me an error
What configuration should I make for the model to correctly access the table of that schema?
Dir...
I'm starting to work now with Laravel and realized that defining the routes directly to the controls where I can set the HTTP request type is more feasible for my application. Today I have something like this:
routes.php
Route::controller...
I have a large application 5.2, with multiauthentication, the guards configured in config/auth.php are:
...
'admin' => [
'driver' => 'session',
'provider' => 'admin',
],
'user' => [
'driver' => 'session',...
I'm developing a package for Laravel 5.1 and I've already identified a problem that I could not find the solution for.
Displays the following error:
FatalErrorException in ProviderRepository.php line 146:
Class 'MyNamespace\MyApp\MyAppServi...
I have a list of users, each user has their 'role' (role / function inside the system, such as 'user' and 'admin') and this role has to be shown in the users list screen, which I I did it using the code block below.
@foreach ($users as $key =&...
Expensive,
Can you help me with this laravel redirect?
I created a method where it re-evaluates the data and redirects, on the other hand at the time of redirect I get the error Route [climate.consensus.visual.ID] not defined, only that I def...
I have an enrollment field in the table that needs to be unique
NA MIGRATION
Schema::create('professors', function (Blueprint $table) {
$table->increments('id');
$table->boolean('inativo')->default(0);
$tabl...
I'm trying to run a query in Laravel , the terminal works perfectly, but when I enter in Laravel , it returns me empty, eg:
Query:
SELECT
MAX(positions.id),
devices.name,
positions.deviceid,
positions.ser...
I have a following problem, I made a API and it returns me a array :
"id": 1,
"email": "[email protected]",
"senha": "lucas123",
"created_at": "2018-02-15 16:48:12",
"updated_at": "2018-02-15 16:48:12"'
I would like to only retur...
I need to make an appointment at the bank to see the birthday of the current month. Such a query, see:
SELECT * FROM membros WHERE day(dataNasc) = day(CURRENT_DATE) and month(dataNasc) = month(CURRENT_DATE);
How could I make thi...