Dynamic Routes with own controller

Posted In Voyager
  • frank-wolf 2 years ago
    How can I use the dynamic routes?
    I created a menu item and two sub-menu item in Menu Builder.
    
    - Posts
      - Active posts /admin/posts/{status}
      Route parameters field?
      - Inactive posts /admin/posts/{status}
      Route parameters field?
    
    I use PageController in Bread (Posts) so I copied index function from VoyagerBreadController.php and I want to get {status} from url slug.
    If I get e.g. /admin/posts/1 (that mean active posts) I will be able to complete the query for dataTypeContent.
    
    Is it possible?
    Laravel Version: 5.3
    Voyager Version: 0.11.12

    How can I use the dynamic routes? I created a menu item and two sub-menu item in Menu Builder.

    • Posts
      • Active posts /admin/posts/{status} Route parameters field?
      • Inactive posts /admin/posts/{status} Route parameters field?

    I use PageController in Bread (Posts) so I copied index function from VoyagerBreadController.php and I want to get {status} from url slug. If I get e.g. /admin/posts/1 (that mean active posts) I will be able to complete the query for dataTypeContent.

    Is it possible? Laravel Version: 5.3 Voyager Version: 0.11.12

  • mark 2 years ago
    Please share the output of `php artisan route:list`.

    Please share the output of php artisan route:list.

  • sofia-halford 1 year ago
    Controlling of routes is easy task for followers due to the usage of latest technology designed tools for this purpose. Students like to get help from [best thesis editing services](https://www.topreviewstars.com/how-to-hire-a-top-thesis-or-dissertation-editing-service/) and get lots of help without waste of time and money.

    Controlling of routes is easy task for followers due to the usage of latest technology designed tools for this purpose. Students like to get help from best thesis editing services and get lots of help without waste of time and money.

  • kathleen-swafford 1 year ago
    This is first time that I visit here. I found so many exciting matter in this particular blog, One thing I would like to request you that pls keep posting such type of informatics blog. [captain marvel jacket](https://www.moviesjacket.com/captain-marvel-jacket)

    This is first time that I visit here. I found so many exciting matter in this particular blog, One thing I would like to request you that pls keep posting such type of informatics blog. captain marvel jacket

  • kathleen-swafford 1 year ago
    Your writing very well and provide a lot of useful information. But if you tap water more than half as compared to another article, I would definitely be great [Captain Marvel Costume](https://www.hjackets.com/blog/captain-marvel-costume/)

    Your writing very well and provide a lot of useful information. But if you tap water more than half as compared to another article, I would definitely be great Captain Marvel Costume

  • daniel-lee 11 months ago
    The outstanding Aiden Pearce Watch Dogs black costume is with consideration equipped of pretend animal skin within the surprising shade and consists of inner Viscose lining. The wide get on my feet collar with front belted adjustment and belted cuffs, build this terrific Watch Dog animal skin waterproof is outstanding for casual parties, clubbing, Cosplay garment and best for any informal occasions to appear daring! Order currently and obtain worldwide shipping and thirty day a refund guarantee.
    [Aiden Pearce Trench Coat](https://www.topcelebsjackets.com/product/aiden-pearce-watch-dogs-coat)

    The outstanding Aiden Pearce Watch Dogs black costume is with consideration equipped of pretend animal skin within the surprising shade and consists of inner Viscose lining. The wide get on my feet collar with front belted adjustment and belted cuffs, build this terrific Watch Dog animal skin waterproof is outstanding for casual parties, clubbing, Cosplay garment and best for any informal occasions to appear daring! Order currently and obtain worldwide shipping and thirty day a refund guarantee. Aiden Pearce Trench Coat

  • patricia-sperry 3 months ago
    Yes, it is possible. I have made dynamic page of my website that is [halle berry leather jacket](https://leatherchase.com/black-halle-berry-leather-jacket-from-x-men-the-last-stand). Use this syntax id | slug | title | page_content for database and keep all pages in it. 
    
    Create a route like: 
    
    Route::get('/{slug}', array('as' => 'page.show', 'uses' => '[email protected]'));
    and acces the page using utl/link syntax. 

    Yes, it is possible. I have made dynamic page of my website that is halle berry leather jacket. Use this syntax id | slug | title | page_content for database and keep all pages in it.

    Create a route like:

    Route::get('/{slug}', array('as' => 'page.show', 'uses' => '[email protected]')); and acces the page using utl/link syntax.

  • malan-johnson 1 month ago
    If someone is looking for the best college to learn golf from the best coaches then must visit on [junior golf camps](http://juniorgolfcamps.com/)

    If someone is looking for the best college to learn golf from the best coaches then must visit on junior golf camps

  • apps-twisty 1 month ago
    We appreciate on your efforts and thanks for this inforamtion for us. [betternet review](https://twistyapps.com/)

    We appreciate on your efforts and thanks for this inforamtion for us. betternet review

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!