Year: 2018

  • Laravel Route with variable

    Hello to all, welcome to therichpost.com. In this post, I will tell you, Laravel Route with variable. Like I always say that laravel is the best Mvc php framework. Here is the working route code and you can set variable in laravel routes and use it anywhere: //web.php code: Route::get(‘/test/{id?}’, function ($id = 1) {…

    Laravel 7.2 routing with route group auth guard check with prefix
  • How to Show only featured products in Woocommerce shop page?

    Hello, welcome to therichpost.com. In this post, I will tell you, How to Show only featured products in Woocommerce shop page?  WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the…

    woocommerce
  • Laravel query with or condition between multiple dates check

    Hello to all, welcome to therichpost.com. In this post, I will tell you, Laravel query with or condition between multiple dates check. Like I always say that laravel is the best Mvc php framework. Here is the working and tested query for laravel or conditions between multiple dates: $bookingChk = DB::table(‘users’) ->select(‘id’) ->where(‘staff_id’, “=”, $req->staffdetail)…

    Laravel 7.2 routing with route group auth guard check with prefix
  • How to print query in laravel?

    Hello to all, welcome to therichpost.com. In this post, I will tell you, How to print query in laravel? Like I always say that laravel is the best Mvc php framework. Here is the working code to print query in laravel: DB::enableQueryLog(); $user = DB::table(‘user’)->where(’email’,’!=’,’test’)->get(); $query = DB::getQueryLog(); $query = end($query); print_r($query); die();   or, you…

    Laravel 7.2 routing with route group auth guard check with prefix
  • Maximum checkbox checked by jquery

    Hello, welcome to therichpost.com. In this post, I will tell you,  how to check Maximum checkbox checked by jquery? I personally like jquery very much. Most of my code is full with jquery. When I stuck in php or other language then that stuckness I remove with jquery code Here is the working code to…

    jquery
  • WordPress hook Remove admin Pages if user not Super Admin

    Hello, welcome to therichpost.com. In this post, I will tell you, WordPress hook Remove admin Pages if user not Super Admin.  WordPress is the best cms. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the best thing about wordpress. Now I am…

    How to add custom meta title and meta description in Wordpress?
  • Woocommerce hook to Redirect single product pages to home page

    Hello, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook to Redirect single product pages to home page. WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the…

    woocommerce
  • Check duplicate values in php array

    Hello, welcome to therichpost.com. In this post, how to Check duplicate values in php array/ I personally like php ver much. PHP is the best web language. There are many cms and frameworks in PHP and WordPress is the best example. facebook also used PHPin it. Here is working code to check if array has duplicate…

    Php Preg_Match Pattern for Week Days Name
  • Easy way to use transaction in laravel

    Hello to all, welcome to therichpost.com. In this post, I will tell you, Easy way to use transaction in laravel.  Like I always say that laravel is the best Mvc php framework. DB::transaction() is used for multiple insert queries. I am using it with try and catch  and here is working and tested code: DB::beginTransaction();…

    Laravel 7.2 routing with route group auth guard check with prefix
  • WordPress 404 error page after form submission

    Hello, welcome to therichpost.com. In this post, I will tell you, WordPress 404 error page after form submission. WordPress is the best cms.  Today I faced one strange error in wordpress custom form submission. Today I have made custom form for user enter details and but when I submitted that form, I got wordpress 404…

    How to add custom meta title and meta description in Wordpress?