App\Http\Controllers\Laralum\CRUDController::table PHP Метод

table() публичный Метод

public table ( $name )
    public function table($name)
    {
        Laralum::permissionToAccess('laralum.CRUD.access');
        # Check if table exists
        if (!Schema::hasTable($name)) {
            abort(404);
        }
        $columns = Schema::getColumnListing($name);
        $rows = DB::table($name)->get();
        return view('laralum/CRUD/table', ['columns' => $columns, 'rows' => $rows, 'name' => $name]);
    }