Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SoftDeletes support * Typo * StyleCI fixes * Added tests for softdeletes * StyleCI fixes * Fixed feedback
- Loading branch information
1 parent
5947365
commit 310ae7b
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Spatie\MediaLibrary\Test; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
use Spatie\MediaLibrary\HasMedia\HasMediaTrait; | ||
use Spatie\MediaLibrary\HasMedia\Interfaces\HasMediaConversions; | ||
|
||
class TestModelWithSoftDeletes extends Model implements HasMediaConversions | ||
{ | ||
use HasMediaTrait, SoftDeletes; | ||
|
||
protected $table = 'test_models'; | ||
protected $guarded = []; | ||
public $timestamps = false; | ||
|
||
public function registerMediaConversions() | ||
{ | ||
} | ||
} |