PHP Classes

File: app/Support/Repository/Commands/stubs/eloquent-criteria.stub

Recommend this page to a friend!
  Classes of Kevinralph M Tenorio   Lumen API PureMVC MultiCore Framework for PHP   app/Support/Repository/Commands/stubs/eloquent-criteria.stub   Download  
File: app/Support/Repository/Commands/stubs/eloquent-criteria.stub
Role: Application script
Content type: text/plain
Description: Eloquent Criteria Stub
Class: Lumen API PureMVC MultiCore Framework for PHP
Implements repository pattern using Laravel Lumen
Author: By
Last change: Invalid usage path
Date: 6 years ago
Size: 536 bytes
 

Contents

Class file image Download
<?php

namespace {{criteriaNamespace}};

use
App\Support\Repository\Contracts\CriteriaInterface;

/**
 * Class {{criteriaClassName}}
 *
 * @package {{criteriaNamespace}}
 */
class {{criteriaClassName}} implements CriteriaInterface
{
    public function
__construct()
    {

    }

   
/**
     * @param mixed $queryBuilder
     *
     * @return mixed
     */
   
public function apply($queryBuilder)
    {
       
// Do something with the query builder and return it.
       
return $queryBuilder;
    }
}