jhorlima/mb-repository

There is no license information available for the latest version (1.0.1) of this package.

Modulo de Repositório para o MocaBonita

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-framework-plugin

1.0.1 2018-01-10 13:16 UTC

README

#Repositório - MocaBonita

Modulo de Repositório para o MocaBonita

$ composer require jhorlima/mb-repository
<?php

namespace Projeto\Repository;

use Projeto\Model\Usuarios;
use MbRepository\BaseRepository;

class UsuariosRepository extends BaseRepository
{
    public function model()
    {
        return Usuarios::class;
    }
}

Cada parametro pode ser obtido através do método

<?php

use Projeto\Repository\UsuariosRepository;


$repository = new UsuariosRepository();

var_dump($repository->all());