generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e106574
commit bb89eb9
Showing
29 changed files
with
456 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"pixelmatch": "^5.3.0", | ||
"pngjs": "^7.0.0" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Spatie\LaravelPdf\Enums; | ||
|
||
enum Orientation: string | ||
{ | ||
case Portrait = 'Portrait'; | ||
case Landscape = 'Landscape'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Spatie\LaravelPdf\Enums; | ||
|
||
enum PaperFormat: string | ||
{ | ||
case Letter = 'letter'; | ||
case Legal = 'legal'; | ||
case Tabloid = 'tabloid'; | ||
case Ledger = 'ledger'; | ||
case A0 = 'a0'; | ||
case A1 = 'a1'; | ||
case A2 = 'a2'; | ||
case A3 = 'a3'; | ||
case A4 = 'a4'; | ||
case A5 = 'a5'; | ||
case A6 = 'a6'; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Spatie\LaravelPdf\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
use Spatie\LaravelPdf\FakePdf; | ||
|
||
/** | ||
* @mixin \Spatie\LaravelPdf\Pdf | ||
*/ | ||
class Pdf extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Spatie\LaravelPdf\Pdf::class; | ||
} | ||
|
||
public static function fake() | ||
{ | ||
$fake = new FakePdf(); | ||
|
||
static::swap($fake); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Spatie\LaravelPdf; | ||
|
||
use PHPUnit\Framework\Assert; | ||
|
||
class FakePdf extends Pdf | ||
{ | ||
public function assertViewIs(string $viewName): self | ||
{ | ||
Assert::assertEquals($viewName, $this->viewName); | ||
|
||
return $this; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.