{"id":5487,"date":"2014-09-24T02:10:40","date_gmt":"2014-09-23T17:10:40","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=5487"},"modified":"2014-09-24T02:16:29","modified_gmt":"2014-09-23T17:16:29","slug":"%e4%ba%ba%e6%b0%97%e6%80%a5%e4%b8%8a%e6%98%87%ef%bc%81php%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%80%8claravel%e3%80%8d%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%b-2","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=5487","title":{"rendered":"\u4eba\u6c17\u6025\u4e0a\u6607\uff01PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cLaravel\u300d\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u7c21\u6613\u4f1a\u54e1\u30b5\u30a4\u30c8\u4f5c\u6210\u7de8"},"content":{"rendered":"<p>\u524d\u56de\u3001\u3053\u3061\u3089\u3067<\/p>\n<h3><a href=\"https:\/\/www.webcyou.com\/?p=5425\">\u4eba\u6c17\u6025\u4e0a\u6607\uff01PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cLaravel\u300d\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u301c \u8d77\u52d5\u307e\u3067\u3002<\/a><\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u884c\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f<!--?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?-->\u00a0\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084\u300cartisan\uff08\u30a2\u30fc\u30c6\u30a3\u30b6\u30f3\uff09\u300d\u30b3\u30de\u30f3\u30c9\u306e\u300cmigrate\uff08\u30de\u30a4\u30b0\u30ec\u30fc\u30c8\uff09\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u5468\u308a\u3084\u3001\u7c21\u6613\u306e\u4f1a\u54e1\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u3092\u884c\u306a\u3063\u3066\u884c\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e43804bde599add53209aadcbd76c3f3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e43804bde599add53209aadcbd76c3f3.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-08-10 22.32.28\" width=\"315\" height=\"262\" class=\"alignnone size-full wp-image-5431\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e43804bde599add53209aadcbd76c3f3.png 315w, https:\/\/www.webcyou.com\/wp-content\/uploads\/e43804bde599add53209aadcbd76c3f3-300x249.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u632f\u308a\u8fd4\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u57fa\u672c\u306f\u3053\u3061\u3089\u306e<\/p>\n<p><strong>Laravel\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8<\/strong><\/p>\n<p><a href=\"http:\/\/laravel4.kore1server.com\/docs\/quick\" target=\"_blank\">http:\/\/laravel4.kore1server.com\/docs\/quick<\/a><\/p>\n<p>\u3067\u307e\u3068\u307e\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u5143\u306b\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>Laravel\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306fComposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7ba1\u7406<\/strong>\u306b\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001<strong>Composer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u74b0\u5883<\/strong>\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30af\u3063\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">composer create-project laravel\/laravel=4.1.* your-project-name --prefer-dist<\/pre>\n<p><strong>your-project-name<\/strong> \u306e\u3068\u3053\u308d\u306f\u4efb\u610f\u306e\u540d\u524d\u3067\u3002<\/p>\n<h5>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3<\/h5>\n<p><strong>app\/storage<\/strong> \u4ee5\u4e0b\u306f\u30b5\u30fc\u30d0\u30fc\u304c\u66f8\u304d\u8fbc\u3081\u308b\u3088\u3046\u306b<strong>\u6a29\u9650\u5909\u66f4\u304c\u5fc5\u8981<\/strong>\u3067\u3059\u3002<\/p>\n<h5>Laravel\u306e\u30b5\u30fc\u30d0\u30fc<\/h5>\n<p>PHP5.4\u4ee5\u4e0a\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001<strong>Artisan &#8216;serve&#8217;\u30b3\u30de\u30f3\u30c9<\/strong>\u3067\u3001\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306a\u306e\u3067\u3059\uff01<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">php artisan serve<\/pre>\n<h5>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/h5>\n<p>\u4e3b\u306b\u3001app\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e<\/p>\n<p><strong>views<\/strong><\/p>\n<p><strong>controllers<\/strong><\/p>\n<p><strong>models<\/strong><\/p>\n<p>\u3092\u6271\u3046\u6a5f\u4f1a\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u00a0<strong>app\/config\u00a0<\/strong>\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/4d011f497d979457d9c90a0423a71c9b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/4d011f497d979457d9c90a0423a71c9b.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-23 6.20.56\" width=\"181\" height=\"199\" class=\"alignnone  wp-image-5488\" \/><\/a><\/p>\n<h4>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/h4>\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u306f\u00a0app\/routes.php \u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4f8b\u306b\u7fd2\u3063\u3066\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('users', function() {return 'Users!';});<\/pre>\n<p><strong>\/users<\/strong>\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Users!\u3068\u8868\u793a\u3002<strong>Yeah!<\/strong><\/p>\n<p><strong>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u306e\u6307\u5b9a<\/strong>\u3082\u4ee5\u4e0b\u306e\u69d8\u306a\u8a18\u8ff0\u3067\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('users', 'UserController@getIndex');<\/pre>\n<h4>\u30d3\u30e5\u30fc<\/h4>\n<p>\u30d3\u30e5\u30fc\u306f app\/views\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc \u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4f8b\u306b\u7fd2\u3063\u3066\u3001<strong>layout.blade.php<\/strong>\u3068<strong>users.blade.php<\/strong>\u3092\u4fee\u6b63\u3002<\/p>\n<p><strong>app\/views\/layout.blade.php<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;Laravel\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8&lt;\/h1&gt;\r\n        @yield('content')\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>app\/views\/user.blade.php<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">@extends('layout')@section('content')Users!@stop<\/pre>\n<div>Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3002<\/div>\n<p><strong>Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb<\/strong>\u306f<strong>\u300c\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d.blade.php \u300d<\/strong>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8868\u793a\u3055\u305b\u305f\u3044View\u306e\u8a18\u8ff0\u306f\u3001<strong>View::make(&#8216;\u30d5\u30a1\u30a4\u30eb\u540d&#8217;);<\/strong><\/p>\n<p>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u306e\u3067<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('users', function() {return View::make('users');});<\/pre>\n<p>\u3068\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3002<\/p>\n<p>\u3068\u3053\u3053\u307e\u3067\u51fa\u6765\u305f\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u65b9\u306e\u8a2d\u5b9a\u3078\u3068\u3002<\/p>\n<h4>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h4>\n<p><strong>\u300cartisan\uff08\u30a2\u30fc\u30c6\u30a3\u30b6\u30f3\uff09\u300d\u30b3\u30de\u30f3\u30c9\u306e\u300cmigrate\uff08\u30de\u30a4\u30b0\u30ec\u30fc\u30c8\uff09\u300d\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3001<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b5\u30af\u3063\u3068\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f<strong>\u300capp\/config\/database.php\u300d<\/strong>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">'default' =&gt; 'mysql',<\/pre>\n<p>\u3092\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\uff08mysql\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/p>\n<p><strong>app\/config\/database.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\u301c \u7701\u7565 \u301c\r\n'mysql' =&gt; array(\r\n    'driver' =&gt; 'mysql',\r\n    'host' =&gt; 'localhost',\r\n    'database' =&gt; 'laravel',\r\n    'username' =&gt; 'root',\r\n    'password' =&gt; 'password',\r\n    'charset' =&gt; 'utf8',\r\n    'collation' =&gt; 'utf8_unicode_ci',\r\n    'prefix' =&gt; '',\r\n),\r\n\u301c \u7701\u7565 \u301c<\/pre>\n<p>\u3053\u3061\u3089\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u5834\u5408\u3060\u3068\u3001laravel\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306broot\u6a29\u9650\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u300cpassword\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\uff08artisan\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">php artisan migrate:make create_users_table<\/pre>\n<p><strong>app\/database\/migrations<\/strong> \u4ee5\u4e0b\u306b<strong>\u300c2014_\u25ef\u25ef_\u25ef\u25ef_create_users_table.php\u300d<\/strong>\u306e\u69d8\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u3001up\u3068down\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>2014_\u25ef\u25ef_\u25ef\u25ef_create_users_table.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">public function up() {\u00a0\r\n    Schema::create('users', function($table) {\r\n        $table-&gt;increments('id');\r\n        $table-&gt;string('email')-&gt;unique();\r\n        $table-&gt;string('name');\r\n        $table-&gt;timestamps();\r\n    });\r\n}\r\n\r\npublic function down() {\r\n    Schema::drop('users');\r\n}<\/pre>\n<p>\u305d\u308c\u305e\u308c\u3001<strong>up\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308b\u5909\u66f4\u3092\u8a18\u8ff0<\/strong>\u3001<strong>down\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u305d\u306e\u5909\u66f4\u3092\u3082\u3068\u306b\u623b\u3059\u6307\u5b9a\uff08\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u6642\u306b\u5b9f\u884c\uff09<\/strong>\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u3092\u8a18\u8ff0\u3057\u30bf\u30fc\u30df\u30ca\u30eb\u3067migrate\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">php artisan migrate<\/pre>\n<p>\u3042\u3063\u3068\u8a00\u3046\u9593\u306b\u3001<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/76acc968a1f796ccb9a0f6cde2501001.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/76acc968a1f796ccb9a0f6cde2501001.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-21 22.39.41\" width=\"366\" height=\"190\" class=\"alignnone  wp-image-5489\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/76acc968a1f796ccb9a0f6cde2501001.png 458w, https:\/\/www.webcyou.com\/wp-content\/uploads\/76acc968a1f796ccb9a0f6cde2501001-300x155.png 300w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/a><\/p>\n<h4>Eloquent ORM<\/h4>\n<p>\u3053\u308c\u307e\u305f\u4fbf\u5229\u306a\u6a5f\u80fd\u306e\u4e00\u3064\u3067\u3001\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306b\u30af\u30a8\u30ea\u30fc\u3057\u3001<strong>\u30e2\u30c7\u30eb\u540d\u306e\u8907\u6570\u5f62\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong>\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e2\u30c7\u30eb\u3068\u306a\u308b\u30d5\u30a1\u30a4\u30eb\u306f<strong>\u300capp\/models\u300d<\/strong>\u4ee5\u4e0b\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>phpmyadmin\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3057\u305f\u3089\u300capp\/routes.php\u300d\u3092\u7de8\u96c6\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('users', function() {\r\n    $users = User::all();return View::make('users')-&gt;with('users', $users);\r\n});<\/pre>\n<p><strong>User::all(); \u3067\u5168\u30ec\u30b3\u30fc\u30c9\u3092\u53d6\u5f97<\/strong>\u3002<\/p>\n<p>with\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u30d3\u30e5\u30fc\u306b\u6e21\u3059\u3002<strong>with\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u30ad\u30fc\u3068\u5024\u3092\u6e21\u3057\u3001\u30d3\u30e5\u30fc\u3067\u4f7f\u7528\u3067\u304d\u308b\u5909\u6570\u3092\u6307\u5b9a\u3002<\/strong><\/p>\n<h4>\u30c7\u30fc\u30bf\u8868\u793a<\/h4>\n<p>\u30d3\u30e5\u30fc\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u300capp\/views\/user.blade.php\u300d\u3092\u7de8\u96c6\u3002<\/p>\n<p><strong>app\/views\/user.blade.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">@extends('layout')\r\n@section('content')\r\n@foreach($users as $user)\r\n    &lt;p&gt;{{$user-&gt;id}} {{ $user-&gt;name }}&lt;\/p&gt;\r\n    &lt;p&gt;{{ $user-&gt;email }}&lt;\/p&gt;\r\n@endforeach\r\n@stop<\/pre>\n<p>\u4fee\u6b63\u3057\u305f\u3089\u30d6\u30e9\u30a6\u30b6\u3067 \/users\u306b\u30a2\u30af\u30bb\u30b9\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/a2c69f80bac45d45f93035ee17e994bd.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/a2c69f80bac45d45f93035ee17e994bd.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-23 7.36.20\" width=\"202\" height=\"145\" class=\"alignnone size-full wp-image-5490\" \/><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u8868\u793a\u3059\u308c\u3070\u6210\u529f\uff01<\/p>\n<h4>\u8d85\u7c21\u6613\u4f1a\u54e1\u30b5\u30a4\u30c8\u4f5c\u6210<\/h4>\n<p>\u3068\u3053\u3053\u307e\u3067\u3001\u57fa\u672c\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u3092\u66f8\u3044\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u65e9\u901f\u3001\u7c21\u6613\u4f1a\u54e1\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u300cLaravel\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u51e6\u7406\u306e\u304b\u304d\u304b\u305f\u300d\u304c\u30b5\u30af\u3063\u3068\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u3001<\/p>\n<p>\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p id=\"logo\"><strong>IT\u5c4b\u3060\u3051\u3069\u3001\u306a\u306b\u304b\uff1f<\/strong><\/p>\n<p><a href=\"http:\/\/blog.e2info.com\/2013\/07\/04\/phplaravel_auth\/\" target=\"_blank\">http:\/\/blog.e2info.com\/2013\/07\/04\/phplaravel_auth\/<\/a><\/p>\n<p>\u30db\u30f3\u306e\u3061\u3087\u3063\u3068\u4fee\u6b63\u3057\u3066\u3001\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30da\u30fc\u30b8\u3068\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">composer create-project laravel\/laravel=4.1.* laravel_members --prefer-dist<\/pre>\n<p>\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3002\uff08\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306flaravel_members\uff09<\/p>\n<p><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">reate database laravel_member<\/pre>\n<p><strong>app\/config\/database.php<\/strong> \u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3089\u3001 \u7d9a\u3044\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u3092\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::when('', 'auth');\r\n\r\nRoute::get('\/login', function() {\r\n    return View::make('user\/login');\r\n});\r\n\r\nRoute::post('\/login', array('before' =&gt; 'csrf', function() {\r\n    $inputs = Input::only(array('name', 'password'));\r\n    if ( Auth::attempt($inputs) ) {\r\n        return View::make(&quot;user\/profile&quot;);\r\n    } else {\r\n        return Redirect::back()-&gt;withInput();\r\n    }\r\n}));<\/pre>\n<p>\u3092\u8ffd\u52a0\u3002<\/p>\n<p>Route::when(&#8221;, &#8216;auth&#8217;);\u3067\u5168\u3066\u306e\u30d9\u30fc\u30b8\u3067\u8a8d\u8a3c\u306e\u6709\u52b9\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u90e8\u5206\u7684\u306b\u3082\u53ef\u80fd\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::when(\u2018admin\/*\u2019, \u2018admin\u2019);<\/pre>\n<p>\u7d9a\u3044\u3066View\u306e\u4f5c\u6210\u3002\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u884c\u304d\u307e\u3059\u3002<\/p>\n<h5>\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8<\/h5>\n<p><strong>user\/login.blade.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">@if ( Auth::guest() )\r\n    \u672a\u30ed\u30b0\u30a4\u30f3\r\n@else\r\n    \u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u3067\u3059\r\n@endif\r\n\r\n{{ Form::open() }}\r\n    {{ Form::label(&quot;name&quot;, &quot;Username&quot;) }}\r\n    {{ Form::text(&quot;name&quot;, Input::old('name', ''), &#x5B; &quot;placeholder&quot; =&gt; &quot;web\u5e33&quot; ]) }}\r\n    {{ Form::label(&quot;password&quot;, &quot;Password&quot;) }}\r\n    {{ Form::password(&quot;password&quot;, &#x5B; &quot;placeholder&quot; =&gt; &quot;password&quot; ]) }}\r\n    @if ($error = $errors-&gt;first(&quot;password&quot;))\r\n        &lt;div class=&quot;error&quot;&gt; {{ $error }} &lt;\/div&gt;\r\n    @endif {{ Form::submit(&quot;login&quot;) }}\r\n{{ Form::close() }}<\/pre>\n<h5>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8<\/h5>\n<p>user\/profile.blade.php<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;h2&gt;\u3044\u3089\u3063\u3057\u3083\u3044\u3001{{ Auth::user()-&gt;name }}\u3055\u3093&lt;\/h2&gt;\r\n&lt;p&gt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u30da\u30fc\u30b8\u30d8\u3088\u3046\u3053\u305d\u3002&lt;\/p&gt;<\/pre>\n<p>Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u95a2\u3057\u3066\u306f\u3044\u3064\u304b\u307e\u3068\u3081\u3089\u308c\u305f\u3089\u3068\u601d\u3044\u3064\u3064\u3002\u3002\u3002<br \/>\n\u3053\u3053\u307e\u3067\u3067\u4e00\u901a\u308a\u5b8c\u4e86\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u5f37\u5f15\u306b\u4f5c\u6210\u3059\u308b\u8a18\u8ff0\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u542b\u3081\u307e\u3059\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('\/create-users-table', function() {\r\n\tSchema::create('users', function($table) {\r\n\t\t$table-&gt;increments('id');\r\n\t\t$table-&gt;string('name', 100);\r\n\t\t$table-&gt;string('password', 100);\r\n\t\t$table-&gt;timestamps();\r\n\t});\r\n\t\r\n\t$user = new User;\r\n\t$user-&gt;name = 'user';\r\n\t$user-&gt;password = Hash::make('password');\r\n\t$user-&gt;save();\r\n\t\t\r\n\treturn '\u30c6\u30fc\u30d6\u30eb\u4f5c\u6210';\r\n});<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067 \/create-users-table \u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30b5\u30af\u3063\u3068\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3061\u3083\u3044\u307e\u3059\uff01 \u00a0<\/p>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u306e\u51e6\u7406\u3082\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::get('\/logout', function() {\r\n    Auth::logout();\r\n    return Redirect::to('\/login');\r\n});<\/pre>\n<p>\u3053\u308c\u3067\u3001\u8d85\u7c21\u6613\u30ed\u30b0\u30a4\u30f3\u30c6\u30b9\u30c8\u5b8c\u6210\uff01<\/p>\n<p>\/login \u3092\u30a2\u30af\u30bb\u30b9\u3057\u3001 username\u306b\u300cuser\u300dpassword\u306b\u300cpassword\u300d\u3092\u5165\u529b\u3057\u3001submit\u3092\u62bc\u3059\u3068<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-24 1.39.24\" width=\"414\" height=\"60\" class=\"alignnone  wp-image-5497\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0.png 517w, https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0-300x43.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/a>\n<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e212489ae45b8065ac089d38ce509629.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e212489ae45b8065ac089d38ce509629.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-24 1.42.20\" width=\"234\" height=\"74\" class=\"alignnone  wp-image-5498\" \/><\/a><\/p>\n<p>\u304d\u3061\u3093\u3068\u98db\u3093\u3060\u3002\/logout \u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u518d\u3073\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30bd\u30fc\u30b9\u306f\u4ee5\u4e0b\u306eURL\u306b\u3042\u308a\u307e\u3059\u3002\uff08\u30d6\u30e9\u30f3\u30c1\uff1afeature\/minimum\uff09<\/p>\n<p><strong>GitHub : webcyou<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/webcyou\/laravel_members\/tree\/feature\/minimum\" target=\"_blank\">https:\/\/github.com\/webcyou\/laravel_members\/tree\/feature\/minimum<\/a><\/p>\n<h4>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f7f\u3063\u305f\u8a18\u8ff0<\/h4>\n<p>\u4e0a\u8a18\u306e\u4f5c\u6210\u65b9\u6cd5\u306f\u8d85\u624b\u8efd\u306b\u4f5c\u3063\u305f\u306e\u3067\u3001\u4eca\u5ea6\u306fLaravel\u3063\u307d\u304f\u3001Controller\u3092\u4f7f\u3063\u305f\u8a18\u8ff0\u3092\u884c\u306a\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001routes.php\u306e\u7cbe\u67fb\u3092\u884c\u306a\u3063\u3066\u884c\u304d\u307e\u3059\u3002<\/p>\n<p><strong>app\/routes.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::group(&#x5B;&quot;before&quot;=&gt;&quot;guest&quot;],function() {<\/pre>\n<p>\u3068\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3092\u884c\u3044\u3001<strong>\u8a8d\u8a3c\u524d\u306eguest\u72b6\u614b\u3068\u8a8d\u8a3c\u5f8c\u3067\u632f\u5206\u3051<\/strong>\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Route::group(&#x5B;&quot;before&quot;=&gt;&quot;guest&quot;],function() {\r\n    Route::any(&quot;\/login&quot;, &#x5B;\r\n        &quot;as&quot; =&gt; &quot;user\/login&quot;,\r\n        &quot;uses&quot; =&gt; &quot;UserController@loginAction&quot;\r\n    ]);\r\n});\r\n\r\nRoute::group(&#x5B;&quot;before&quot;=&gt;&quot;auth&quot;],function() {\r\n\r\n    Route::any(&quot;\/profile&quot;, &#x5B;\r\n        &quot;as&quot; =&gt; &quot;user\/profile&quot;,\r\n        &quot;uses&quot; =&gt; &quot;UserController@profileAction&quot;\r\n    ]);\r\n\r\n    Route::any(&quot;\/logout&quot;, &#x5B;\r\n        &quot;as&quot; =&gt; &quot;\/&quot;,\r\n        &quot;uses&quot; =&gt; &quot;UserController@logoutAction&quot;\r\n    ]);\r\n});<\/pre>\n<p>&#8220;before&#8221;=&gt;&#8221;guest&#8221;\u3067\u8a8d\u8a3c\u524d\u3002&#8221;before&#8221;=&gt;&#8221;auth&#8221;\u3067\u8a8d\u8a3c\u5f8c\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u4f5c\u6210\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306fcontrollers\/ \u4ee5\u4e0b\u306b\u683c\u7d0d\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>app\/controllers\/UserController.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;?php\r\n\r\nclass UserController extends Controller {\r\n\r\n    public function loginAction() {\r\n        if (Input::server(&quot;REQUEST_METHOD&quot;) == &quot;POST&quot;) {\r\n            $validator = Validator::make(Input::all(), &#x5B;\r\n                &quot;name&quot; =&gt; &quot;required&quot;,\r\n                &quot;password&quot; =&gt; &quot;required&quot;\r\n            ]);\r\n            if ($validator-&gt;passes()) {\r\n                $credentials = &#x5B;\r\n                    &quot;name&quot; =&gt; Input::get(&quot;name&quot;),\r\n                    &quot;password&quot; =&gt; Input::get(&quot;password&quot;)\r\n                ];\r\n                if (Auth::attempt($credentials)) {\r\n                    return Redirect::route(&quot;user\/profile&quot;);\r\n                }\r\n            } else {\r\n                $data&#x5B;&quot;name&quot;] = Input::get(&quot;name&quot;);\r\n                return Redirect::route(&quot;user\/login&quot;)-&gt;withInput($data);\r\n            }\r\n        }\r\n        return View::make(&quot;user\/login&quot;);\r\n    }\r\n\r\n    public function profileAction() {\r\n        return View::make(&quot;user\/profile&quot;);\r\n    }\r\n    \r\n    public function logoutAction() {\r\n        Auth::logout();\r\n        return Redirect::to(&quot;\/login&quot;);\r\n    }\r\n}\r\n<\/pre>\n<p>\u5b8c\u6210\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306f\u540c\u69d8\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9756336be78c42a6a64a388cd0fdffe0.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-24 1.39.24\" width=\"414\" height=\"60\" \/><\/a><\/p>\n<p>username\u306b\u300cuser\u300dpassword\u306b\u300cpassword\u300d\u3092\u5165\u529b\u3057\u3001submit\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u306b\u884c\u3063\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e212489ae45b8065ac089d38ce509629.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e212489ae45b8065ac089d38ce509629.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-24 1.42.20\" width=\"234\" height=\"74\" \/><\/a><\/p>\n<p>logout\u3092\u884c\u3046\u305f\u3081\u3001\/logout\u3092\u53e9\u3053\u3046\u3068\u3059\u308b\u3068\u3001\u3069\u3046\u3082\u4e0a\u624b\u304f\u884c\u304b\u305a\u3001<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/0925c8ad511f7f32599447c688beb9b1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/0925c8ad511f7f32599447c688beb9b1.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-20 1.49.26\" width=\"394\" height=\"90\" class=\"alignnone  wp-image-5499\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/0925c8ad511f7f32599447c688beb9b1.png 493w, https:\/\/www.webcyou.com\/wp-content\/uploads\/0925c8ad511f7f32599447c688beb9b1-300x68.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>config\/app.php<\/strong> \u306e<\/p>\n<p><strong>&#8216;debug&#8217; =&gt; false<\/strong>, \u3092\u00a0<strong>&#8216;debug&#8217; =&gt; true<\/strong><\/p>\n<p>\u306b\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u5909\u66f4\u3057\u305f\u3068\u3053\u308d\u3001<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6a294e4c438443030207b241307ac988.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6a294e4c438443030207b241307ac988.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-09-24 0.57.37\" width=\"319\" height=\"85\" class=\"alignnone size-full wp-image-5496\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/6a294e4c438443030207b241307ac988.png 319w, https:\/\/www.webcyou.com\/wp-content\/uploads\/6a294e4c438443030207b241307ac988-300x79.png 300w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/a><\/p>\n<p>\u3068\u6012\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001<strong>remember_token \u30ab\u30e9\u30e0\u304c\u5fc5\u8981<\/strong>\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306b\u3082\u8a18\u8f09\u3057\u3066\u3044\u308b\u3068\u304a\u308a\u3001<\/p>\n<p><a href=\"http:\/\/laravel4.kore1server.com\/docs\/security\" target=\"_blank\">http:\/\/laravel4.kore1server.com\/docs\/security<\/a><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u3068\u308a\u304b\u304b\u308b\u524d\u306b\u3001users\u30c6\u30fc\u30d6\u30eb\uff08\u3082\u3057\u304f\u306f\u30e6\u30fc\u30b6\u30fc\u3092\u7ba1\u7406\u3059\u308b\u30c6\u30fc\u30d6\u30eb\uff09\u306b\u3001null\u3092\u8a31\u3057(nullable)\u3001\u9577\u3055\uff11\uff10\uff10\u6587\u5b57\u306e\u6587\u5b57\u5217\u3067\u3001remember_token\u30ab\u30e9\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30ab\u30e9\u30e0\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067&#8221;Remember me&#8221;\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u30c8\u30fc\u30af\u30f3\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304f\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30ab\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u3068\u306e\u3053\u3068\u3067\u3059\u306e\u3067\u3001remember_token\u30ab\u30e9\u30e0\u3092\u4f5c\u6210\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001logout\u51e6\u7406\u3082\u884c\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089\u3067\u78ba\u8a8d\u51fa\u6765\u307e\u3059\u3002\u30d6\u30e9\u30f3\u30c1\uff1afeature\/controller\uff09<\/p>\n<p><strong>GitHub :\u00a0<strong>webcyou<\/strong><\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/webcyou\/laravel_members\/tree\/feature\/controller\" target=\"_blank\">https:\/\/github.com\/webcyou\/laravel_members\/tree\/feature\/controller<\/a><\/p>\n<p>\u6b21\u56de\u306f\u66f4\u306b\u4f5c\u308a\u8fbc\u3081\u305f\u3089\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3001\u3053\u3061\u3089\u3067 \u4eba\u6c17\u6025\u4e0a\u6607\uff01PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cLaravel\u300d\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u301c \u8d77\u52d5\u307e\u3067\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u884c\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u00a0\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084\u300cartisan\uff08\u30a2\u30fc\u30c6\u30a3\u30b6\u30f3\uff09\u300d\u30b3\u30de\u30f3\u30c9\u306e\u300cmig [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[107,180,173,150,44,45,78,118],"class_list":{"0":"post-5487","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-php","7":"tag-mamp","8":"tag-mysql","9":"tag-php","10":"tag-vagrant","11":"tag-web","13":"tag-78","14":"tag-118"},"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5487"}],"version-history":[{"count":5,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5487\/revisions"}],"predecessor-version":[{"id":5502,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5487\/revisions\/5502"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}