Skip to content

Instantly share code, notes, and snippets.

<?php
/* Example of a base model, which uses 0 instead of null value of the deleted_at as the deleted state when using soft-delete */
class BaseModel extends \Illuminate\Database\Eloquent\Model
{
/**
* Get a new query builder for the model's table.
*
* @param bool $excludeDeleted