Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel hiding attributes JSON

//Add the field into $hidden attribute of your Model
class MyModel extends Model
{
    protected $hidden = ['hidden_field_name'];
}
 
PREVIOUS NEXT
Tagged: #laravel #hiding #attributes #JSON
ADD COMMENT
Topic
Name
5+7 =