<?php namespace App; use Illuminate\Database\Eloquent\Model as Eloquent; class Model extends Eloquent { /** * These fields may not be mass assigned. * * @var array */ protected $guarded = ['user_id']; }