Answers for "laravel allow all fillable"

PHP
0

laravel allow all fillable

protected $hidden    	= ['updated_at'];
    protected $guarded   	= ['updated_at'];
Posted by: Guest on June-01-2021
0

laravel allow all fillable

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Audio extends Model
{
    use HasFactory;
    //Add this below
    protected $hidden    	= ['updated_at'];
    protected $guarded   	= ['updated_at'];
}
Posted by: Guest on June-01-2021

Code answers related to "laravel allow all fillable"

Browse Popular Code Answers by Language