Работа над журналом для ст. мед сестер
This commit is contained in:
22
app/Models/MaterializedViewModel.php
Normal file
22
app/Models/MaterializedViewModel.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MaterializedViewModel extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
public $incrementing = false;
|
||||
protected $guarded = [];
|
||||
|
||||
public function save(array $options = [])
|
||||
{
|
||||
throw new \BadMethodCallException('Materialized view is read-only. Use REFRESH MATERIALIZED VIEW instead.');
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
throw new \BadMethodCallException('Cannot delete from materialized view.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user