Add custom collection support for get and all methods (#903)

* Add custom collection support for get and all methods

* Only add get and all when using custom collection

* Use static instead of class name

* Add missing custom collection test with relation

* Use class reference over string

Co-Authored-By: Markus Podar <[email protected]>

* Fix when using class reference

Co-authored-by: Markus Podar <[email protected]>
This commit is contained in:
Daniel Mason
2020-04-19 07:49:23 +02:00
committed by GitHub
co-authored by Markus Podar
parent 18588eacf3
commit 6a27c5df68
4 changed files with 140 additions and 0 deletions
@@ -0,0 +1,10 @@
<?php
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Collections;
use Illuminate\Database\Eloquent\Collection;
class SimpleCollection extends Collection
{
}