Set StaticModel connection to mysql

This commit is contained in:
Jason Beggs 2023-12-19 10:52:48 -05:00
parent 370d267678
commit 44620ae67b

View File

@ -33,9 +33,11 @@ use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundExceptio
*/ */
class StaticModel extends Model class StaticModel extends Model
{ {
protected $connection = 'mysql';
use MakesHash; use MakesHash;
use Excludable; use Excludable;
protected $casts = [ protected $casts = [
'updated_at' => 'timestamp', 'updated_at' => 'timestamp',
'created_at' => 'timestamp', 'created_at' => 'timestamp',