for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Okipa\LaravelModelJsonStorage;
use Illuminate\Support\Collection;
trait BuildsQueriesOverride
{
/**
* Execute the query as a "select" statement.
*
* @param array $columns
* @return Collection
*/
public abstract function get(array $columns = ['*']);
* Execute the query and get the first result.
* @return Model|null
public function first(array $columns = ['*'])
return $this->get($columns)->first();
}