{"id":22276123,"url":"https://github.com/noud/laravel-seo-slug","last_synced_at":"2026-05-02T20:36:07.670Z","repository":{"id":57028597,"uuid":"231787545","full_name":"noud/laravel-seo-slug","owner":"noud","description":"Laravel SEO Slug","archived":false,"fork":false,"pushed_at":"2020-07-10T19:40:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-28T00:26:58.754Z","etag":null,"topics":["laravel","seo","slug"],"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/noud.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":"2020-01-04T15:41:27.000Z","updated_at":"2020-07-10T19:40:40.000Z","dependencies_parsed_at":"2022-08-23T16:20:40.576Z","dependency_job_id":null,"html_url":"https://github.com/noud/laravel-seo-slug","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/noud/laravel-seo-slug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-slug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-slug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-slug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-slug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noud","download_url":"https://codeload.github.com/noud/laravel-seo-slug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noud%2Flaravel-seo-slug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["laravel","seo","slug"],"created_at":"2024-12-03T14:13:33.113Z","updated_at":"2026-05-02T20:36:07.641Z","avatar_url":"https://github.com/noud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel SEO Slug\n\nDecorate your Models with SEO Slug.\n\n## Requirements\n\n* PHP 7.2+\n* Laravel 5.6+\n\n## Installation\n\nInstall the package by running this command in your terminal/cmd:\n```\ncomposer require noud/laravel-seo-slug\n```\n\n## Usage\n\nHere is a usage example. First add the Slug logic to your models. Then create and do a migration.\n\n### Models\n\nAdd Slug business logic to Models, like so:\n\n```\n\u003c?php\n\nnamespace App\\Models;\n\nuse Reliese\\Database\\Eloquent\\Model as Eloquent;\nuse SEO\\Models\\Traits\\Slug;\n\nclass BlogPosting extends Eloquent\n{\n    use Slug;\n    \n    private $url;   // par exemple\n\n    public function generateSlug() {\n        // whatever logic you find appropriate\n        $urlParts = explode('/', $this-\u003eurl);\n        end($urlParts);\n        return prev($urlParts);\n    }\n}\n```\n\nThe default Slug database column name is ```slug``` but can be overwritten.\n\n```\n\u003c?php\n\nclass BlogPosting extends Eloquent\n{\n    public function getRouteKeyName()\n    {\n        return 'sluggish';\n    }\n}\n```\n\n### Migration\n\nCreate a migration to decorate with the Slugs, like so ```database/migrations/yyy_mm_dd_hhmmss_slugged_tables.php``` as your last migration:\n```\n\u003c?php\n\nuse SEO\\AddSlugToTables;\n\nclass SlugedTables extends AddSlugToTables\n{  \n}\n```\n\nRun migrations as usual.\n\n## Result\n\nNow an url like ```https://seo.localhost/blog_posting/2``` will change to ```https://seo.localhost/blog_posting/hackathon-tilburg-groot-succes```.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-slug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoud%2Flaravel-seo-slug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoud%2Flaravel-seo-slug/lists"}