Commit 46a15cf8 authored by Taylor Otwell's avatar Taylor Otwell

Add more detail to pagination exception message.

parent b7ab3582
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment