Skip to content

Commit

Permalink
[11.x] Adds conditional to routes (#53654)
Browse files Browse the repository at this point in the history
* Added conditionals to routes.

* Cs fixes.

* Update Route.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
Boorinio and taylorotwell authored Nov 25, 2024
1 parent 7e127f2 commit 0739936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Illuminate\Routing\Matching\UriValidator;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Conditionable;
use Illuminate\Support\Traits\Macroable;
use InvalidArgumentException;
use Laravel\SerializableClosure\SerializableClosure;
Expand All @@ -27,7 +28,7 @@

class Route
{
use CreatesRegularExpressionRouteConstraints, FiltersControllerMiddleware, Macroable, ResolvesRouteDependencies;
use Conditionable, CreatesRegularExpressionRouteConstraints, FiltersControllerMiddleware, Macroable, ResolvesRouteDependencies;

/**
* The URI pattern the route responds to.
Expand Down

0 comments on commit 0739936

Please sign in to comment.