Answers for "laravel eloquent hide column"

PHP
2

Making visible or hidden attributes from Eloquent temporarily

$users = $users->makeVisible(['address', 'phone_number']);
$users = $users->makeHidden(['address', 'phone_number']);
Posted by: Guest on November-10-2020
-1

laravel hide columns

<?php

class User extends Eloquent {

     protected $hidden = array('password', 'token');

}
Posted by: Guest on May-22-2021

Code answers related to "laravel eloquent hide column"

Browse Popular Code Answers by Language