Course: Model List Example

Create a new PHP file named CourseList.php in the my/Models/Courses folder.

For example, the CourseList.php file should look like this:

namespace My\Models\GDS;

use Boostack\Models\BaseList;
use My\Models\Courses\Course;

class CourseList extends BaseList
    const BASE_CLASS = Course::class;

    public function __construct()

In this simple example, the CourseList class will inherit all methods and functionalities from the BaseList class. You can extend the CourseList class to implement new methods and logic.