Middleware is a class that have special function in Laravel. Middleware placed in between the User and Apps. Before you can access the Apps, Middleware will do his job first. We can use Middleware to do several thing Do you authenticated? What is your role? Do you authorized? Can you perform this action? etc class MemberMiddleware…
Authentication
-
Antara perkara penting dalam membangunkan applikasi adalah sistem pengurusan akses maklumat atau pun authentication & authorization. Laravel telah memudahkan kerja kita dengan menyediakan scaffolding authentication nya tersendiri. Anda hanya perlu install sahaja. Tetapi untuk install sistem authentication ini ia perlu dilaksanakan pada fresh setup SAHAJA. Execute code berikut untuk install Auth php artisan make:auth untuk…
-
Basicly, Yii basic skeleton already come with aunthentication system which is very simple by checking username and password both admin or demo. The default authentication files is UserIdentity.php LoginForm.php SiteController.php Login.php