Fix counter console 404 when routes are cached.
Deploy Ladill Queue / deploy (push) Successful in 47s
Deploy Ladill Queue / deploy (push) Successful in 47s
Route model binding fell back to numeric id after route:cache; models now resolve by uuid so Care and Frontdesk counter consoles work in production. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Concerns\BelongsToOwner;
|
||||
use App\Models\Concerns\UsesUuidRouteKey;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
@@ -10,7 +11,7 @@ use Illuminate\Support\Str;
|
||||
|
||||
class Device extends Model
|
||||
{
|
||||
use BelongsToOwner, SoftDeletes;
|
||||
use BelongsToOwner, SoftDeletes, UsesUuidRouteKey;
|
||||
|
||||
protected $table = 'queue_devices';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user