Ocultando los campos de timestamps de los modelos

This commit is contained in:
2021-07-20 03:24:32 -04:00
parent 245c8bfa4b
commit 6314c125f7
30 changed files with 30 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class Restaurante extends Model {
use UuidPrimaryKey, SoftDeletes;
protected $table = 'restaurantes';
protected $hidden = ['created_at', 'updated_at', 'deleted_at'];
protected $fillable = ['id', 'nombre'];
public static function findOrFail($id) {