{"id":30605463,"url":"https://github.com/bpocallaghan/faq","last_synced_at":"2025-08-30T02:13:06.979Z","repository":{"id":62496449,"uuid":"108990098","full_name":"bpocallaghan/faq","owner":"bpocallaghan","description":"Add Frequently Asked Questions to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter","archived":false,"fork":false,"pushed_at":"2019-05-21T06:59:27.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T22:02:00.016Z","etag":null,"topics":["faq","laravel"],"latest_commit_sha":null,"homepage":null,"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/bpocallaghan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-31T12:06:46.000Z","updated_at":"2023-10-05T20:02:27.000Z","dependencies_parsed_at":"2022-11-02T09:45:58.766Z","dependency_job_id":null,"html_url":"https://github.com/bpocallaghan/faq","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bpocallaghan/faq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpocallaghan%2Ffaq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpocallaghan%2Ffaq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpocallaghan%2Ffaq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpocallaghan%2Ffaq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpocallaghan","download_url":"https://codeload.github.com/bpocallaghan/faq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpocallaghan%2Ffaq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272793113,"owners_count":24993847,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["faq","laravel"],"created_at":"2025-08-30T02:13:02.984Z","updated_at":"2025-08-30T02:13:06.966Z","avatar_url":"https://github.com/bpocallaghan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frequently Asked Questions\nThis will add faq questions and answers to your laravel project.\nThe questions have a 'total views', 'total helpful' and 'total not helpful' counters.\n\n## Installation\nUpdate your project's `composer.json` file.\n\n```bash\ncomposer require bpocallaghan/faq\n```\n\n## Usage\n\nRegister the routes in the `routes/vendor.php` file.\n- Website\n```bash\nRoute::group(['prefix' =\u003e 'faq', 'namespace' =\u003e 'FAQ\\Controllers\\Website'], function () {\n    Route::get('', 'FAQController@index');\n    Route::post('/question/{faq}/{type?}', 'FAQController@incrementClick');\n});\n```\n- Admin\n```bash\nRoute::group(['namespace' =\u003e 'FAQ\\Controllers\\Admin'], function () {\n    Route::resource('/faqs/categories', 'CategoriesController');\n    Route::get('faqs/order', 'OrderController@index');\n    Route::post('faqs/order', 'OrderController@updateOrder');\n    Route::resource('/faqs', 'FAQsController');\n});\n```\n\n## Commands\n```bash\nphp artisan faq:publish\n```\nThis will copy the `database/seeds` and `database/migrations` to your application.\nRemember to add `$this-\u003ecall(FAQTableSeeder::class);` in the `DatabaseSeeder.php`\n\n```bash\nphp artisan faq:publish --files=all\n```\nThis will copy the `model, views and controller` to their respective directories. \nPlease note when you execute the above command. You need to update your `routes`.\n- Website\n```bash \nRoute::get('/faq', 'FAQController@index');\nRoute::post('/faq/question/{faq}/{type?}', 'FAQController@incrementClick');\n```\n- Admin\n```bash\nRoute::group(['namespace' =\u003e 'FAQ'], function () {\n    Route::resource('/faqs/categories', 'CategoriesController');\n    Route::get('faqs/order', 'OrderController@index');\n    Route::post('faqs/order', 'OrderController@updateOrder');\n    Route::resource('/faqs', 'FaqsController');\n});\n```\n\n## Demo\nPackage is being used at [Laravel Admin Starter](https://github.com/bpocallaghan/laravel-admin-starter) project.\n\n### TODO\n- add the navigation seeder information (to create the navigation/urls)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpocallaghan%2Ffaq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpocallaghan%2Ffaq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpocallaghan%2Ffaq/lists"}