Download tests/CreatesApplication.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/tests/CreatesApplication.php
- Command line
-
hf download hf://pnacorp/magicai/tests/CreatesApplication.php
-
curl -L -o CreatesApplication.php https://huggingface.co/pnacorp/magicai/resolve/main/tests/CreatesApplication.php
355 Bytes
| declare(strict_types=1); | |
| namespace Tests; | |
| use Illuminate\Contracts\Console\Kernel; | |
| use Illuminate\Foundation\Application; | |
| trait CreatesApplication | |
| { | |
| public function createApplication(): Application | |
| { | |
| $app = require __DIR__ . '/../bootstrap/app.php'; | |
| $app->make(Kernel::class)->bootstrap(); | |
| return $app; | |
| } | |
| } | |