1 | <?php namespace Arcanesoft\Seo\Http\Controllers\Admin; |
||
14 | class SpammersController extends Controller |
||
15 | { |
||
16 | /* ------------------------------------------------------------------------------------------------ |
||
17 | | Properties |
||
18 | | ------------------------------------------------------------------------------------------------ |
||
19 | */ |
||
20 | /** |
||
21 | * The spam blocker instance. |
||
22 | * |
||
23 | * @var \Arcanedev\SpamBlocker\Contracts\SpamBlocker |
||
24 | */ |
||
25 | protected $blocker; |
||
26 | |||
27 | /** |
||
28 | * Number of items per page for pagination. |
||
29 | * |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $perPage = 50; |
||
33 | |||
34 | /* ------------------------------------------------------------------------------------------------ |
||
35 | | Constructor |
||
36 | | ------------------------------------------------------------------------------------------------ |
||
37 | */ |
||
38 | /** |
||
39 | * MetasController constructor. |
||
40 | * |
||
41 | * @param \Arcanedev\SpamBlocker\Contracts\SpamBlocker $blocker |
||
42 | */ |
||
43 | public function __construct(SpamBlocker $blocker) |
||
52 | |||
53 | /* ------------------------------------------------------------------------------------------------ |
||
54 | | Main Functions |
||
55 | | ------------------------------------------------------------------------------------------------ |
||
56 | */ |
||
57 | /** |
||
58 | * List all the spammers. |
||
59 | * |
||
60 | * @param \Illuminate\Http\Request $request |
||
61 | * |
||
62 | * @return \Illuminate\View\View |
||
63 | */ |
||
64 | public function index(Request $request) |
||
73 | |||
74 | /* ------------------------------------------------------------------------------------------------ |
||
75 | | Other Functions |
||
76 | | ------------------------------------------------------------------------------------------------ |
||
77 | */ |
||
78 | /** |
||
79 | * Paginate the collection. |
||
80 | * |
||
81 | * @param \Illuminate\Support\Collection $data |
||
82 | * @param \Illuminate\Http\Request $request |
||
83 | * @param int $perPage |
||
84 | * |
||
85 | * @return \Illuminate\Pagination\LengthAwarePaginator |
||
86 | */ |
||
87 | protected function paginate(Collection $data, Request $request, $perPage) |
||
100 | } |
||
101 |