Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Fixed Cast name.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Apr 6, 2021
1 parent 7617bcb commit 3f10fda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Just remember to **change the namespace** if you're copy-pasting them!

* [`CastEnumerable`](src/Eloquent/Casts/CastEnumerable.php): Allows an [`Enumerable`](src/Enumerable.php) to be saved as an integer o string, and retrieved back to an `Enumerable` instance.
* [`CastsRepository`](src/Eloquent/Casts/CastRepository.php): Allows a Config Repository string to be saved a JSON, and retrieved back as Config Repository.
* [`CastBase64`](src/Eloquent/Casts/CastBase64.php): Allows a binary value to be saved as BASE64 in the database, and retrieved back as binary.
* [`CastsBase64`](src/Eloquent/Casts/CastsBase64.php): Allows a binary value to be saved as BASE64 in the database, and retrieved back as binary.

### Global Scopes

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* CastBase64
* CastsBase64
*
* This handy cast class will automatically encode any (hopefully) binary string into BASE64 so
* it can be saved into the database, and restore the binary string from the database. This is
Expand Down Expand Up @@ -40,7 +40,7 @@
use Illuminate\Support\Str;
use RuntimeException;

class CastBase64 implements CastsAttributes
class CastsBase64 implements CastsAttributes
{
/**
* Transform the attribute from the underlying model values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Tests\Eloquent\Casts;

use DarkGhostHunter\Laratraits\Eloquent\Casts\CastBase64;
use DarkGhostHunter\Laratraits\Eloquent\Casts\CastsBase64;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Orchestra\Testbench\TestCase;
use RuntimeException;

class CastBase64Test extends TestCase
class CastsBase64Test extends TestCase
{
/** @var \Illuminate\Database\Eloquent\Model */
protected $model;
Expand All @@ -29,7 +29,7 @@ protected function setUp() : void
protected $table = 'test';

protected $casts = [
'castable' => CastBase64::class,
'castable' => CastsBase64::class,
];
};

Expand Down

0 comments on commit 3f10fda

Please sign in to comment.