---
description: http://blog.com/abc
---

# Trợ giúp toàn cầu view (ok)



Chế độ xem Blade có thể được trả về từ các tuyến sử dụng trình `view`trợ giúp toàn cầu :

```
Route::get('blade', function () {
    return view('child');
});
```

C:\xampp\htdocs\blog\routes\web.php

```
<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::resource('products','ProductController');
Route::resource('test','Test');
Route::get('blade', function () {
  return view('child');
});
```

{% embed url="http://blog.com/abc" %}

![](https://1957079826-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCBeDUD-PK_RF-YgJRe%2F-MCQQM00QqcO_cBmgMfr%2F-MCQTK_R8cq3fuIc38C3%2FScreenshot_8.png?alt=media\&token=63bcaae9-b770-4be5-8d1e-c646107c6399)
