{"id":23159178,"url":"https://github.com/uptutu/yattao","last_synced_at":"2025-04-04T18:42:08.720Z","repository":{"id":37517614,"uuid":"160787490","full_name":"uptutu/Yattao","owner":"uptutu","description":"个人博客源码","archived":false,"fork":false,"pushed_at":"2023-01-04T21:52:29.000Z","size":19897,"stargazers_count":2,"open_issues_count":20,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-10T03:47:53.531Z","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/uptutu.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}},"created_at":"2018-12-07T07:25:29.000Z","updated_at":"2022-03-30T04:25:31.000Z","dependencies_parsed_at":"2023-02-02T21:15:50.400Z","dependency_job_id":null,"html_url":"https://github.com/uptutu/Yattao","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptutu%2FYattao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptutu%2FYattao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptutu%2FYattao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptutu%2FYattao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uptutu","download_url":"https://codeload.github.com/uptutu/Yattao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234844,"owners_count":20905852,"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":[],"created_at":"2024-12-17T22:32:21.251Z","updated_at":"2025-04-04T18:42:08.698Z","avatar_url":"https://github.com/uptutu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About this Project\n\nThis project is my first personal Web in the Internet.\n\nYou can browse Yattao[https://www.yattao.top] to visit this complete.\n\n\n\n## Power By\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://laravel.com/assets/img/components/logo-laravel.svg\"\u003e\u003c/p\u003e\n\n\n\n## Technology stack\n\nHTML\n\nCSS\n\nJS\n\nPHP7.2+\n\nMySQL5.8+\n\nBootstrap 4\n\nLaravel6\n\n\n## Target of This Project\n\n- Message Board\n- Blog\n- User Login\n- Push this Web application in Internet\n\n## Core Code\n\nMessage Board Core Code\n\n```PHP\nclass MsgBoardController extends Controller\n{\n\n    public function __construct()\n    {\n        $this-\u003emiddleware('auth')-\u003eexcept(['index',]);\n    }\n\n\n    public function index()\n    {\n        $msgs = Msg::orderBy('created_at', 'desc')-\u003eget();\n        return view('models.messageboard', compact('msgs'));\n    }\n\n    public function store(Request $request, Msg $msg)\n    {\n        $user_id = Auth::id();\n        $content = clean( $request-\u003einput('content'), 'default');\n        if (!empty($content)){\n            $msg-\u003euser_id = $user_id;\n            $msg-\u003econtent = $content;\n            $msg-\u003esave();\n            return redirect()-\u003eto(route('msgs.index'))-\u003ewith('success', '留言成功！');\n        } else {\n            return redirect()-\u003eto(route('msgs.index'))-\u003ewith('danger', '留言失败！');\n        }\n    }\n\n    public function destroy(Msg $msg)\n    {\n        $this-\u003eauthorize('delete', $msg);\n        $msg-\u003edelete();\n        return redirect()-\u003eto(route('msgs.index'))-\u003ewith('success', '成功删除留言');\n    }\n\n}\n```\n\n## Summaries\n\nMastering the use of the Laravel framework allows you to quickly develop a WEB application based on Laravel and familiarize yourself with using bootstrap to build front-end pages.\n\nThird-party cloud chip behavior verification is used as additional validation.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuptutu%2Fyattao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuptutu%2Fyattao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuptutu%2Fyattao/lists"}