X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/core/table/src
home
/
gfecatvj
/
sites
/
restate
/
platform
/
core
/
table
/
src
/
📁
..
📁
Abstracts
📁
Http
📁
Providers
📁
Supports
📄
TableBuilder.php
(908 B)
Editing: TableBuilder.php
<?php namespace Botble\Table; use Botble\Table\Abstracts\TableAbstract; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Container\Container; use InvalidArgumentException; class TableBuilder { /** * @var Container */ protected $container; /** * TableBuilder constructor. * @param Container $container */ public function __construct(Container $container) { $this->container = $container; } /** * @param string $tableClass * @return TableAbstract * @throws BindingResolutionException */ public function create($tableClass) { if (!class_exists($tableClass)) { throw new InvalidArgumentException( 'Table class with name ' . $tableClass . ' does not exist.' ); } return $this->container->make($tableClass); } }
Upload File
Create Folder