| Package Data | |
|---|---|
| Maintainer Username: | wuwx |
| Maintainer Contact: | wuweixin@gmail.com (Wu Weixin) |
| Package Create Date: | 2017-07-05 |
| Package Last Update: | 2025-03-02 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:04:37 |
| Package Statistics | |
|---|---|
| Total Downloads: | 322 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
To install through composer, simply run the following command:
composer require wuwx/laravel-plus-view
Next add the following service provider in config/app.php.
'providers' => [
Wuwx\LaravelPlusView\LaravelPlusViewServiceProvider::class,
],
index.html.blade.php
<h1>{{ $dataTypeContent->title }}</h1>
index.json.blade.php
{!! json_encode($dataTypeContent) !!}
curl http://localhost:8000/users
curl http://localhost:8000/users?_format=json
curl http://localhost:8000/users -H "Accept: application/json"