{"id":21038203,"url":"https://github.com/jglchen/chirper-api-token","last_synced_at":"2026-05-08T00:33:09.620Z","repository":{"id":196472409,"uuid":"695096697","full_name":"jglchen/chirper-api-token","owner":"jglchen","description":"Laravel Chirper app/auth kit with backend by installing Laravel Breeze APIs to issue API tokens.","archived":false,"fork":false,"pushed_at":"2023-09-25T09:04:51.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T19:53:21.874Z","etag":null,"topics":["api","api-rest","breeze","chirp","docker","laravel","php"],"latest_commit_sha":null,"homepage":"","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/jglchen.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}},"created_at":"2023-09-22T10:50:49.000Z","updated_at":"2023-09-22T10:58:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"389ff71e-4fae-4b08-b783-b945bff1f873","html_url":"https://github.com/jglchen/chirper-api-token","commit_stats":null,"previous_names":["jglchen/chirper-api-token"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jglchen/chirper-api-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Fchirper-api-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Fchirper-api-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Fchirper-api-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Fchirper-api-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jglchen","download_url":"https://codeload.github.com/jglchen/chirper-api-token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Fchirper-api-token/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265816245,"owners_count":23833105,"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":["api","api-rest","breeze","chirp","docker","laravel","php"],"created_at":"2024-11-19T13:29:59.360Z","updated_at":"2026-05-08T00:33:04.591Z","avatar_url":"https://github.com/jglchen.png","language":"PHP","funding_links":["https://patreon.com/taylorotwell"],"categories":[],"sub_categories":[],"readme":"# Laravel Breeze - Next.js Edition 🏝️\n\n## Introduction\n\nThis repository is an implementation of the [Laravel Breeze](https://laravel.com/docs/starter-kits) application / authentication starter kit frontend in [Next.js](https://nextjs.org). All of the authentication boilerplate is already written for you - powered by [Laravel Sanctum](https://laravel.com/docs/sanctum), allowing you to quickly begin pairing your beautiful Next.js frontend with a powerful Laravel backend.\n\n## Official Documentation\n\n### Installation\n\nFirst, create a Next.js compatible Laravel backend by installing Laravel Breeze into a [fresh Laravel application](https://laravel.com/docs/installation) and installing Breeze's API scaffolding:\n\n```bash\n# Create the Laravel application...\nlaravel new next-backend\n\ncd next-backend\n\n# Install Breeze and dependencies...\ncomposer require laravel/breeze --dev\n\nphp artisan breeze:install api\n\n# Run database migrations...\nphp artisan migrate\n```\n\nNext, ensure that your application's `APP_URL` and `FRONTEND_URL` environment variables are set to `http://localhost:8000` and `http://localhost:3000`, respectively.\n\nAfter defining the appropriate environment variables, you may serve the Laravel application using the `serve` Artisan command:\n\n```bash\n# Serve the application...\nphp artisan serve\n```\n\nNext, clone this repository and install its dependencies with `yarn install` or `npm install`. Then, copy the `.env.example` file to `.env.local` and supply the URL of your backend:\n\n```\nNEXT_PUBLIC_BACKEND_URL=http://localhost:8000\n```\n\nFinally, run the application via `npm run dev`. The application will be available at `http://localhost:3000`:\n\n```\nnpm run dev\n```\n\n\u003e Note: Currently, we recommend using `localhost` during local development of your backend and frontend to avoid CORS \"Same-Origin\" issues.\n\n### Authentication Hook\n\nThis Next.js application contains a custom `useAuth` React hook, designed to abstract all authentication logic away from your pages. In addition, the hook can be used to access the currently authenticated user:\n\n```js\nconst ExamplePage = () =\u003e {\n    const { logout, user } = useAuth({ middleware: 'auth' })\n\n    return (\n        \u003c\u003e\n            \u003cp\u003e{user?.name}\u003c/p\u003e\n\n            \u003cbutton onClick={logout}\u003eSign out\u003c/button\u003e\n        \u003c/\u003e\n    )\n}\n\nexport default ExamplePage\n```\n\n\u003e Note: You will need to use [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) (`user?.name` instead of `user.name`) when accessing properties on the user object to account for Next.js's initial server-side render.\n\n### Named Routes\n\nFor convenience, [Ziggy](https://github.com/tighten/ziggy#spas-or-separate-repos) may be used to reference your Laravel application's named route URLs from your React application.\n\n## Contributing\n\nThank you for considering contributing to Breeze Next! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).\n\n## Code of Conduct\n\nIn order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).\n\n## Security Vulnerabilities\n\nPlease review [our security policy](https://github.com/laravel/breeze-next/security/policy) on how to report security vulnerabilities.\n\n## License\n\nLaravel Breeze Next is open-sourced software licensed under the [MIT license](LICENSE.md).\n\n\n\n\n\n\n\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://laravel.com\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\" alt=\"Laravel Logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/laravel/framework/actions\"\u003e\u003cimg src=\"https://github.com/laravel/framework/workflows/tests/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/laravel/framework\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/laravel/framework\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/laravel/framework\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/laravel/framework\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About Laravel\n\nLaravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:\n\n- [Simple, fast routing engine](https://laravel.com/docs/routing).\n- [Powerful dependency injection container](https://laravel.com/docs/container).\n- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.\n- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).\n- Database agnostic [schema migrations](https://laravel.com/docs/migrations).\n- [Robust background job processing](https://laravel.com/docs/queues).\n- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).\n\nLaravel is accessible, powerful, and provides tools required for large, robust applications.\n\n## Learning Laravel\n\nLaravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.\n\nYou may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.\n\nIf you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.\n\n## Laravel Sponsors\n\nWe would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).\n\n### Premium Partners\n\n- **[Vehikl](https://vehikl.com/)**\n- **[Tighten Co.](https://tighten.co)**\n- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**\n- **[64 Robots](https://64robots.com)**\n- **[Cubet Techno Labs](https://cubettech.com)**\n- **[Cyber-Duck](https://cyber-duck.co.uk)**\n- **[Many](https://www.many.co.uk)**\n- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**\n- **[DevSquad](https://devsquad.com)**\n- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**\n- **[OP.GG](https://op.gg)**\n- **[WebReinvent](https://webreinvent.com/?utm_source=laravel\u0026utm_medium=github\u0026utm_campaign=patreon-sponsors)**\n- **[Lendio](https://lendio.com)**\n\n## Contributing\n\nThank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).\n\n## Code of Conduct\n\nIn order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.\n\n## License\n\nThe Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjglchen%2Fchirper-api-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjglchen%2Fchirper-api-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjglchen%2Fchirper-api-token/lists"}