Part 8: Make admin panel in Laravel 5.6

آشپزی آسان
آشپزی آسان
27 بار بازدید - 6 سال پیش - In Part 8, we protect
In Part 8, we protect our admin routes. In video, we protect our dashboard route so that no one can access it without logging into admin. There are two approaches to protect our routes :- 1) With Sessions 2) With Middleware 1) With Sessions :- We have started admin session at the time of successful login and then compared that Session variable in every admin function like in dashboard function in our case. This approach is the simplest approach that we used in most cases. In AdminController.php file,
6 سال پیش در تاریخ 1397/01/18 منتشر شده است.
27 بـار بازدید شده
... بیشتر