in php nova i have this route Route::get('/articoli/create/{post?}',…
- User
in php nova i have this route Route::get('/articoli/create/{post?}', PostCreate::class)->name('create-post'); where should i look for the blade template?
- Assistant
- User
where can i find the view?
- Assistant
Based on the provided Livewire component
App\Http\Livewire\Back\Post\PostCreate, the view you're asking about is located at:resources/views/livewire/back/post/post-create.blade.phpHere's a breakdown of how this works:
- Livewire components follow a convention that ties the component class to a Blade view. The naming convention converts the namespace and class name into a kebab-case path.
- In your case, the namespace
App\Http\Livewire\Back\Postand the class namePostCreatetogether point tolivewire/back/post/post-createas the view path. - The actual Blade file is then expected to be in the
resources/viewsdirectory followed by the path deduced from the naming convention, resulting in the full path outlined above. - Any data passed from the Livewire component using the
renderfunction (like$this->postin your example) can be accessed directly in the Blade template.
If you need to edit or review how the "Create Post" page is laid out or functions, you would open that Blade template file and modify it as necessary. Remember, since it's a Livewire component view, you can make use of all Livewire directives and features directly within it, enabling a rich, dynamic, and interactive user interface.