Skip to content

Instantly share code, notes, and snippets.

@roni-estein
Created November 19, 2018 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roni-estein/77d0a8b7a4ce3427c90bf236b1241cb9 to your computer and use it in GitHub Desktop.
Save roni-estein/77d0a8b7a4ce3427c90bf236b1241cb9 to your computer and use it in GitHub Desktop.
<?php
namespace App\Helpers;
use Illuminate\Database\Eloquent\Model as EloquentModel;
// This now makes a non abstract version of model so we can
// add macro's to model in certain situations like testing
class Model extends EloquentModel
{
protected $guarded = [];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment