{"id":14974620,"url":"https://github.com/avinashn/middleware-laravel-example","last_synced_at":"2025-10-27T09:31:27.388Z","repository":{"id":72713205,"uuid":"107538862","full_name":"avinashn/middleware-laravel-example","owner":"avinashn","description":"How to use Middleware in laravel for content restriction based on user role.","archived":false,"fork":false,"pushed_at":"2018-07-04T06:02:38.000Z","size":227,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T04:41:18.615Z","etag":null,"topics":["laravel","laravel55","middleware","php7"],"latest_commit_sha":null,"homepage":"http://justlaravel.com/middleware-laravel-content-restriction-user-role/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avinashn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-19T11:43:38.000Z","updated_at":"2022-04-26T07:36:27.000Z","dependencies_parsed_at":"2023-03-03T00:45:54.206Z","dependency_job_id":null,"html_url":"https://github.com/avinashn/middleware-laravel-example","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"21bfde1eb0524e57e0c3838c9446aec400ae6227"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashn%2Fmiddleware-laravel-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashn%2Fmiddleware-laravel-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashn%2Fmiddleware-laravel-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashn%2Fmiddleware-laravel-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avinashn","download_url":"https://codeload.github.com/avinashn/middleware-laravel-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238472011,"owners_count":19478144,"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","laravel55","middleware","php7"],"created_at":"2024-09-24T13:50:49.383Z","updated_at":"2025-10-27T09:31:26.962Z","avatar_url":"https://github.com/avinashn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prerequisites\n\u003cul\u003e\n\u003cli\u003eAfter cloning this repository, go to the root folder, run the following command/s,\n\u003cpre\u003e\n    composer install\n    composer update\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003eRename .env.example to .env and provide your database details there.\u003c/li\u003e\n\u003cli\u003eIt needs a database table to store registered users. Run \u003ccode\u003ephp artisan migrate\u003c/code\u003e to import the tables.\u003c/li\u003e\n\u003cli\u003eRun \u003cpre\u003ephp artisan key:generate\u003c/pre\u003e \u003c/li\u003e\n\n\u003c/ul\u003e\n\n## Reference Post\n\u003ca href=\"https://justlaravel.com/middleware-laravel-content-restriction-user-role/\"\u003ehttps://justlaravel.com/middleware-laravel-content-restriction-user-role/\n\u003c/a\u003e\n\n## Demo and Code Explanation Video\nhttps://www.youtube.com/watch?v=DkMmy-KRRTE\u0026list=PLJKqSeQP_mlKUcBB8IC1LSWcIUYGldNuE\n\n## Working Demo\nhttp://demos.justlaravel.com/middleware-laravel-content-restriction-user-role\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinashn%2Fmiddleware-laravel-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favinashn%2Fmiddleware-laravel-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinashn%2Fmiddleware-laravel-example/lists"}