Skip to content

Extending Models

Thorazine edited this page Jul 24, 2017 · 2 revisions

A model is only called from a Module. So to extend a model you will first have to extend the module. And from there just call your new model which extends the default one.

<?php

namespace App\Models;

use Thorazine\Hack\Models\Carousel as BaseCarousel;

class Carousel extends BaseCarousel
{
    /**
     * Constructor
     */
    public function __construct()
    {
        parent::__construct();
    }
}