(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:
HDVinnie
2018-03-15 12:32:40 -04:00
parent eabf4a68ca
commit 2da7207d2b
51 changed files with 631 additions and 892 deletions

View File

@@ -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]);