Laravel Best Practices
Published At:
2023-06-13
Updated At: 2023-06-22
Note created on: 2023-05-05 07:45
Single responsibility principle
A class and a method should have only one responsibility.
Bad:
public function getFullNameAttribute(): string { if (auth()->user()...