A lot of things.
This commit is contained in:
@@ -18,6 +18,11 @@ class EntryController extends Controller
|
||||
return view('entries.index');
|
||||
}
|
||||
|
||||
public function section_redirect(string $section)
|
||||
{
|
||||
return redirect( databaseRoute( ['types' => [ $section ] ] ) );
|
||||
}
|
||||
|
||||
public function show(string $section, Entry $entry): View
|
||||
{
|
||||
if (!in_array($section, self::SECTION_TYPES))
|
||||
@@ -48,4 +53,15 @@ class EntryController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function drafts(): View
|
||||
{
|
||||
$drafts = Entry::where('user_id', \Auth::user()->user_id )
|
||||
->where('state', 'draft')
|
||||
->with('game.platform', 'status')
|
||||
->orderBy('updated_at', 'desc')
|
||||
->paginate(20);
|
||||
|
||||
return view('entries.drafts', compact('drafts'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user