Hi @jakub003,
I've done livewire both ways. And it really depends for me on the size of the project.
Here is one now. Please forgive the mess, I haven't refactored yet to clean things up...
Http\Livewire\
AssignmentIndex.php
BusinessIndex.php
BusinessShow.php
DealCalculatorShow.php
ListingShow.php
ListingsIndex.php
PeopleLookup.php
ProjectIndex.php
ProjectShow.php
ReplyIndex.php
ReplyModal.php
ReplyShow.php
Test.php
TodoItemAdd.php
TodoItemShow.php
TodoList.php // probably will rename to TodoListIndex.php
TodoSet.php // probably will rename TodoSetIndex.php but I dont quite like that either.
ValuationCalculator.php
ValuationShow.php
// of course these could go into a traits folder...
WithAuthRedirects.php
WithMoney.php
WithMorphables.php
WithSorting.php
WithStripTags.php
The thing I don't like about nesting them is the duplicate naming.
Reply/ReplyIndex.php
But a sure way to get confused is to
Reply/Index.php // definitely don't do this
So I may go in and nest them anyway, Mainly by model.
For me that happens faster in the views because I tend to have more views than "Controllers".
...Views
api
auth
components
financial-statements
layouts
legal
profile
todo /* a look at when it merited creating directory... */
_items.blade.php
_items-header.blade.php
_set-todo-list.blade.php
add.blade.php
item.blade.php
list.blade.php
set.blade.php
valuation-report
vendor
_sort-icon.blade.php
about.blade.php
assignment-index.blade.php
business-create.blade.php
business-index.blade.php
business-show.blade.php
buying-criteria.blade.php
contact.blade.php
dashboard.blade.php
deal-calculator.blade.php
home.blade.php
listing-show.blade.php
listings-index.blade.php
navigation-menu.blade.php
news.blade.php
people-lookup.blade.php
process.blade.php
project-index.blade.php
project-show.blade.php
reply-index.blade.php
reply-modal.blade.php
reply-show.blade.php
test.blade.php
valuation-calculator.blade.php
valuation-show.blade.php
