April 2026 waren Wirtschaft Feedback
This commit is contained in:
parent
02f2a4c23e
commit
9ce711d6b2
167 changed files with 25278 additions and 8518 deletions
21
app/Repositories/ProductionRepository.php
Normal file
21
app/Repositories/ProductionRepository.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Production;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
class ProductionRepository
|
||||
{
|
||||
/**
|
||||
* @return Collection<int, Production>
|
||||
*/
|
||||
public function listForIndex(): Collection
|
||||
{
|
||||
return Production::query()
|
||||
->with(['product', 'location', 'producedByUser'])
|
||||
->orderByDesc('produced_at')
|
||||
->orderByDesc('id')
|
||||
->get();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue