Questions tagged as 'laravel'

1
answer

Footer does not appear on the first page - Laravel DomPDF

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:...
asked by 05.05.2016 / 16:52
3
answers

Login Error in Laravel

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...
asked by 09.06.2014 / 00:19
2
answers

Installation of Laravel

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...
asked by 11.10.2016 / 02:46
2
answers

Filter records by month and year in Laravel

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...
asked by 12.09.2016 / 22:35
2
answers

Laravel 5.2 - Making Many To Many relationships between records of the same table

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...
asked by 14.09.2016 / 22:34
1
answer

Host site in laravel [duplicate]

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...
asked by 05.02.2018 / 22:26
1
answer

How to make a subquery in laravel eloquent with 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...
asked by 13.09.2018 / 15:28
1
answer

Laravel 5 improve filter

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; $...
asked by 20.07.2015 / 20:27
3
answers

How to change a PHP array key

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     
asked by 01.10.2018 / 20:32
2
answers

How to check if the entity already exists in the bank

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...
asked by 03.02.2017 / 18:09