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

New fix for loading components views #2

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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