initial import
This commit is contained in:
28
app/Models/DummyPluginModel.php
Normal file
28
app/Models/DummyPluginModel.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DummyPluginModel extends Model
|
||||
{
|
||||
protected $table = null; // No actual table
|
||||
|
||||
protected $guarded = []; // Allow mass assignment for all attributes
|
||||
|
||||
public $incrementing = false;
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
public function newCollection(array $models = [])
|
||||
{
|
||||
return new \Illuminate\Database\Eloquent\Collection($models);
|
||||
}
|
||||
|
||||
public function newEloquentBuilder($query)
|
||||
{
|
||||
return new \App\Filament\Resources\PluginResource\CollectionEloquentBuilder($query);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user