ReadOnlyTraitLaravel/src/ReadOnlyTrait.php

40 lines
624 B
PHP
Raw Normal View History

2016-03-28 11:15:08 -07:00
<?php
namespace MichaelAChrisco\ReadOnly;
2016-03-28 11:15:08 -07:00
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;
}
}