Author: therichpost
-
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)…
Written by
-
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…
Written by
-
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…
Written by
-
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…
Written by
-
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…
Written by
-
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…
Written by
-
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();…
Written by
-
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…
Written by
-
Add custom message to the woocommerce Order Completed Email
Hello, welcome to therichpost.com. In this post, I will tell you, Add custom message to the woocommerce Order Completed Email. 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 best…
Written by
-
How to remove public from laravel url?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to remove public from laravel url? Like I always say that laravel is the best Mvc php framework.’ Today we will remove public from laravel url and here are the steps: step 1 : copy all file from public and paste…
Written by