{"id":32588458,"url":"https://github.com/dashawk/laravel-blog","last_synced_at":"2026-06-14T16:34:30.298Z","repository":{"id":19838428,"uuid":"23099979","full_name":"dashawk/laravel-blog","owner":"dashawk","description":null,"archived":false,"fork":false,"pushed_at":"2014-08-20T09:28:17.000Z","size":500,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T23:57:44.558Z","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/dashawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-19T06:50:10.000Z","updated_at":"2014-08-19T06:52:02.000Z","dependencies_parsed_at":"2022-07-08T01:00:29.747Z","dependency_job_id":null,"html_url":"https://github.com/dashawk/laravel-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dashawk/laravel-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashawk%2Flaravel-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashawk%2Flaravel-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashawk%2Flaravel-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashawk%2Flaravel-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashawk","download_url":"https://codeload.github.com/dashawk/laravel-blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashawk%2Flaravel-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34327800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":[],"created_at":"2025-10-29T23:57:31.331Z","updated_at":"2026-06-14T16:34:30.294Z","avatar_url":"https://github.com/dashawk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Blog\n============\n\nThis is a simple Laravel Blog Application.\n\nRequirements\n------------\n\n1. PHP 5.4 or Higher\n\nDatabase\n========\n\nTo create the database, run this code in your terminal:\n\n\tphp artisan migrate --seed\n\t\nThis will create the datababse for you and then populate the tables with sample records.\n\nOn displaying a single post, I made the url to be seo friendly. The permalink structure is:\n\t\n\tdomain.com/post/[post-name]\n\t\nI created a helper function inside my helper file where I put a function that converts the post title like this:\n\n\tThe Post Title =\u003e the-post-title\n\tthe function that is responsible for this is called ```php blogUrl($title, $revert = false) ```\n\t\nAnd when querying by matching the post title, I just supplied true for reverting the post title into its original string.\n\t\nDocumentation\n=============\n\nThis app is using the built-in Blade Template. In the views folder you will see the template folder. This folder handles the templating of the whole site.\n\nIn the routes.php, you will see 3 routes listed, each route is commented and is self explanatory. I use RESTful resource provided by [Laravel](http://laravel.com)\nfor the posts.\n\nThis project only uses 3 controllers:\n\t\n\tHomeController.php - This controller handles the homepage\n\tPostController.php - This controller handles the posts (  more likely CRUD but not CRUD )\n\tCategoryController.php - This handles the posts by category\n\t\nI only used 2 models in this project namely:\n\n\tPost.php\n\tCategory.php\n\nI keep the controllers and the models as slim as possible though I had a hard time dealing with relations in Eloquent.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashawk%2Flaravel-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashawk%2Flaravel-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashawk%2Flaravel-blog/lists"}