Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- class RedirectController extends Controller
- {
- public function cek() {
- if (auth()->user()->role_id === 1) {
- return redirect('/superadmin');
- } else {
- return redirect('/pegawai');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement