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