Laravel+Filament V2 First Time Project (made a few simple blogs in Laravel)
Imagine something like this:
Table 1 "Company"
columns: id, name
Table 2 "Company Members"
columns: id, company_id, total_members, members_10s, members_20s
Table 3 "Company Achievements"
columns: id, company_id, scale, projects
This method requires my tables to have same fields, which just does not make sense to me (how can I put number of members into the same field as company name?).
ANY video I managed to find on YouTube ALWAYS has literally one table for users and one table for entity and does not have anything specific for this mess.
I've been staring at my app\Http\Controllers\CompanyController.php for the past 2 days, but staring seems to have done very little to resolve my conundrum
$companies = Company::query()
->where('created_at', '!=', NULL)
->orderBy('created_at', 'desc')
->paginate();
$members = CompanyMembers::query()
>select('')
->where('company_id', 'LIKE', )
->get();
$achievements = CompanyAchievements::query()
->select('')
->where('', 'LIKE', )
->get()
$companyData = $companies->union($members)->union($achievements)->get();
Please, show me the way
Maybe this and this are my way out of this one, but I'm not sure if that's the go-to way when it comes to TALL stack and Filament