{"id":624,"date":"2023-02-26T11:05:54","date_gmt":"2023-02-26T03:05:54","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=624"},"modified":"2023-04-29T20:17:14","modified_gmt":"2023-04-29T12:17:14","slug":"laravel-develop-skills","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/laravel-develop-skills\/","title":{"rendered":"Laravel\u5f00\u53d1\u6280\u5de7"},"content":{"rendered":"<h2>\u63a5\u6536POST\u63d0\u4ea4\u7684JSON<\/h2>\n<pre><code class=\"language-php\">$data = $request-&gt;json()-&gt;all();\n\n$application_id = isset($data[&#039;application_id&#039;]) ? $data[&#039;application_id&#039;] : &#039;&#039;;<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32<\/h2>\n<h3>\u751f\u6210\u56fa\u5b9a\u957f\u5ea6\u7684\u968f\u673a\u5b57\u7b26\u4e32<\/h3>\n<pre><code class=\"language-php\">$string = str_random(32);<\/code><\/pre>\n<h3>\u751f\u6210\u6307\u5b9a\u957f\u5ea6\u8303\u56f4\u7684\u968f\u673a\u5b57\u7b26\u4e32<\/h3>\n<pre><code class=\"language-php\">str_random(random_int(20, 30));<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u6536POST\u63d0\u4ea4\u7684JSON $data = $request-&gt;json()-&gt;all(); $a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}