Mercurial > packages > framework
diff src/Models/BaseModel.php @ 2:b44434aaa767
Moving around the components.
Made a big step in the right direction with the Builder and named joins being accessible.
| author | luka |
|---|---|
| date | Wed, 18 Jun 2025 22:28:47 -0400 |
| parents | 56d9c64d64aa |
| children | e6132a1e8e24 |
line wrap: on
line diff
--- a/src/Models/BaseModel.php Mon Jun 09 23:07:17 2025 -0400 +++ b/src/Models/BaseModel.php Wed Jun 18 22:28:47 2025 -0400 @@ -3,12 +3,15 @@ namespace Wizard\Framework\Models; use Wizard\Framework\Traits\Filterable; +use Wizard\Framework\Database\Builder; use Illuminate\Database\Eloquent\Model; class BaseModel extends Model { use Filterable; + protected static string $builder = Builder::class; + protected $default_relations = []; public static function boot(): void @@ -25,6 +28,7 @@ }); } + protected static function load_auxilary_data() { $data = []; @@ -55,6 +59,10 @@ return static::load_auxilary_data(); } + public static function named_joins() { + return []; + } + /** * Retrieve a query builder instance with default relations loaded. *
