{"id":22889618,"url":"https://github.com/dillingham/optional-policy","last_synced_at":"2026-05-17T18:02:07.966Z","repository":{"id":66356271,"uuid":"204111729","full_name":"dillingham/optional-policy","owner":"dillingham","description":"Make policies optional in controllers / authorize method","archived":false,"fork":false,"pushed_at":"2019-09-07T20:30:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-31T20:13:45.466Z","etag":null,"topics":["laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dillingham.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-24T05:13:04.000Z","updated_at":"2019-09-07T20:26:24.000Z","dependencies_parsed_at":"2023-02-22T06:16:30.460Z","dependency_job_id":null,"html_url":"https://github.com/dillingham/optional-policy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dillingham/optional-policy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Foptional-policy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Foptional-policy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Foptional-policy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Foptional-policy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillingham","download_url":"https://codeload.github.com/dillingham/optional-policy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Foptional-policy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265625568,"owners_count":23800624,"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":["laravel"],"created_at":"2024-12-13T21:56:24.479Z","updated_at":"2026-05-17T18:02:02.929Z","avatar_url":"https://github.com/dillingham.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# optional policy\n[![Latest Version on Github](https://img.shields.io/github/release/dillingham/optional-policy.svg?style=flat-square)](https://packagist.org/packages/dillingham/optional-policy)\n[![Total Downloads](https://img.shields.io/packagist/dt/dillingham/optional-policy.svg?style=flat-square)](https://packagist.org/packages/dillingham/optional-policy) [![Twitter Follow](https://img.shields.io/twitter/follow/dillinghammm?color=%231da1f1\u0026label=Twitter\u0026logo=%231da1f1\u0026logoColor=%231da1f1\u0026style=flat-square)](https://twitter.com/dillinghammm)\n\nallows packages to call `authorize()` without knowing policy exists\n\nbasically allows package consumers to hook into authorization\n```\ncomposer require dillingham/optional-policy\n```\n\nchange `AuthorizesRequests` to `OptionallyAuthorizesRequests`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillingham%2Foptional-policy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillingham%2Foptional-policy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillingham%2Foptional-policy/lists"}