Removi las validaciones por ahora :/
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user