Skip to content

Commit

Permalink
Merge pull request #19 from LeonvanderHaas/patch-1
Browse files Browse the repository at this point in the history
Update introduction.md
  • Loading branch information
freekmurze authored Jul 29, 2022
2 parents ece971a + 492d982 commit 8950fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Introduction
weight: 1
---

This package can automatically discover routes for controllers and views in your Laravel application. This isn't an all-in approach. While using use auto discovery, you can still register routes like you're used to.
This package can automatically discover routes for controllers and views in your Laravel application. This isn't an all-in approach. While using auto discovery, you can still register routes like you're used to.

```php
// typically in a routes file
Expand All @@ -16,7 +16,7 @@ Discover::views()->in($whateverDirectoryYouPrefer);

Using PHP attributes you can manipulate discovered routes: you can set a route name, add some middleware, or ...

Here's how you would add middleware to a controller whose's route will be auto discovered.
Here's how you would add middleware to a controller whose route will be auto discovered.

```php
namespace App\Http\Controllers;
Expand Down

0 comments on commit 8950fe8

Please # to comment.