Angejia\Pea\Model::table PHP Method

table() public method

public table ( )
    public function table()
    {
        return $this->table;
    }

Usage Example

Beispiel #1
0
 private function fireEvent($name, $data = [])
 {
     /** @var $container Container */
     $container = Container::getInstance();
     if (!$container->bound(Dispatcher::class)) {
         return;
     }
     $data['table'] = $this->model->table();
     $data['db'] = $this->db();
     $event = 'angejia.pea.' . $name;
     Container::getInstance()->make(Dispatcher::class)->fire($event, $data);
 }