Comments (3)
Betul filter login di file
Filters.php
dihapus. Tapi itu akan diterapkan secara global, agar saat masuk dashboard tetap dibatasi login bisa diberi filter di fileRoutes.php
bagian admin routes group.// Admin $routes->group('admin', ['filter' => 'login'], function (RouteCollection $routes) { // Admin dashboard ... // ... });
Yup, bisa dengan cara itu. Tapi sepertinya di file yang sama, app\Config\Filters.php
pada bagian bawah sudah ada filter yang bekerja untuk mengalihkan halaman dashboard admin:
/**
* List of filter aliases that should run on any
* before or after URI patterns.
*
* Example:
* 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']]
*/
public array $filters = [
'login' => ['before' => ['admin/', 'admin/*', 'register/']]
];
Jadi, sebelum URI admin/
, admin/*
, atau register/
diakses, pasti akan dialihkan ke halaman login
. Atau, apakah prinsip kerjanya berbeda?
from absensi-sekolah-qr-code.
Betul filter login di file Filters.php
dihapus.
Tapi itu akan diterapkan secara global, agar saat masuk dashboard tetap dibatasi login bisa diberi filter di file Routes.php
bagian admin routes group.
// Admin
$routes->group('admin', ['filter' => 'login'], function (RouteCollection $routes) {
// Admin dashboard ...
// ...
});
from absensi-sekolah-qr-code.
Ya, cara kerjanya kurang lebih sama.
Saya baru sadar sudah menerapkan filter berdasarkan URI pattern.
Kalau filter yang di Routes.php
itu supaya bisa lebih spesifik menerapkan filter untuk route / route group tertentu.
from absensi-sekolah-qr-code.
Related Issues (20)
- scan qr siswa HOT 7
- bug composer HOT 2
- ambil models TipeUser tidak ditemukan HOT 1
- Generate QR Code HOT 3
- Halaman Petugas HOT 3
- Login Gagal App Versi 1.5.2 HOT 1
- Failed to send activation message
- Module Report HOT 1
- saran
- Fitur Import/Export data & fitur foto siswa
- Scan QR masuk dan keluar HOT 3
- Mohon maaf Kenapa Begini ya? HOT 7
- Cara ganti nama sekolah HOT 2
- Fitur pencarian siswa tanpa login, mass update & delete data siswa/guru HOT 2
- Tampilan jadi berubah HOT 1
- Terdapat bug saat akan edit data siswa HOT 1
- Scan QR | Internal Server Eror HOT 2
- Generate QR Code
- Generate QR Code Failed to load resource: the server responded with a status of 500 () generate [BUG] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from absensi-sekolah-qr-code.