Skip to content

Commit 46029cf

Browse files
authored
Paginators should be built from Contracts
Follow up to laravel#19328, paginators should not only be built of the container, they should use the interface. This is more correct and gives developers more flexibility in their implementation.
1 parent c30d094 commit 46029cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Concerns/BuildsQueries.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Illuminate\Database\Concerns;
44

55
use Illuminate\Container\Container;
6-
use Illuminate\Pagination\Paginator;
7-
use Illuminate\Pagination\LengthAwarePaginator;
6+
use Illuminate\Contracts\Pagination\Paginator;
7+
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
88

99
trait BuildsQueries
1010
{

0 commit comments

Comments
 (0)