Skip to content

Commit

Permalink
Merge pull request #2 from AXN-Informatique/develop
Browse files Browse the repository at this point in the history
New fix for loading components views
  • Loading branch information
forxer committed May 11, 2023
2 parents 3ee5f03 + b2d0090 commit 7fef2da
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,12 @@
Changelog
=========

9.0.2 (2023-05-11)
------------------

- New fix for loading components views


9.0.1 (2023-05-04)
------------------

Expand Down
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -285,3 +285,8 @@ You can style it for example like this:
}
```

In your forms you can indicate the required fields for example in this way:

```blade
{!! trans('misc.info_required_fields'); !!} <x-required-field-marker />
```
2 changes: 1 addition & 1 deletion resources/views/components/required-field-marker.blade.php
@@ -1,3 +1,3 @@
<span {{ $attributes->merge(['class' => 'required-field-marker']) }}>
{{ $symbol }}<span>{{ trans('misc.required') }}</span>
{!! $symbol !!}<span>{{ trans('misc.required_field') }}</span>
</span>
2 changes: 1 addition & 1 deletion src/Components/RequiredFieldMarker.php
Expand Up @@ -14,6 +14,6 @@ public function __construct(

public function render()
{
return view('tool-kit::components.required-field-marker.blade');
return view('tool-kit::components.required-field-marker');
}
}
5 changes: 5 additions & 0 deletions src/ServiceProvider.php
Expand Up @@ -8,6 +8,11 @@

class ServiceProvider extends BaseServiceProvider
{
public function register()
{
//
}

public function boot()
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'tool-kit');
Expand Down

0 comments on commit 7fef2da

Please sign in to comment.