inertia psr15:用于InertiaJS的PSR 15适配器 源码
惯性-psr15 在使用此库之前,重要的在上了解,以及。 PHP PSR-15 服务器端适配器,可以与 , 或实现PSR-15接口的任何框架一起使用。 该适配器是一种PSR-15中间件,用于检测InertiaJS请求并准备和发送由InertiaJS前端组件读取和呈现的Response,安装和配置后的用法很容易: // In some RequestHandlerInterface class $ inertia = $ request -> getAttribute ( InertiaMiddleware :: INERTIA_ATTRIBUTE ); return $ inertia -> render ( 'MyFrontEndComponent' , [ 'someProp' => 'someProp Prop Value' , 'ohterProp' =>
下载地址
用户评论