Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9ffdc1

Browse filesBrowse files
add template variables to scope (#55830)
1 parent 89a64cd commit f9ffdc1
Copy full SHA for f9ffdc1

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎src/Illuminate/Database/Eloquent/Scope.php

Copy file name to clipboardExpand all lines: src/Illuminate/Database/Eloquent/Scope.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ interface Scope
77
/**
88
* Apply the scope to a given Eloquent query builder.
99
*
10-
* @param \Illuminate\Database\Eloquent\Builder $builder
11-
* @param \Illuminate\Database\Eloquent\Model $model
10+
* @template TModel of \Illuminate\Database\Eloquent\Model
11+
*
12+
* @param \Illuminate\Database\Eloquent\Builder<TModel> $builder
13+
* @param TModel $model
1214
* @return void
1315
*/
1416
public function apply(Builder $builder, Model $model);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.