{"id":13828071,"url":"https://github.com/coderello/laravel-shared-data","last_synced_at":"2026-01-19T03:35:09.919Z","repository":{"id":37588138,"uuid":"176369027","full_name":"coderello/laravel-shared-data","owner":"coderello","description":"📦 An easy way to share the data from your backend to the JavaScript.","archived":false,"fork":false,"pushed_at":"2023-02-01T23:40:23.000Z","size":688,"stargazers_count":316,"open_issues_count":3,"forks_count":24,"subscribers_count":4,"default_branch":"4.0","last_synced_at":"2025-10-23T20:58:03.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://coderello.com/docs/laravel-shared-data/1.0/sharing-data","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/coderello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-18T21:03:13.000Z","updated_at":"2025-09-22T18:03:51.000Z","dependencies_parsed_at":"2023-02-17T12:15:55.333Z","dependency_job_id":null,"html_url":"https://github.com/coderello/laravel-shared-data","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/coderello/laravel-shared-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderello%2Flaravel-shared-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderello%2Flaravel-shared-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderello%2Flaravel-shared-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderello%2Flaravel-shared-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderello","download_url":"https://codeload.github.com/coderello/laravel-shared-data/tar.gz/refs/heads/4.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderello%2Flaravel-shared-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28560529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-04T09:02:30.891Z","updated_at":"2026-01-19T03:35:09.903Z","avatar_url":"https://github.com/coderello.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Laravel Shared Data\n\n## ✨ Introduction\n\n**Laravel Shared Data** provides an easy way to share the data from your backend to the JavaScript.\n\n## 🚀 Quick start\n\n-   Install the package:\n    ```bash\n    composer require coderello/laravel-shared-data\n    ```\n\n-   Include the `@shared` directive into your blade layout before all scripts.\n\n-   Share the data from within Laravel:\n    ```bash\n    share(['user' =\u003e $user, 'title' =\u003e $title]);\n    ```\n    \n-   Access the data from the JavaScript directly:\n    ```bash\n    const user = window.sharedData.user;\n    const title = window.sharedData.title;\n    ```\n    \n-   Or using the built-it global helper:\n    ```bash\n    const user = shared('user');\n    const title = shared('title');\n    ```\n\n## 📖 License\n\n**Laravel Shared Data** is open-sourced software licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderello%2Flaravel-shared-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderello%2Flaravel-shared-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderello%2Flaravel-shared-data/lists"}