Add more detail to pagination exception message.
This commit is contained in:
parent
b7ab358297
commit
46a15cf857
@ -194,7 +194,7 @@ abstract class Eloquent {
|
||||
{
|
||||
if ( ! property_exists(get_class($this), 'per_page'))
|
||||
{
|
||||
throw new \Exception("The number of models to display per page has not been specified.");
|
||||
throw new \Exception("The number of models to display per page for model [".get_class($this)."] has not been specified.");
|
||||
}
|
||||
|
||||
$per_page = static::$per_page;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user