{"id":19685006,"url":"https://github.com/boolfalse/laravel-sanctum-api","last_synced_at":"2026-05-01T21:35:22.300Z","repository":{"id":114182048,"uuid":"383217279","full_name":"boolfalse/laravel-sanctum-api","owner":"boolfalse","description":"Laravel 8 Sanctum API with SQLite","archived":false,"fork":false,"pushed_at":"2021-08-18T19:39:24.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T15:47:44.352Z","etag":null,"topics":["laravel","sanctum","sqlite"],"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/boolfalse.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":"2021-07-05T17:27:21.000Z","updated_at":"2021-08-24T11:45:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"94253e44-0668-497c-9d95-080196c33dab","html_url":"https://github.com/boolfalse/laravel-sanctum-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boolfalse/laravel-sanctum-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolfalse%2Flaravel-sanctum-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolfalse%2Flaravel-sanctum-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolfalse%2Flaravel-sanctum-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolfalse%2Flaravel-sanctum-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boolfalse","download_url":"https://codeload.github.com/boolfalse/laravel-sanctum-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolfalse%2Flaravel-sanctum-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32513957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["laravel","sanctum","sqlite"],"created_at":"2024-11-11T18:19:39.990Z","updated_at":"2026-05-01T21:35:22.272Z","avatar_url":"https://github.com/boolfalse.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Sanctum REST API with SQLite (Laravel v8).\n\n### Prerequisites:\n\n- PHP, PHP-CLI \u003e=7.4 \u0026 Composer;\n- Apache webserver;\n- SQLite driver installed;\n\n### Installation:\n\n```\ngit clone \u003cREPOSITORY_ADDRESS\u003e laravel-sanctum-api\ncd laravel-sanctum-api/\n```\n\n- Install SQLite driver for UNIX OS and \".env\".\n```\nsudo apt update\nsudo apt install php-sqlite3\nsudo apt install php7.4-sqlite3\nsudo systemctl restart apache2\n```\n\n- [About Setup](https://stackoverflow.com/a/37266353) Laravel resources (files/folders) ownerships/permissions\n```\n# one-time command\nsudo usermod -a -G www-data $USER\n\n# setup ownerships/permissions\nsudo chown -R $USER:www-data storage/ bootstrap/cache/\nsudo chgrp -R www-data storage bootstrap/cache/\nsudo chmod -R ug+rwx storage bootstrap/cache/\n\n# setup SQLite file write permissions for avoiding this error:\n# SQLSTATE[HY000]General Error: 8 attempt to write a readonly database\n# NOTE: we will work on \"database\" folder, but not only on \"database.sqlite\" file\nsudo chgrp -R www-data database/\nchown -R $USER database/\n\n# after this make sure you have appropriate permission/ownership\n# for \"database/database.sqlite\" file\ncd database/\nstat -c \"%a %n\" *\nls -la\n```\n\n- Add \"Accept: application/json\" to the POST,PUT,DELETE API-endpoints.\n\n### Resources:\n\n- [Postman Collection shared public link](https://www.getpostman.com/collections/04fd3912e4c490df29da)\n- [Traversy Media - Mar 31, 2021 - Laravel 8 REST API With Sanctum Authentication](https://www.youtube.com/watch?v=MT-GJQIY3EU)\n- [Brad Traversy - Laravel Sanctum API](https://github.com/bradtraversy/laravel-sanctum-api)\n- [Laravel Sanctum - official documentation](https://laravel.com/docs/8.x/sanctum)\n- [failed to open stream: Permission denied](https://stackoverflow.com/a/48794292)\n- [Permission denied \".../storage/logs/laravel.log could not be opened\"](https://github.com/BookStackApp/BookStack/issues/436#issuecomment-395964366)\n\n### Developed by:\n\n[BoolFalse](https://boolfalse.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolfalse%2Flaravel-sanctum-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboolfalse%2Flaravel-sanctum-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolfalse%2Flaravel-sanctum-api/lists"}