for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LarsJanssen\IncrementDecrement\Exceptions;
use Exception;
use Illuminate\Database\Eloquent\Model;
class Exceptions extends Exception
{
/**
* @param Model $model
*
* @return static
*/
public static function columnNotFound(Model $model)
return new static("Could not find specified column on table `{$model->getTable()}`.");
}
public static function columnNotSet()
return new static('Column not set in increment-decrement config file.');
public static function numberUnValid($number)
return new static("Value `{$number}` is not a number.");
public static function numberNotPositive($number)
return new static("Value `{$number}` must be positive.");