1. Go to this page and download the library: Download knash94/repositories library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
public function all();
public function count();
public function countWhere($column, $value);
public function findById($id);
public function updateById($id, array $attributes);
public function create(array $attributes);
public function get();
public function groupBy($columns);
public function limit($limit);
public function orderBy($column, $direction = 'asc');
public function select($columns = ['*']);
public function where($column, $operator = null, $value = null, $boolean = 'and');
public function createMultiple(array $data);
public function with($relations);