Question : Allow mass assignment in Laravel
Answered by : muhammad-ariq-rafi
protected $guarded = ['entity_field_name', 'another_entity_field_name'];
Source : https://www.youtube.com/watch?v=HR_Piu6qtoI&list=PLFIM0718LjIWiihbBIq-SWPU6b6x21Q_2&index=8 | Last Update : Tue, 14 Jun 22