Removi las validaciones por ahora :/

This commit is contained in:
2021-07-09 01:10:43 -04:00
parent 61b9e25c3b
commit 450a171827
9 changed files with 107 additions and 387 deletions

View File

@@ -10,11 +10,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\QueryException;
use Illuminate\Support\Facades\Log;
/**
* @method static create(array $array)
* @method static find($id)
* @property mixed id
*/
class Restaurante extends Model {
use UuidPrimaryKey, SoftDeletes;
@@ -24,11 +19,7 @@ class Restaurante extends Model {
public static function findOrFail($id) {
$restaurante = Restaurante::find($id);
if(!$restaurante){
throw new ModelNotFoundException("restaurant", $id);
}
if(!$restaurante) throw new ModelNotFoundException("restaurant", $id);
return $restaurante;
}