mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-11-01 05:43:22 -07:00
40 lines
616 B
PHP
40 lines
616 B
PHP
|
<?php
|
||
|
namespace Michael\ReadOnly;
|
||
|
trait ReadOnlyTrait {
|
||
|
public function save(array $options = []){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function update(array $attributes = [], array $options = []){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
static function firstOrCreate(array $arr){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
static function firstOrNew(array $arr){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function delete(){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
static function destroy($ids){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function restore(){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function forceDelete(){
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function test(){
|
||
|
return false;
|
||
|
}
|
||
|
}
|