I have the following code in my application to generate a PDF report:
$head = '<html><head>'
. '<title>Relatório</title><style type="text/css">'
. '@page {margin: 120px 50px 80px 50px;}.head{font-size:...
I'm having trouble logging in to the user in Laravel.
Look, it does not log in to the user, but it also does not return an error:
auth.php
return array(
'driver' => 'eloquent',
'model' => 'Cliente',
'table' => 'clien...
I followed the installation text of laravel that is on the official website and returned the following errors.
Warning: require (C: \ xampp \ htdocs \ first_app_laravel \ bootstrap /../ vendor / autoload.php): failed to open stream: No such...
I have a form with a field of type month , which sends a value in the format Y-m to my controller. How do I search the records for the selected month and year?
I'm using l5-repository
I did this, but it does not work:
$dat...
The tables:
The users table registers users who can have N functions that are stored in the funcoes table (student, responsible, teacher, etc.).
The funcao_user table is pivot that makes the Many To Many relationship b...
I have a project in Laravel. When I put my files to my hosting server and access the domain, it shows me the files and folders instead of redirecting me to the index.
On my machine I create a virtualhost pointing to the public folder where...
Hello, I'm using laravel 5.6 and I'm creating a query query using the eloquent laravel, but I'm having trouble creating a subquery
What I want to create is simple in SQL server:
,DT_ALTA = (SELECT TOP(1)
DH_DESO...
I created a filter in my view index, when I put something inside one of the filter inputs it enters the ifs but I think it is not good in this way, does anyone know in any better way?
public function index()
{
$usuariosFiltro = null;
$...
I need to change the key of an array
$task=array('Title' => 'Test', 'Description' => 'Description test')
I need to change the name of the key Description
Is there any way?
I'm working with the Laravel framework
I'm currently working with models, migrations, seeds and fakers (factory) for testing the database.
So far, I've got to insert 1 admin, whose code I'll introduce:
DB::table('users')->insert([
'id'=>'1',
'name' =&g...