User Roles: Many Fields in Users, or Separate Tables?

Share
Laravel Daily
Published at : 02 Nov 2021
6147 views
344
13

Today I'm answering one question from the comments, with a demo example. In my experience, it's no big deal to have 10-20 extra fields in the Users table. What is your experience?

Repository: https://github.com/LaravelDaily/Laravel-Users-Admin-Doctor-Patient
Eloquent Local Scopes: https://laravel.com/docs/8.x/eloquent#local-scopes

- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Purchase my Livewire Kit: https://livewirekit.com
- View Laravel Code Examples: https://laravelexamples.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter
Roles:FieldsUsers,

A visit from the Blue 300E - Not a how to, lots missing, just entertainment

A visit from the Blue 300E - Not a how to, lots missing, just entertainment

Regression with categorical independent variables

Regression with categorical independent variables

Why Are Black People Stereotyped for Liking Chicken? - Michael Che

Why Are Black People Stereotyped for Liking Chicken? - Michael Che

Google Logo Intro Compilation - balls, jumps, cubes and outlines

Google Logo Intro Compilation - balls, jumps, cubes and outlines

The Economy is Completely Out of Control - Christmas is Cancelled

The Economy is Completely Out of Control - Christmas is Cancelled

WHO IS MOST LIKELY TO... | We seriously exposed each other

WHO IS MOST LIKELY TO... | We seriously exposed each other

Vineyard Worship - 24/7 Christmas Worship Music with Crackling Fireplace Yule Log

Vineyard Worship - 24/7 Christmas Worship Music with Crackling Fireplace Yule Log

DJ TIPS: FREE STRATEGIES TO PROMOTE YOUR MIXES AT NO COST

DJ TIPS: FREE STRATEGIES TO PROMOTE YOUR MIXES AT NO COST

Channel update (the numerous name changes)

Channel update (the numerous name changes)

PRIMEIRO ROLE DE RANGER EM NOVA CONFIGURAÇÃO!!!

PRIMEIRO ROLE DE RANGER EM NOVA CONFIGURAÇÃO!!!

A bit of Rock and Roll

A bit of Rock and Roll

They Could Not

They Could Not

A B C D E.. F U!(Thats, Like, A Hundred Miles AU)(If Tommy visited Dream one last time)(Tommy angst)

A B C D E.. F U!(Thats, Like, A Hundred Miles AU)(If Tommy visited Dream one last time)(Tommy angst)

YOUR 2 MINUTES CAN CHANGE YOUR WHOLE LIFE👉 IT'S UNBELIEVABLE GOD'S MESSAGE!! #228

YOUR 2 MINUTES CAN CHANGE YOUR WHOLE LIFE👉 IT'S UNBELIEVABLE GOD'S MESSAGE!! #228

🥳PET SIMULATOR X JUST MADE EVERYONE HAPPY BY DOING THIS...! (Roblox)

🥳PET SIMULATOR X JUST MADE EVERYONE HAPPY BY DOING THIS...! (Roblox)

Bodhran and Taps - Lyme, NH, 2014

Bodhran and Taps - Lyme, NH, 2014

How to Pronounce Subtle? (CORRECTLY) Meaning & Pronunciation

How to Pronounce Subtle? (CORRECTLY) Meaning & Pronunciation

How to Communicate with a Person Affected by Alzheimer's Disease

How to Communicate with a Person Affected by Alzheimer's Disease

Françoise Hardy - Le Large (Clip officiel)

Françoise Hardy - Le Large (Clip officiel)

How to select stocks ? I For Beginners I   By Siddharth Bhanushali

How to select stocks ? I For Beginners I By Siddharth Bhanushali

Viral Clip Of Runaway Airport Luggage Is The Pixar Film We Needed | Seditionist Roundup Round Up

Viral Clip Of Runaway Airport Luggage Is The Pixar Film We Needed | Seditionist Roundup Round Up

How to Make a Manhattan | a simple classic cocktail recipe

How to Make a Manhattan | a simple classic cocktail recipe

BREAK Of STRUCTURE Or LIQUIDITY Grab? ( EASY METHOD ) [ SMART MONEY CONCEPTS]  [ BANK ORDERS ]

BREAK Of STRUCTURE Or LIQUIDITY Grab? ( EASY METHOD ) [ SMART MONEY CONCEPTS] [ BANK ORDERS ]

Lily Rose - Stronger Than I Am (Lyric Video)

Lily Rose - Stronger Than I Am (Lyric Video)

Dum Dum Girls - Coming Down

Dum Dum Girls - Coming Down

