Skip to content

Commit

Permalink
add to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 2, 2022
1 parent 129c41e commit 434a8df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ use Illuminate\Support\Facades\Blade;
return Blade::render('Hello, {{ $name }}', ['name' => 'Julian Bashir']);
```

Similarly, the `renderComponent` method may be used to render a given class component by passing the component instance to the method:

```php
use App\View\Components\HelloComponent;

return Blade::renderComponent(new HelloComponent('Julian Bashir'));
```

### Checked / Selected Blade Directives

_Checked and selected Blade directives were contributed by [Ash Allen](https://github.com/ash-jc-allen) and [Taylor Otwell](https://github.com/taylorotwell)_.
Expand Down

0 comments on commit 434a8df

Please sign in to comment.