@@ -29,6 +29,9 @@ discard block |
||
29 | 29 | $this->makeModel(); |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @return string |
|
34 | + */ |
|
32 | 35 | abstract public function model(); |
33 | 36 | |
34 | 37 | public function all($columns = ['*']) |
@@ -96,6 +99,9 @@ discard block |
||
96 | 99 | return $this->model->findOrCreate($data); |
97 | 100 | } |
98 | 101 | |
102 | + /** |
|
103 | + * @param string $attribute |
|
104 | + */ |
|
99 | 105 | public function findBy($attribute, $value, $columns = array('*')) |
100 | 106 | { |
101 | 107 | $this->applyCriteria(); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Afrittella\BackProject\Http\Controllers; |
4 | 4 | |
5 | -use Afrittella\BackProject\Exceptions\NotFoundException; |
|
6 | 5 | use Afrittella\BackProject\Http\Requests\AttachmentAdd; |
7 | 6 | use Afrittella\BackProject\Repositories\Attachments; |
8 | 7 | use Afrittella\BackProject\Repositories\Criteria\Attachments\ByUser; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Get similar slugs |
38 | - * @param $slug |
|
38 | + * @param string $slug |
|
39 | 39 | * @param $id |
40 | 40 | * @return mixed |
41 | 41 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Afrittella\BackProject\Services\BackProject; |
11 | 11 | use Afrittella\BackProject\Services\SlugGenerator; |
12 | 12 | use Illuminate\Support\ServiceProvider; |
13 | -use Illuminate\Routing\Router; |
|
14 | 13 | use function Symfony\Component\HttpKernel\Tests\controller_func; |
15 | 14 | |
16 | 15 |