for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pbmedia\Specifications\Laravel\Exceptions;
use RuntimeException;
class AttributeModelNotSavedException extends RuntimeException
{
/**
* Name of the affected Eloquent model.
*
* @var string
*/
protected $model;
* Set the affected Eloquent model.
* @param string $model
* @return $this
public function setModel($model)
$this->model = $model;
$this->message = "Attribute model with name [{$model->name}] has not been saved to the database yet.";
return $this;
}
* Get the affected Eloquent model.
* @return string
public function getModel()
return $this->model;