{"id":15937431,"url":"https://github.com/zofe/ticket-module","last_synced_at":"2025-03-05T09:20:21.017Z","repository":{"id":145806867,"uuid":"617485749","full_name":"zofe/ticket-module","owner":"zofe","description":"ticket module for rapyd-livewire laravel application","archived":false,"fork":false,"pushed_at":"2023-06-05T08:52:05.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T22:28:59.779Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zofe.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":"2023-03-22T13:48:38.000Z","updated_at":"2023-08-08T21:44:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"dca9a00e-d0ff-4c95-b8f3-1f015c24ef8d","html_url":"https://github.com/zofe/ticket-module","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fticket-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fticket-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fticket-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zofe%2Fticket-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zofe","download_url":"https://codeload.github.com/zofe/ticket-module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241997772,"owners_count":20055168,"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-10-07T05:02:55.357Z","updated_at":"2025-03-05T09:20:20.783Z","avatar_url":"https://github.com/zofe.png","language":"PHP","readme":"# Ticket Module\n\nThis is a Ticket module for a Laravel application (\u003e= 8) \n\nit use layout module and auth module.\n\n\n\n# Installation \u0026 configuration\n\nYour can require this module in your laravel application using:\n```\ncomposer require zofe/ticket-module\n\nphp artisan migrate \n```\n\ncreate a configuration file \"ticket.php\" in your config folder and customize :\n```\n    'operators_roles'=\u003e['admin'],\n    'notification_email' =\u003e 'notification@email.it',\n```\n\nthen add roles/permissions in the auth.php configuration file :\n\nBy default, tickets can be created by \"user\" (role) users and managed by \"admin\" (role) users. \nA minimal configuration for your config/auth.php file is:\n\n```\n'role_permissions' =\u003e [\n        'admin' =\u003e [\n            'view tickets', 'edit tickets',\n        ],\n        'user' =\u003e [\n            'view own tickets', 'edit own tickets',\n        ],\n]\n```\n\nthen you can seed some default data using:\n\n```\nphp artisan db:seed --class=\"App\\\\Modules\\\\Ticket\\\\Database\\\\Seeders\\\\TicketCategories\"\n```\n\n\n# Layout\n\nNote that this module will install/use layout-module, you may need to do:\n\n```\ncd app/Modules/Layout/\n\nnpm i\nnpm run dev\n```\n\nthis will compile scss and copy css assets to your public project folder\n\n\n# Charts \n\nthis module use livewire charts, so you need to publish some assets:\n\n```bash\nphp artisan vendor:publish --tag=livewire-charts:public\n```\n\nif you customize your layout make sure you include this directive \n\n```\n@livewireChartsScripts\n```\n\n\n\n\n# Customizing Module\nTo customize the module code, we recommend forking the original package repository on GitHub and making changes there. This way, you can maintain a separate branch for your changes, while also keeping up-to-date with the latest releases of the package.\n\nTo install your forked version of the package in your Laravel application, you can reference your forked repository in the composer.json file of your Laravel application using the \"vcs\" package type. Here's an example of what you can add to your composer.json:\n\n```json\n\n\"repositories\": [\n    {\n        \"type\": \"vcs\",\n        \"url\": \"https://github.com/\u003cyour-github-username\u003e/\u003cpackage-name\u003e\"\n    }\n],\n```\nReplace `\u003cyour-github-username\u003e` with your GitHub username and `\u003cpackage-name\u003e` with the name of your forked package repository.\n\nAfter adding your forked repository to composer.json, you can require your customized package in the same way you would require the original package:\n\n```php\ncomposer require \u003cyour-github-username\u003e/\u003cpackage-name\u003e:dev-\u003cyour-branch-name\u003e\n```\nReplace `\u003cyour-github-username\u003e`, `\u003cpackage-name\u003e`, and `\u003cyour-branch-name\u003e` with the appropriate values for your forked repository and branch.\n\nBy using this approach, you can easily customize the module code while also keeping your code up-to-date with the latest releases of the package.\n\nWe encourage developers to make changes that could be useful to the wider community and contribute back to the original package repository via pull requests. This can help improve the package for everyone and ensure that your changes are integrated with the latest releases of the package.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzofe%2Fticket-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzofe%2Fticket-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzofe%2Fticket-module/lists"}