Posts by Euclides Freire • 14 points
3 posts
-
0
votes1
answer40
viewsA: print array in the amount of values of another array
There is a Function in PHP that can help. Reference array_fill array_fill ( int $start_index , int $num , mixed $value ). And you can do a simple foreach with the two array. So the value to be…
-
-2
votes2
answers340
viewsQ: After the user logs out, he leaves, but if you click the back arrow of the browser he accesses again
The logout code [Standard] public function logout(Request $request) { $guard = $this->getGuard(); Auth::guard($guard)->logout(); $request->session()->flush(); return redirect('/'); }…
-
-3
votes1
answer108
viewsQ: How to create ACL with External Database in Laravel?
The application I’m making already has a database with the users' data. The levels I need are a 'Common User', a 'Manager' and an 'Admin'. The logic of having a user table, role, role_user,…