<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Models on seth-shi</title><link>https://sethix.com/tags/models/</link><description>Recent content in Models on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 27 Mar 2018 12:53:51 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/models/index.xml" rel="self" type="application/rss+xml"/><item><title>Permission Control via Routing in Laravel (Not Limited to Laravel, Just a Conceptual Approach)</title><link>https://sethix.com/posts/2018032712/</link><pubDate>Tue, 27 Mar 2018 12:53:51 +0800</pubDate><guid>https://sethix.com/posts/2018032712/</guid><description>Start Permission design is a crucial feature for backend management systems. PHP already has many mature packages for this purpose, so we don&amp;rsquo;t need to reinvent the wheel (though you certainly can if preferred).
PS Here are two common historical approaches for permission verification:
Verify required permissions individually on each page Centralized verification via middleware First, let&amp;rsquo;s examine a simplified database schema (retaining only critical fields) with its ER diagram: Database Model Diagram (Note: In this design, users don&amp;rsquo;t directly possess permissions but inherit them through roles.</description></item></channel></rss>