-
| 
         Hello, is there a way to use the new automatic scoping in resource routes? The following isn't working: If isn't wouldn't it be a nice feature?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            simonhir
          
      
      
        Jul 12, 2020 
      
    
    Replies: 2 comments 4 replies
-
| 
         You need to use the API like this: Route::apiResource('instances/{instance:id}/projects', 'ProjectController')->except('destroy'); | 
  
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            -
| 
         To use the auto scoping feature you need to replace the resource route parameter.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        simonhir
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
To use the auto scoping feature you need to replace the resource route parameter.