Skip to content

Commit

Permalink
Update introduction.md
Browse files Browse the repository at this point in the history
Fixed some typos.
  • Loading branch information
LeonvanderHaas authored Jul 21, 2022
1 parent ece971a commit 492d982
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 492d982

Please # to comment.