This file contains hidden or 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
| $aides = Aide::all(); | |
| File::put('aides/aides.json', $aides->toJson(JSON_PRETTY_PRINT)); | |
| return response()->download('aides/aides.json', 'aides.json'); |
This file contains hidden or 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
| /** | |
| * Read lines from the file, auto detecting line endings. | |
| * | |
| * @param string $filePath | |
| * | |
| * @return array | |
| */ | |
| protected function readLinesFromFile($filePath) | |
| { | |
| // Read file into an array of lines with auto-detected line endings |
This file contains hidden or 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
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /your/root/path; | |
| index index.html; | |
| server_name you.server.com; |
This file contains hidden or 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
| <?php | |
| namespace Tests\Feature; | |
| use App\Models\CartItem; | |
| use App\Models\Sku; | |
| use App\Models\Spu; | |
| use Illuminate\Foundation\Testing\RefreshDatabase; | |
| use Tests\TestCase; | |
| use App\Models\User; |
This file contains hidden or 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
| <?php | |
| namespace Tests; | |
| use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
| use Tymon\JWTAuth\Facades\JWTAuth; | |
| use ReflectionClass; | |
| abstract class TestCase extends BaseTestCase | |
| { |
OlderNewer