We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945882b commit 22419acCopy full SHA for 22419ac
docs/includes/eloquent-models/relationships/RelationshipController.php
@@ -8,7 +8,7 @@
8
use App\Models\Planet;
9
use Illuminate\Http\Request;
10
11
-class RelationshipController extends Controller
+class RelationshipController
12
{
13
private function oneToOne()
14
@@ -112,7 +112,7 @@ private function manyToManyDynamic()
112
$planet = Planet::first();
113
$explorers = $planet->visitors;
114
115
- $spaceExplorer = SpaceExplorer:first();
+ $spaceExplorer = SpaceExplorer::first();
116
$explored = $spaceExplorer->planetsVisited;
117
// end many-to-many dynamic property example
118
}
0 commit comments