title: LARAVEL DOMPDF Wrapper for Laravel 5
body: <p>I performed the following steps and have an error</p>
  
  <p>step 1</p>
  
  <p>Insert en composer.json  </p>
  
  <pre><code>"barryvdh/laravel-dompdf": "0.6.*"
  </code></pre>
  
  <p>step 2
  install</p>
  
  <pre><code>php composer update
  </code></pre>
  
  <p>step 3</p>
  
  <p>add  config/app.php</p>
  
  <p>'providers' => [....</p>
  
  <pre><code> Barryvdh\DomPDF\ServiceProvider::class,
  </code></pre>
  
  <p>'aliases' => [....</p>
  
  <pre><code> 'PDF' =&gt; Barryvdh\DomPDF\Facade::class,
  </code></pre>
  
  <p>step 4 </p>
  
  <p>routes.php</p>
  
  <pre><code>Route::resource('pdf', 'PdfController');
  </code></pre>
  
  <p>step 5 create controller from php artisan make:controller PhpController</p>
  
  <p>insert code:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  
  
  class PdfController extends Controller
  {
  public function Index() {
  
  $pdf = App::make('dompdf.wrapper');
  $pdf-&gt;loadHTML('&lt;h1&gt;Test&lt;/h1&gt;');
  return $pdf-&gt;stream();
  
  }}
  </code></pre>
  
  <p>step 5 ERROR</p>
  
  <p>call url localhost/public/pdf</p>
  
  <pre><code>FatalThrowableError in PdfController.php line 16:
  Fatal error: Class 'App\Http\Controllers\App' not found
  </code></pre>
  
  <p>line 22 ....    </p>
  
  <pre><code>$pdf = App::make('dompdf.wrapper');
  </code></pre>
  
  <p>Thank you! for your comments.</p>