Route::post PHP Метод

post() публичный статический метод

Register a new POST route with the router.
public static post ( string $uri, Closure | array | string | null $action = null ) : Illuminate\Routing\Route
$uri string
$action Closure | array | string | null
Результат Illuminate\Routing\Route
        public static function post($uri, $action = null)
        {
            return \Illuminate\Routing\Router::post($uri, $action);
        }

Usage Example

Пример #1
0
 public function setUp()
 {
     parent::setUp();
     Route::post('/user', ['middleware' => 'validate:App\\Http\\Validators\\UserValidate', function () {
         return response()->json(null, 200);
     }]);
 }
All Usage Examples Of Route::post