ANY IDEA How I can Create other bread for the same table with a different condation

Posted In Voyager
  • tag-dev 11 months ago
    **	Hello AND Thanks Voyager Team **
    * I need to show data from the same table Order with a deferent condations 
    * i created custom controller OrdersController for this bread and working fine with Order::where('active, 1')
    **I NEED TO MAKE AND NEW MENU TO SHOW DATA LIKE Order::where('active, 0) FOR THE SAME TABLE  **
    
    **WHAT I DID **
    1.  made a new route('order/active', '[email protected]');
    2. Created Menu For This route
    3. i created a new method in this custom controller showNotActiveOrders
    4. i copied index method content of a bread and put it in showNotActiveOrders 
    
    ** i got  this error **
    
    Trying to get property 'model_name' of non-object
    
    **HOW CAN I DO THIS IDEA IN MY APP**
    make a menu to show active orders  and other menu to show not active orders
    
    
    
    Thanks Again Voayger Team
    

    ** Hello AND Thanks Voyager Team **

    • I need to show data from the same table Order with a deferent condations
    • i created custom controller OrdersController for this bread and working fine with Order::where('active, 1') **I NEED TO MAKE AND NEW MENU TO SHOW DATA LIKE Order::where('active, 0) FOR THE SAME TABLE **

    **WHAT I DID **

    1. made a new route('order/active', '[email protected]');
    2. Created Menu For This route
    3. i created a new method in this custom controller showNotActiveOrders
    4. i copied index method content of a bread and put it in showNotActiveOrders

    ** i got this error **

    Trying to get property 'model_name' of non-object

    HOW CAN I DO THIS IDEA IN MY APP make a menu to show active orders and other menu to show not active orders

    Thanks Again Voayger Team

  • ambe-alleyne 3 months ago
    I need to get the all ideas that was about the cooking this have the all formation along with the all formats on it. If you want to bake the same bread you will visit [https://mhthemes.com/blog/online-proofreading-tools-error-free-writing/](https://mhthemes.com/blog/online-proofreading-tools-error-free-writing/) this was one of the famous food sites that have all the recipes on it.

    I need to get the all ideas that was about the cooking this have the all formation along with the all formats on it. If you want to bake the same bread you will visit https://mhthemes.com/blog/online-proofreading-tools-error-free-writing/ this was one of the famous food sites that have all the recipes on it.

  • milton-leaman 2 months ago
    This is one of the most important aspects connected to the mentioned point of view.

    This is one of the most important aspects connected to the mentioned point of view.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)