Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Database;
4
 
5
use RuntimeException;
6
 
7
class ClassMorphViolationException extends RuntimeException
8
{
9
    /**
10
     * The name of the affected Eloquent model.
11
     *
12
     * @var string
13
     */
14
    public $model;
15
 
16
    /**
17
     * Create a new exception instance.
18
     *
19
     * @param  object  $model
20
     */
21
    public function __construct($model)
22
    {
23
        $class = get_class($model);
24
 
25
        parent::__construct("No morph map defined for model [{$class}].");
26
 
27
        $this->model = $class;
28
    }
29
}