{"id":18310335,"url":"https://github.com/torann/laravel-pjax-middleware","last_synced_at":"2026-03-06T05:15:23.059Z","repository":{"id":35965250,"uuid":"40255645","full_name":"Torann/laravel-pjax-middleware","owner":"Torann","description":"Enable the use of PJAX in Laravel.","archived":false,"fork":false,"pushed_at":"2018-02-01T20:02:41.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T17:35:56.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Torann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-05T16:16:27.000Z","updated_at":"2018-12-29T05:16:43.000Z","dependencies_parsed_at":"2022-09-01T07:51:08.083Z","dependency_job_id":null,"html_url":"https://github.com/Torann/laravel-pjax-middleware","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Flaravel-pjax-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Flaravel-pjax-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Flaravel-pjax-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Flaravel-pjax-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torann","download_url":"https://codeload.github.com/Torann/laravel-pjax-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241305113,"owners_count":19941105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T16:14:09.279Z","updated_at":"2026-03-06T05:15:22.930Z","avatar_url":"https://github.com/Torann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel PJAX Middleware\n\nEnable the use of PJAX in Laravel. \n\n## Installation\n\nInstall using composer:\n\n```\n$ composer require torann/laravel-pjax-middleware\n```\n\nYou'll then need to run `composer install` to download it and have the autoloader updated.\n\n### Setup\n\nOnce installed you need to append the middleware class within the Http kernel. Open up `app/Http/Kernel.php` and find the `$middleware` variable.\n\n```php\nprotected $middleware = [\n\n    Torann\\Pjax\\PjaxMiddleware::class,\n\n]\n```\n\n#### How to use\n\nThis middleware will check, before outputting the http response, for the `X-PJAX`'s \nheader in the request. If found, it will crawl the response to return the requested \nelement defined by `X-PJAX-Container`'s header.\n\nWorks great with [flight-with-pjax](https://github.com/Torann/flight-with-pjax) and [jquery.pjax.js](https://github.com/defunkt/jquery-pjax).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorann%2Flaravel-pjax-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorann%2Flaravel-pjax-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorann%2Flaravel-pjax-middleware/lists"}