小编Pra*_*kla的帖子

在laravel 5.2中找不到类'App\Http\Controllers\App'

我尝试使用laravel-snappy进行pdf生成.

步骤1:

composer require barryvdh/laravel-snappy

第2步:

在app.php中添加提供程序Barryvdh\DomPDF\ServiceProvider::class,和别名'PDF' => Barryvdh\DomPDF\Facade::class,

第3步:

创造功能

    public function pdfTest() {
    $pdf = App::make('snappy.pdf.wrapper');
    $pdf->loadHTML('<h1>Test</h1>');
    return $pdf->inline();
}
Run Code Online (Sandbox Code Playgroud)

然后发现错误:

Class 'App\Http\Controllers\App' not found
Run Code Online (Sandbox Code Playgroud)

如何解决它.我很感激所有的回应.谢谢你.

laravel-5 laravel-snappy

9
推荐指数
1
解决办法
1万
查看次数

ECMA Script、Angular 和 Type Script 之间有什么关系?

我想知道ECMA Script、Angular 和 Type Script 之间的关系

如果Angular 8使用TypeScript 3.4那么哪个版本的ECMAScript可以在Angular 8中使用?

请帮助我。我感谢所有的回复。谢谢。

ecma typescript angular

3
推荐指数
1
解决办法
1730
查看次数

想要在表中使用多选下拉列表过滤行

在表中,我想使用多选下拉列表过滤行。

这是plunker

例子:

当我在下拉列表中选择 2 个国家和 2 个月时,相应地在表中选择数据。

HTML:

 <div id="datatable-buttons_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                            <!--page size-->
                            <div class="table-search-bar">
                                <div class="dt-buttons btn-group">
                                    PageSize:
                                    <select ng-model="entryLimit" class="form-control"> 
                                        <option>5</option>
                                        <option>10</option>
                                        <option>20</option>
                                        <option>50</option>
                                        <option>100</option>
                                    </select>
                                </div>
                                <!--filter-->
                                <div id="datatable-buttons_filter" class="dataTables_filter"><label>Filtered:<input type="text" ng-model="search" ng-change="filter()" placeholder="Filter" class="form-control input-sm" aria-controls="datatable-buttons" /></label></div>
                            </div>
                            <div ng-show="filteredItems > 0">
                                <table id="datatable-buttons" class="table table-striped table-bordered">
                                    <thead>
                                      <th> <input type="checkbox" ng-model="selectRowId" ng-click="selectedAll()"></th>
                                   <th>id</th>
                                    <th><a ng-click="sort_by('year');">Year&nbsp;&nbsp;</a></th>
                                    <th><a ng-click="sort_by('month');">Month&nbsp;</a></th>
                                    <th><a ng-click="sort_by('country');">Country&nbsp;</a></th>
                                    <th><a ng-click="sort_by('mobile_operator');">Mobile Operator&nbsp;</a></th>
                                    <th><a ng-click="sort_by('service');">Service&nbsp;</a></th>
                                    <th>Action</th>         
                                    </thead>
                                    <tbody ng-init="get_product()">
                                        <tr …
Run Code Online (Sandbox Code Playgroud)

angularjs angular-datatables

2
推荐指数
1
解决办法
7505
查看次数