Answers for "laravel hiding attributes JSON"

PHP
0

laravel hiding attributes JSON

//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
    protected $hidden = ['hidden_field_name'];
}
Posted by: Guest on January-14-2021

Browse Popular Code Answers by Language