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”.
		
			
				
	
	
		
			8 lines
		
	
	
		
			590 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			590 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @csrf
 | |
| <x-volt.forms.input :title="__('validation.attributes.name')" name="name" type="text" :value="$role->name" required autofocus />
 | |
| <x-volt.forms.permissions_for_role :title="__('validation.attributes.permissions')" name="permissions[]" :value="$role->permissions->pluck('permission')->toArray()" :role="$role" />
 | |
| <x-volt.forms.input :title="__('validation.attributes.code')" name="code" type="text" :value="$role->code" :disabled="!empty($role->id)" required />
 | |
| @canany(['create', 'update'], $role)
 | |
|     <button class="btn btn-primary" type="submit">{{ __('Save') }}</button>
 | |
| @endcanany
 |