Skip to content

Commit

Permalink
Update ok.php
Browse files Browse the repository at this point in the history
  • Loading branch information
soltancode committed Sep 28, 2022
1 parent 4adac56 commit cac596f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ok.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

require '../vendor/autoload.php';

# If you use facade, import this.
# If you don't use it as facade, import this.
use Soltancode\ReturnResponse\Facades\ReturnResponse;

$httpResponse = 200;
$data = ['success' => true];
$message = "Operation done successfully.";

# Using as facade.
# Using as facade:
return ReturnResponse::response($httpResponse, $data, $message);

# Using as helper.
return returnResponse()->response($httpResponse, $data, $message);
# Using as helper:
return returnResponse()->response($httpResponse, $data, $message);

0 comments on commit cac596f

Please sign in to comment.