librilladora/app/Models/Librilladora.php

22 lines
410 B
PHP
Raw Normal View History

2021-11-27 11:15:23 -03:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Librilladora extends Model {
use HasFactory;
public function prueba() {
$mpdf = new \Mpdf\Mpdf();
// Write some HTML code:
$mpdf->WriteHTML('Hello World');
// Output a PDF file directly to the browser
$mpdf->Output();
}
}