Open in app
Amir Yousefi
359 Followers
About

Sign in

359 Followers
About
Open in app
Thank you, excellent post, Can you please tell me how to take it further and add permissions like …
9
1

Mohammed Hamimed

Amir Yousefi

Amir Yousefi

Oct 6, 2019·1 min read

To write such custom permission rules, I suggest you use Laravel form requests.
https://laravel.com/docs/6.x/validation#form-request-validation

If you are familiar with FormRequest, there are two methods inside it.
You can use the auth method. Inside that method, you have access to the authenticated user. You can implement your logic inside the auth method.

Written by

Amir Yousefi

Making Impacts using Information Technology

More from Amir Yousefi

Making Impacts using Information Technology

More From Medium

Laravel authorization and roles permission management

Amir Yousefi in The Startup

Telegram Bot With Python for Todoist

Amir Yousefi in The Startup

How to Get Data From Telegram Using Python

Amir Yousefi in Better Programming

4 things that every development team need to mind

Amir Yousefi in The Startup

Object-Oriented Programming is The Biggest Mistake of Computer Science

Ilya Suzdalnitski

You Are Being Lied to About Inflation. It Hasn’t Been 2% for 30 Years (Here’s Proof).

Tim Denning in The Ascent

Now Is the Perfect Time to Ruin Donald Trump’s Life

Michael Arceneaux in LEVEL

The Bitcoin Dream Is Dead

James Surowiecki in Marker

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store