File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ parameters:
7
7
- src
8
8
9
9
# The level 8 is the highest level
10
- level : 5
10
+ level : 8
11
11
12
12
checkMissingIterableValueType : false
Original file line number Diff line number Diff line change 3
3
namespace OpenSoutheners \LaravelModelPermalink \Controllers ;
4
4
5
5
use Illuminate \Foundation \Auth \Access \AuthorizesRequests ;
6
+ use Illuminate \Http \RedirectResponse ;
6
7
use Illuminate \Routing \Controller ;
7
8
use Illuminate \Support \Facades \Response ;
8
9
9
10
class ModelPermalinkController extends Controller
10
11
{
11
12
use AuthorizesRequests;
12
13
13
- public function __invoke (string $ permalink )
14
+ /**
15
+ * Invoke controller action.
16
+ */
17
+ public function __invoke (string $ permalink ): RedirectResponse
14
18
{
15
19
/** @var class-string<\OpenSoutheners\LaravelModelPermalink\ModelPermalink> $model */
16
20
$ model = config ('model-permalink.model ' );
Original file line number Diff line number Diff line change 9
9
/**
10
10
* @property string $id
11
11
* @property string $uuid
12
+ * @property \OpenSoutheners\LaravelModelPermalink\PermalinkAccess $model
12
13
* @property string $model_id
13
14
* @property string $model_type
14
15
*/
@@ -35,6 +36,8 @@ public function uniqueIds()
35
36
36
37
/**
37
38
* Model that is being permalinked.
39
+ *
40
+ * @return \Illuminate\Database\Eloquent\Relations\MorphTo<\Illuminate\Database\Eloquent\Model, self>
38
41
*/
39
42
public function model (): MorphTo
40
43
{
You can’t perform that action at this time.
0 commit comments