Leonid Nikitin
b7d0a2453e
Otherwise phpstorm doesn't understand the paths correctly. He thinks that this is not a complete application, but a package. And when creating a class, the namespace indicates “app” with a small letter, but should be “App”.
9 lines
490 B
PHP
9 lines
490 B
PHP
@can('create', \App\Models\User::class)
|
|
<div class="mb-4">
|
|
<a href="{{ route('admin.users.create') }}" class="btn btn-secondary d-inline-flex align-items-center me-2">
|
|
<svg class="icon icon-xs me-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path></svg>
|
|
{{ __('Create') }}
|
|
</a>
|
|
</div>
|
|
@endcan
|