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 | |
use Illuminate\Database\Eloquent\Builder; | |
class BaseEloquentBuilder extends Builder | |
{ | |
public function insertWithCasts(iterable $values): bool | |
{ | |
if (empty($values)) { | |
return true; |
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 Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations\MorphTo; | |
use Illuminate\Database\LazyLoadingViolationException; | |
use Illuminate\Database\Schema\Blueprint; | |
use Schema; | |
use Tests\TestCase; |