1. Go to this page and download the library: Download duan617/laravel-hprose library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App\Controllers\Parameters;
use duan617\LaravelHprose\Parameters\Base;
class UserStore extends Base
{
public function rules()
{
return [
'name' => '
namespace App\Controllers\Parameters;
use duan617\LaravelHprose\Parameters\Base;
class UserStore extends Base
{
public function rules()
{
return [
'name' => 'pport\MessageBag $errorMessage)
{
return [
'status_code' => 400,
'message' => $errorMessage->first(),
];
}
}