Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two misspellings... #2250

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class file will hold our php logic, and the blade file will do the rendering.

Again, we can use a command to do most of the work: `php artisan make:component Menu`

This will generate the class `app/View/Components/Menu.php` and the blade file `resources/views/components/menu.php`.
This will generate the class `app/View/Components/Menu.php` and the blade file `resources/views/components/menu.blade.php`.

### Preparing the tree

Expand Down Expand Up @@ -349,7 +349,7 @@ class Menu extends Component
}
```

So what we do here is requirest the tree of published menu links, then we send it to our components view file as "links"
So what we do here is request the tree of published menu links, then we send it to our components view file as "links"
.

This will expose the `$links` variable to the blade file that we will now write.
Expand All @@ -358,7 +358,7 @@ This will expose the `$links` variable to the blade file that we will now write.

Now that we have the necessary data in our blade file, we can write the markup.

We will change the contents of `resources/views/components/menu.php` to this:
We will change the contents of `resources/views/components/menu.blade.php` to this:

```phptorch
{
Expand Down