mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-12 22:49:41 -06:00
(Update) Refactor General and Staff Controllers
- Remove all facades use besides mail
- Use Dependency Injection for Illuminate\Http\Request
- use helpers for auth, cache, validator, and more to rid of facades use
- use $request->input() over $request->get()
- use $request->isMethod('POST') over $request->getMethod('POST')
- general cleanup
This commit is contained in:
@@ -24,7 +24,7 @@ class InviteController extends Controller
|
||||
*/
|
||||
public function getInvites()
|
||||
{
|
||||
$invites = Invite::orderBy('created_at', 'DESC')->paginate(50);
|
||||
$invites = Invite::orderBy('created_at', 'DESC')->paginate(25);
|
||||
$invitecount = Invite::count();
|
||||
|
||||
return view('Staff.invites.index', ['invites' => $invites, 'invitecount' => $invitecount]);
|
||||
|
||||
Reference in New Issue
Block a user