HazzardWeb supports this item


This author's response time can be up to 1 business day.

449 comments found.

Hello i have a problem i have error when i install plugin https://leskits.com , i just follow the instruction

Rename the hazzard folder from src/ to Hazzard (with upper case H). Not sure how it got like this, I’ll re-upload the file on CodeCanyon.

PayPal memberships?

Hi, this feature is not supported.

It’s fixed now.

Hello HazzardWeb. Ur going to do some more nice updates on this script or are you working on a new project? :d

I’m working on a new project for Laravel. After that I’ll see if I could bring some of those features into this.


hdisouky Purchased


I am using this library to make database calls/changes through a script that is always running (i.e. in a while(true) loop)

The issue is that when I try to run any other scripts at the same time that ‘app/init.php’ in the header it never loads since it is waiting on the first script to finish, but it will never finish, and therefore it will never load script 2.

A workaround is that I run script 2 from a different browser, or incognito (private mode) and that will work. Is there a way that I can enable both scripts to run from the same browser?


Hi, I would need to see the code to understand how you’re doing this.


hdisouky Purchased

I have script1 that checks a mysql database and does some changes if needed. The code for script1 is inside a WHILE { ... } loop, so it never ends which is by design. When I want to run script2, which just regular checks, and database calls, it never loads because it is waiting on script1 to finish first.

Both scripts 1&2 have require_once ‘app/init.php’ lines at the top and when I remove it from script2, it runs with no issues. When I added the ‘app/init.php’ line and try to run script2 again while script1 is running, script2 never loads.

I think it has something to do with sessions… not sure!!


hdisouky Purchased

Hello, Another question, how do I query the Database with date variables. For example, I would like to do a select on a table and get all rows for the past 24 hours. In my table, I have a Created_date column. Here is a sample of my raw query, but it never works!! Can you please help

$users = DB::table('users')
         ->where('date_created', '>=' , "NOW() - INTERVAL 1 DAY")

Thanks, H

Hi, use DB::raw

->where('date_created', '>=' , DB::raw('NOW() - INTERVAL 1 DAY'))

hdisouky Purchased

This is why you are so amazing!!!

Perfect.. It worked like a charm. Thank you!

Can you say where is the App::url() value set? I’m getting a oops something is wrong error and it has to do with that value.

Even though the URL is set correctly in the app/config/app.php, when loaded, it is referring to assets from a different URL.

If you use the settings from the admin, then set it there. Can you maybe send me the link ?

Got it to work by changing name of database. Thanks


hdisouky Purchased

Hello, How can I pass in a variable within your nested wheres?

function getUsersByAge($age){

$u = DB::table(‘users’) ->where(‘username’, ’=’, ‘john’) ->orWhere(function($query) { $query->where(‘id’, ’>’, 10) >where(‘age’, ’=’, $age); <- $age variable is undefined }) ->get(); return $u; }

As you can see from the example above, the $age variable is undefined, even though it is passed to the getUsersByAge function. How can I pass it to the nested function?


You need to inherit the $age variable using: use($age)

->orWhere(function($query) use ($age) {

You can read more about anonymous functions here http://php.net/manual/en/functions.anonymous.php


hdisouky Purchased

Perfect… That’s what I needed. Thanks!!

Hi, This supposed to be membership system. But i dont see anything about membership package or anything . am i mistaken??