"These vaccines are unlikely to "completely sterilize" a population. Professor Sir John Bell, SAGE!

"These vaccines are unlikely to "completely sterilize" a population. Professor Sir John Bell, SAGE!

Money Mantras | Money Comes Easily and Frequently | Adam Carroll: Speaker, Author and Consultant

Money Mantras | Money Comes Easily and Frequently | Adam Carroll: Speaker, Author and Consultant

41 Forever: Dirk Nowitzki Jersey Retirement Ceremony

41 Forever: Dirk Nowitzki Jersey Retirement Ceremony

SQUID GAME RED VS BLUE CARD || Color Challenge! Last To STOP Eating WINS By 123 GO! CHALLENGE

SQUID GAME RED VS BLUE CARD || Color Challenge! Last To STOP Eating WINS By 123 GO! CHALLENGE

Blue Kurper ( Tilapia Oreochromis/Mossambica ) female protecting her offspring

Blue Kurper ( Tilapia Oreochromis/Mossambica ) female protecting her offspring

How does the VITAL PERK work in Warzone Pacific (Caldera)?

How does the VITAL PERK work in Warzone Pacific (Caldera)?

Hero Girl Takes To The Air! | Hero Dad | Kids Shows Free!

Hero Girl Takes To The Air! | Hero Dad | Kids Shows Free!

BREAKING NEWS! Disneyland Stops Selling DREAM KEYS And INCREASES Ticket & Parking Prices

BREAKING NEWS! Disneyland Stops Selling DREAM KEYS And INCREASES Ticket & Parking Prices

How to Change Your Life in 3 Weeks [ by 2022 ]

How to Change Your Life in 3 Weeks [ by 2022 ]

LOCK PICKING SHOP TEACHER 755 tubalcain

LOCK PICKING SHOP TEACHER 755 tubalcain

Taxation Lectures : How To Calculate Chargeable Income | ICAG | ACCA-UK - Introduction cfa

Taxation Lectures : How To Calculate Chargeable Income | ICAG | ACCA-UK - Introduction cfa

Better replacement for Ole Gunnar Solskjaer: Antonio Conte or Zinedine Zidane? | ESPN FC Extra Time

Better replacement for Ole Gunnar Solskjaer: Antonio Conte or Zinedine Zidane? | ESPN FC Extra Time

Barely Alive - Flak Jacket

Barely Alive - Flak Jacket

IMPOSSIBLE BODY TRICKS 97% CAN’T DO || Only 3% Can! Tricks To Impress Friends By 123 GO! CHALLENGE

IMPOSSIBLE BODY TRICKS 97% CAN’T DO || Only 3% Can! Tricks To Impress Friends By 123 GO! CHALLENGE

I BEAT THE EVIL BABY! | The Baby In Yellow

I BEAT THE EVIL BABY! | The Baby In Yellow

Stephen A. & JJ Redick debate whether NBA players fear LeBron | First Take

Stephen A. & JJ Redick debate whether NBA players fear LeBron | First Take

HOW TO SNEAK FOOD INTO DENTIST, HOSPITAL AND ANYWHERE | 100+ Funny School Supplies by 123GO! SCHOOL

HOW TO SNEAK FOOD INTO DENTIST, HOSPITAL AND ANYWHERE | 100+ Funny School Supplies by 123GO! SCHOOL

Kids Being Kids | Just for Laughs Compilation

Kids Being Kids | Just for Laughs Compilation

news every.藤井貴彦、2021年12月03日陣内貴美子がきょう一日を分かりやすく【LIVE】

news every.藤井貴彦、2021年12月03日陣内貴美子がきょう一日を分かりやすく【LIVE】

Snowy Window Night at Coffee Shop Ambience with Relaxing Jazz Music 24/7

Snowy Window Night at Coffee Shop Ambience with Relaxing Jazz Music 24/7

RICH VS BROKE STUDENTS || How To Become Popular by 123GO! SCHOOL

RICH VS BROKE STUDENTS || How To Become Popular by 123GO! SCHOOL

Flexible Gymnast Gets INTENSE Chiropractic Adjustment 🤸🏻‍♀️

Flexible Gymnast Gets INTENSE Chiropractic Adjustment 🤸🏻‍♀️

Drown (Lyrics)- Tyler Joseph

Drown (Lyrics)- Tyler Joseph

HealthWatch: Some Allergy Sufferers With Asthma Have Lower Risk Of COVID-19 Infection

HealthWatch: Some Allergy Sufferers With Asthma Have Lower Risk Of COVID-19 Infection