Laravel Public Static Variate
class Export extends Model {
public static $itemsPerPage = 20;
public function test() {
static::$itemsPerPage;
}
}
Courageous Cod
class Export extends Model {
public static $itemsPerPage = 20;
public function test() {
static::$itemsPerPage;
}
}
Explained like a charm
https://stackoverflow.com/questions/15898843/what-means-new-static