{"id":25982671,"url":"https://github.com/combizera/rocketseat-php-biolinks","last_synced_at":"2026-04-23T03:32:59.841Z","repository":{"id":270333479,"uuid":"910039705","full_name":"combizera/rocketseat-php-biolinks","owner":"combizera","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-20T19:16:06.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T01:58:18.297Z","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/combizera.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":"2024-12-30T10:47:58.000Z","updated_at":"2025-01-20T19:16:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ca4244d-e051-48a8-8121-e7b3610e4678","html_url":"https://github.com/combizera/rocketseat-php-biolinks","commit_stats":null,"previous_names":["combizera/rocketseat-php-biolinks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/combizera/rocketseat-php-biolinks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combizera%2Frocketseat-php-biolinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combizera%2Frocketseat-php-biolinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combizera%2Frocketseat-php-biolinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combizera%2Frocketseat-php-biolinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/combizera","download_url":"https://codeload.github.com/combizera/rocketseat-php-biolinks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combizera%2Frocketseat-php-biolinks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32165034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"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":[],"created_at":"2025-03-05T09:40:05.134Z","updated_at":"2026-04-23T03:32:59.821Z","avatar_url":"https://github.com/combizera.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocketseat - Conhecendo o Laravel\n\n## Route Model Binding\n\nEssa funcionalidade do Laravel permite que você injete um modelo diretamente na rota, sem a necessidade de buscar o modelo manualmente.\n\nPara isso, basta você definir o tipo do parâmetro da rota como sendo o modelo que você deseja injetar.\n\n```php\nRoute::get('users/{user}', function (App\\Models\\User $user) {\n    return $user;\n});\n```\n\nDessa forma, o Laravel irá buscar o usuário com o ID informado na URL e injetá-lo diretamente no parâmetro `$user` da função.\n\n## Dicas Gerais\n\n### Loop\n\nNo Blade é bem fácil você fazer um loop para exibir uma lista de itens. \n\nComo aqui:\n\n```php\n\u003cul\u003e\n    @foreach ($users as $user)\n        \u003cli\u003e{{ $user-\u003ename }}\u003c/li\u003e\n    @endforeach\n\u003c/ul\u003e\n```\n\nMaaas, tem um extra, o Blade ainda facilita na hora de ver o primeiro e último elemento também. Veja:\n\n```php\n\u003cul\u003e\n    @foreach ($users as $user)\n        \u003cli\u003e{{ $user-\u003ename }}\u003c/li\u003e\n\n        @if ($loop-\u003efirst)\n            \u003cp\u003eEste é o primeiro usuário da lista\u003c/p\u003e\n        @endif\n\n        @if ($loop-\u003elast)\n            \u003cp\u003eEste é o último usuário da lista\u003c/p\u003e\n        @endif\n    @endforeach\n\u003c/ul\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombizera%2Frocketseat-php-biolinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcombizera%2Frocketseat-php-biolinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombizera%2Frocketseat-php-biolinks/lists"}