protected function getModelTable($model)
    {
        if (!is_object($model)) {
            $model = new $model;
        }

        return DB::getTablePrefix().$model->getTable();
    }
protected function getModelTable($model)
    {
        if (!is_object($model)) {
            $model = new $model;
        }

        return DB::getTablePrefix().$model->getTable();
    }
protected function getModelTable ( $ model ) { if ( ! is_object ( $ model ) ) { $ model = new $ model ; } return DB :: getTablePrefix ( ) . $ model -> getTable ( ) ; }
Returns the table for a given model. Model can be an Eloquent model object, or a full namespaced
class string.

@param string|Model $model
@return mixed
Returns the table for a given model . Model can be an Eloquent model object or a full namespaced class string .