@@ -13,7 +13,7 @@ class ResourceRegistrar extends BaseResourceRegistrar
1313 *
1414 * @var string[]
1515 */
16- protected $ resourceDefaults = ['detail ' , 'search ' , 'mutate ' , 'operate ' , 'destroy ' , 'restore ' , 'forceDelete ' ];
16+ protected $ resourceDefaults = ['details ' , 'search ' , 'mutate ' , 'operate ' , 'destroy ' , 'restore ' , 'forceDelete ' ];
1717
1818 /**
1919 * The verbs used in the resource URIs.
@@ -29,7 +29,7 @@ class ResourceRegistrar extends BaseResourceRegistrar
2929 ];
3030
3131 /**
32- * Add the detail method for a resourceful route.
32+ * Add the details method for a resourceful route.
3333 *
3434 * @param string $name
3535 * @param string $base
@@ -38,13 +38,13 @@ class ResourceRegistrar extends BaseResourceRegistrar
3838 *
3939 * @return \Illuminate\Routing\Route
4040 */
41- protected function addResourceDetail ($ name , $ base , $ controller , $ options )
41+ protected function addResourceDetails ($ name , $ base , $ controller , $ options )
4242 {
4343 $ uri = $ this ->getResourceUri ($ name );
4444
4545 unset($ options ['missing ' ]);
4646
47- $ action = $ this ->getResourceAction ($ name , $ controller , 'detail ' , $ options );
47+ $ action = $ this ->getResourceAction ($ name , $ controller , 'details ' , $ options );
4848
4949 return $ this ->router ->get ($ uri , $ action );
5050 }
0 commit comments