Skip to content

Instantly share code, notes, and snippets.

@AhmedMAfana
AhmedMAfana / Testcase.php
Created June 21, 2022 07:56 — forked from wanmigs/Testcase.php
Create, Update, Delete and Fetch TestCase
<?php
namespace Tests;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
@AhmedMAfana
AhmedMAfana / ApiResponse.php
Created June 8, 2022 07:57 — forked from jtelesforoantonio/ApiResponse.php
Trait API Responses for Laravel
<?php
namespace App\Traits;
use Illuminate\Http\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
trait ApiResponses
{
/**