{"id":12693,"date":"2024-06-02T07:00:34","date_gmt":"2024-06-01T22:00:34","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12693"},"modified":"2024-06-01T11:28:13","modified_gmt":"2024-06-01T02:28:13","slug":"laravel-%e3%81%a7-x%ef%bc%88twitter%ef%bc%89%e3%81%ae%e8%a6%8b%e5%ae%88%e3%82%8a%e6%a9%9f%e8%83%bd%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12693","title":{"rendered":"Laravel \u3067 X\uff08Twitter\uff09\u306e\u898b\u5b88\u308a\u6a5f\u80fd\u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3068\u3057\u3066\u3082\u91cd\u8981\u306a\u4f4d\u7f6e\u3065\u3051\u306b\u306a\u3063\u3066\u3044\u308b<code>SNS<\/code>\u306e\u52c9\u5f37\u3092\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089<code>SNS<\/code>\u306f\u3001<\/p>\n<ul>\n<li>\u5e83\u544a\u3092\u51fa\u3055\u305a\u306b\u5546\u54c1\u3078\u8a98\u5c0e\u3067\u304d\u305f\u308a\u3001<\/li>\n<li>\u4fa1\u5024\u89b3\u3092\u540c\u3058\u306b\u3067\u304d\u308b\u306e\u3067\u63a1\u7528\u3092\u3057\u3084\u3059\u304b\u3063\u305f\u308a\u3001<\/li>\n<li>\u53e3\u30b3\u30df\u304c\u51fa\u308c\u3070\u3055\u3089\u306b\u96c6\u5ba2\u3067\u304d\u308b<\/li>\n<\/ul>\n<p>\u306a\u3069\u30e1\u30ea\u30c3\u30c8\u304c\u591a\u6570\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u9006\u306b\u4e00\u756a\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u3068\u8a00\u3048\u3070\u30fb\u30fb\u30fb<br \/>\n\u305d\u3046\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u708e\u4e0a\u3059\u308b\ud83d\udd25<\/strong><\/p>\n<p>\u53ef\u80fd\u6027\u304c\u3042\u308b\u3063\u3066\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n<p>\u3057\u304b\u3082<code>X<\/code>\uff08<code>Twitter<\/code>\uff09\u306e\u5834\u5408\u306f\u62e1\u6563\u6027\u304c\u3068\u3066\u3082\u9ad8\u3044\u306e\u3067\u4e00\u5ea6\u706b\u304c\u3064\u304f\u3068\u5ef6\u713c\u3057\u3084\u3059\u3044\u3068\u8a00\u308f\u308c\u3066\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u300c<strong>\u30c4\u30a4\u30fc\u30c8\u3092\u627f\u8a8d\u5f0f\u306b\u3057\u3066\u3001\u4e8b\u524d\u306b\u8ab0\u304b\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3089\u308c\u308b<\/strong>\u300d\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9470 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/08\/no_13.png\" alt=\"\" width=\"294\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/08\/no_13.png 294w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/08\/no_13-276x300.png 276w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/>\u300c\u30d3\u30c3\u30af\u30ea\u30de\u30f3\u30c1\u30e7\u30b3\u3001<br \/>\n\u7f8e\u5473\u3057\u304b\u3063\u305f\u306a\u3041\u3002<br \/>\n\u624b\u306e\u611f\u899a\u304c\u5f53\u6642\u3068\u4e00\u7dd2\u3060\u3057\ud83d\ude0a\u2728\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 11.x<\/p>\n<h1>\u5b9f\u88c5\u3059\u308b\u6a5f\u80fd\u306e\u6982\u8981<\/h1>\n<p>\u4eca\u56de\u306f\u3001\u4f8b\u3048\u3070\u300c<strong>\u30a2\u30a4\u30c9\u30eb\u3068\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3055\u3093<\/strong>\u300d\u306e\u3088\u3046\u306a\u95a2\u4fc2\u3092\u8003\u3048\u3066\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001<\/p>\n<ul>\n<li>\u30a2\u30a4\u30c9\u30eb\u3055\u3093\u304c\u4eca\u56de\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u30c4\u30a4\u30fc\u30c8\u3092\u767b\u9332\u3059\u308b<\/li>\n<li>\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3055\u3093\u306b\u30e1\u30fc\u30eb\u3067\u6587\u7ae0\u304c\u5c4a\u304f<\/li>\n<li>\u30c1\u30a7\u30c3\u30af\u3057\u3066\u554f\u984c\u306a\u3051\u308c\u3070\u3001\u30c4\u30a4\u30fc\u30c8\u3092\u8a31\u53ef\u3057\u5b9f\u969b\u306b X \u3078\u53cd\u6620\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u306e\u3067\u3001\u3082\u3057\u304b\u3059\u308b\u3068\u300c<strong>\u65b0\u4eba\u3055\u3093\u306b\u30c4\u30a4\u30fc\u30c8\u3092\u4efb\u305b\u308b\u3051\u3069\u3061\u3087\u3063\u3068\u5fc3\u914d<\/strong>\u2026\u300d\u3068\u3044\u3063\u305f\u30b1\u30fc\u30b9\u306b\u3082\u4f7f\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\ud83d\udc4d<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u3059\u3067\u306b<code>Twitter API<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u4ee5\u4e0b\uff14\u3064\u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<ul>\n<li>CONSUMER KEY\uff08API Key)<\/li>\n<li>CONSUMER SECRET \uff08API Secret\uff09<\/li>\n<li>ACCESS TOKEN\uff08Access Token\uff09<\/li>\n<li>ACCESS SECRET\uff08Access Secret\uff09<\/li>\n<\/ul>\n<p>\u306a\u304a\u3001API\u306e\u767b\u9332\u3084\u30ad\u30fc\u306e\u53d6\u5f97\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<p><strong>\ud83d\udcdd\u00a0<a href=\"https:\/\/zenn.dev\/eito_blog\/articles\/a982fdb073493a\" target=\"_blank\" rel=\"noopener\">\u30102023\u5e74\u5ea6\u6700\u65b0\u7248\u3011Twitter API \u53d6\u5f97\u65b9\u6cd5<\/a><\/strong><\/p>\n<p>\u305d\u3057\u3066\u3001\uff14\u3064\u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001<code>.env<\/code>\u306b\u30bb\u30c3\u30c8\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<div>\n<pre><strong>TWITTER_CONSUMER_KEY=\"\uff08\u3053\u3053\u306bAPI Key\uff09\"<\/strong>\r\n<strong>TWITTER_CONSUMER_SECRET=\"\uff08\u3053\u3053\u306bAPI Key Secret\uff09\"<\/strong>\r\n<strong>TWITTER_ACCESS_TOKEN=\"\uff08\u3053\u3053\u306bAccess Token\uff09\"<\/strong>\r\n<strong>TWITTER_ACCESS_TOKEN_SECRET=\"\uff08\u3053\u3053\u306bAccess Token Secret\uff09\"<\/strong><\/pre>\n<\/div>\n<p>\u203b \u307e\u305f\u3001\u4eca\u56de\u306f\u300c<strong>\u30c4\u30a4\u30fc\u30c8\u306e\u627f\u8a8d\u90e8\u5206<\/strong>\u300d\u304c\u30e1\u30a4\u30f3\u306a\u306e\u3067\u30c4\u30a4\u30fc\u30c8\u306e\u4fdd\u5b58\u306a\u3069\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u6b21\u306b\u30c4\u30a4\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>composer require abraham\/twitteroauth<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u3067\u306f\u5b9f\u969b\u306b\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/span><\/p>\n<\/div>\n<h1>DB\u307e\u308f\u308a\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5468\u308a\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u6c17\u306b\u3064\u304f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\uff01<\/p>\n<div>\n<pre><strong>php artisan make:model Tweet -m<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Models\/Tweet.php<\/strong><\/p>\n<\/div>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use App\\Events\\TweetSaved;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class Tweet extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    protected $dispatchesEvents = [<\/strong>\r\n<strong>        'saved' =&gt; TweetSaved::class,<\/strong>\r\n<strong>    ];<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u306a\u304a\u3001\u3053\u306e\u4e2d\u306e<code>TweetSaved<\/code>\u30a4\u30d9\u30f3\u30c8\u306f\u6b21\u3067\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_create_tweets_table.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Migrations\\Migration;<\/strong>\r\n<strong>use Illuminate\\Database\\Schema\\Blueprint;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Schema;<\/strong>\r\n\r\n<strong>return new class extends Migration<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Run the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function up(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::create('tweets', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;string('body')-&gt;comment('\u30c4\u30a4\u30fc\u30c8\u672c\u6587');<\/strong>\r\n<strong>            $table-&gt;dateTime('tweeted_at')-&gt;nullable()-&gt;comment('\u30c4\u30a4\u30fc\u30c8\u65e5\u6642');<\/strong>\r\n<strong>            $table-&gt;timestamps();<\/strong>\r\n<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Reverse the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function down(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::dropIfExists('tweets');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>};<\/strong><\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12700\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_6.png\" alt=\"\" width=\"385\" height=\"260\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_6.png 385w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_6-300x203.png 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/p>\n<\/div>\n<div>\n<h1>\u30a4\u30d9\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30e2\u30c7\u30eb\u306e\u4e2d\u3067\u30bb\u30c3\u30c8\u3057\u305f<code>TweetSaved<\/code>\u3092\u3064\u304f\u3063\u3066\u3001\u300c<strong>Tweet\u30e2\u30c7\u30eb\u3067\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u305f\u3089\u81ea\u52d5\u3067\u5b9f\u884c\u3055\u308c\u308b<\/strong>\u300d\u30b3\u30fc\u30c9\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:event TweetSaved<\/strong><\/pre>\n<p>\u203b\u306a\u304a\u3001\u5909\u66f4\u3057\u305f\u3068\u304d\u3082\u901a\u77e5\u3067\u304d\u308b\u3088\u3046\u306b<code>saved<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Events\/TweetSaved.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Events;<\/strong>\r\n\r\n<strong>use App\\Mail\\TweetPosted;<\/strong>\r\n<strong>use App\\Models\\Tweet;<\/strong>\r\n<strong>use Illuminate\\Broadcasting\\Channel;<\/strong>\r\n<strong>use Illuminate\\Broadcasting\\InteractsWithSockets;<\/strong>\r\n<strong>use Illuminate\\Broadcasting\\PresenceChannel;<\/strong>\r\n<strong>use Illuminate\\Broadcasting\\PrivateChannel;<\/strong>\r\n<strong>use Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast;<\/strong>\r\n<strong>use Illuminate\\Foundation\\Events\\Dispatchable;<\/strong>\r\n<strong>use Illuminate\\Queue\\SerializesModels;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Mail;<\/strong>\r\n\r\n<strong>class TweetSaved<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use Dispatchable, InteractsWithSockets, SerializesModels;<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Create a new event instance.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function __construct(Tweet $tweet)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $to = 'manager@example.com'; \/\/ \u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n\r\n<strong>        Mail::to($to)-&gt;send(new TweetPosted($tweet)); \/\/ \u30e1\u30fc\u30eb\u9001\u4fe1<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Get the channels the event should broadcast on.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @return array&lt;int, \\Illuminate\\Broadcasting\\Channel&gt;<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function broadcastOn(): array<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [<\/strong>\r\n<strong>            new PrivateChannel('channel-name'),<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>Mailable \u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30c4\u30a4\u30fc\u30c8\u304c\u767b\u9332\u3055\u308c\u305f\u3068\u304d\u306b\uff08\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3055\u3093\u306b\uff09\u9001\u4fe1\u3055\u308c\u308b\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:mail TweetPosted<\/strong><\/pre>\n<p>\u203b\u30a4\u30d9\u30f3\u30c8\u306e<code>TweetSaved<\/code>\u3068\u540d\u524d\u304c\u304b\u3076\u308b\u3068\u9762\u5012\u306a\u306e\u3067<code>TweetPosted<\/code>\u306b\u3057\u307e\u3057\u305f\ud83d\ude0a<\/p>\n<\/div>\n<p>\u3059\u308b\u3068\u3001<code>Mailable<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Mail\/TweetPosted.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Mail;<\/strong>\r\n\r\n<strong>use App\\Models\\Tweet;<\/strong>\r\n<strong>use Illuminate\\Bus\\Queueable;<\/strong>\r\n<strong>use Illuminate\\Contracts\\Queue\\ShouldQueue;<\/strong>\r\n<strong>use Illuminate\\Mail\\Mailable;<\/strong>\r\n<strong>use Illuminate\\Mail\\Mailables\\Content;<\/strong>\r\n<strong>use Illuminate\\Mail\\Mailables\\Envelope;<\/strong>\r\n<strong>use Illuminate\\Queue\\SerializesModels;<\/strong>\r\n\r\n<strong>class TweetPosted extends Mailable<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use Queueable, SerializesModels;<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Create a new message instance.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function __construct(private Tweet $tweet)<\/strong>\r\n<strong>    {}<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Get the message envelope.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function envelope(): Envelope<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Envelope(<\/strong>\r\n<strong>            subject: '\u30c4\u30a4\u30fc\u30c8\u304c\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f',<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Get the message content definition.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function content(): Content<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $tweet_approval_url = route('tweet.approve', ['tweet' =&gt; $this-&gt;tweet-&gt;id]);<\/strong>\r\n\r\n<strong>        return new Content(<\/strong>\r\n<strong>            view: 'emails.tweet_posted',<\/strong>\r\n<strong>            with: [<\/strong>\r\n<strong>                'tweet' =&gt; $this-&gt;tweet,<\/strong>\r\n<strong>                'tweet_approval_url' =&gt; $tweet_approval_url,<\/strong>\r\n<strong>            ],<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Get the attachments for the message.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @return array&lt;int, \\Illuminate\\Mail\\Mailables\\Attachment&gt;<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function attachments(): array<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return [];<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h1>Mailable \u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u306e<code>TweetPosted<\/code>\u306e\u4e2d\u3067\u30bb\u30c3\u30c8\u3057\u305f\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:view emails.tweet_posted<\/strong><\/pre>\n<p><strong>resources\/views\/emails\/tweet_posted.blade.php<\/strong><\/p>\n<div>\n<pre>\u30c4\u30a4\u30fc\u30c8\u304c\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f\u3002&lt;br&gt;\r\n\u6295\u7a3f\u306e\u5224\u65ad\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002&lt;br&gt;&lt;br&gt;\r\n\r\n\u3010\u30c4\u30a4\u30fc\u30c8\u5185\u5bb9\u3011&lt;br&gt;\r\n{!! nl2br($tweet-&gt;body) !!}&lt;br&gt;&lt;br&gt;\r\n\r\n--------------------------------&lt;br&gt;\r\n\r\n\u6295\u7a3f\u3092\u627f\u8a8d\u3057\u307e\u3059\u304b\uff1f&lt;br&gt;\r\n&lt;a href=\"{{ $tweet_approval_url }}\"&gt;X \u306b\u53cd\u6620\u3055\u305b\u308b&lt;\/a&gt;<\/pre>\n<\/div>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/TweetController.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers;<\/strong>\r\n\r\n<strong>use Abraham\\TwitterOAuth\\TwitterOAuth;<\/strong>\r\n<strong>use App\\Models\\Tweet;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n\r\n<strong>class TweetController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function test()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u30c6\u30b9\u30c8\u7528\u306b\u3053\u3053\u3067\u30c4\u30a4\u30fc\u30c8\u6295\u7a3f\u3059\u308b<\/strong>\r\n\r\n<strong>        $tweet = new Tweet();<\/strong>\r\n<strong>        $tweet-&gt;body = \"\u30d1\u30b9\u30bf\u8cb7\u3063\u3066\u8fd4\u3063\u305f\u3089\u3001\\n\u30a6\u30c1\u306b\u65b0\u54c1\u306e\u30d1\u30b9\u30bf\uff12\u888b\u3082\u8cb7\u3063\u3066\u3042\u3063\u305f\u3002\ud83d\ude2b\\n\\n\u4eca\u65e5\u304b\u3089\u30a4\u30bf\u30ea\u30a2\u4eba\u306b\u306a\u308a\u307e\u3059\u3002\ud83c\uddee\ud83c\uddf9\u2728\";<\/strong>\r\n<strong>        $tweet-&gt;save(); \/\/ \u3053\u3053\u3067 saved \u30a4\u30d9\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b<\/strong>\r\n\r\n<strong>        return '\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\uff01';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function approve(Tweet $tweet)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $tweet_result = $this-&gt;tweet($tweet);<\/strong>\r\n\r\n<strong>        if ($tweet_result === true) {<\/strong>\r\n\r\n<strong>            $tweet-&gt;tweeted_at = now();<\/strong>\r\n<strong>            $tweet-&gt;saveQuietly(); \/\/ \u3053\u3053\u3067\u306f\u30bb\u30fc\u30d6\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u306a\u3044<\/strong>\r\n\r\n<strong>            return '\u30c4\u30a4\u30fc\u30c8\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01';<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return '\u30c4\u30a4\u30fc\u30c8\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3002';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function tweet(Tweet $tweet): bool<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $connection = new TwitterOAuth( \/\/ \u672c\u6765\u306f config \u304b\u3089\u53d6\u5f97\u3059\u308b\u3079\u304d\u3067\u3059<\/strong>\r\n<strong>            env('TWITTER_CONSUMER_KEY'),<\/strong>\r\n<strong>            env('TWITTER_CONSUMER_SECRET'),<\/strong>\r\n<strong>            env('TWITTER_ACCESS_TOKEN'),<\/strong>\r\n<strong>            env('TWITTER_ACCESS_TOKEN_SECRET')<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>        $connection-&gt;setApiVersion(2);<\/strong>\r\n<strong>        $parameters = [<\/strong>\r\n<strong>            'text' =&gt; $tweet-&gt;body,<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>        $connection-&gt;post('tweets', $parameters, ['jsonPayload' =&gt; true]);<\/strong>\r\n\r\n<strong>        return in_array($connection-&gt;getLastHttpCode(), [200, 201], true);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p><code>test()<\/code>\u306f\u30c6\u30b9\u30c8\u7528\u306b\u3064\u304f\u3063\u305f\u3082\u306e\u3067\u3001\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u81ea\u52d5\u3067\u30c4\u30a4\u30fc\u30c8\u304c\u4fdd\u5b58\u3055\u308c\u3001\u81ea\u52d5\u3067<code>TweetSaved<\/code>\u30a4\u30d9\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<\/p>\n<\/div>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30eb\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>use Illuminate\\Support\\Facades\\Route;<\/strong>\r\n<strong>use App\\Http\\Controllers\\TweetController;<\/strong>\r\n\r\n<strong>\/\/ Tweet<\/strong>\r\n<strong>\/\/ \u6ce8\uff1a \u672c\u6765\u306f\u30ed\u30b0\u30a4\u30f3\u5fc5\u9808\u306b\u3059\u308b\u3079\u304d\u3067\u3059\uff01<\/strong>\r\n<strong>Route::prefix('tweet')-&gt;controller(TweetController::class)-&gt;group(function () {<\/strong>\r\n<strong>    Route::get('test', 'test');<\/strong>\r\n<strong>    Route::get('approve\/{tweet}', 'approve')-&gt;name('tweet.approve');<\/strong>\r\n<strong>});<\/strong><\/pre>\n<p>\u306a\u304a\u3001\u30b3\u30fc\u30c9\u4e2d\u306b\u3082\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u5fc5\u9808\u306b\u3059\u3079\u304d\u3067\u3059\u3057\u3001\u3055\u3089\u306b\u8a00\u3046\u3068\u300c\u6295\u7a3f\u3067\u304d\u308b\u4eba\u300d\u3068\u300c\u627f\u8a8d\u3067\u304d\u308b\u4eba\u300d\u306e\u8a8d\u8a3c\u30bf\u30a4\u30d7\uff08<code>guard<\/code>\uff09\u306f\u5206\u3051\u3066\u304a\u304f\u3079\u304d\u3067\u3059\u3002\uff08\u6295\u7a3f\u3057\u305f\u4eba\u304c\u627f\u8a8d\u3067\u304d\u308b\u3068\u554f\u984c\u306a\u306e\u3067\ud83d\udca6\uff09<\/p>\n<p>\u3067\u306f\u3001\u3053\u308c\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u2757<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067\u30c6\u30b9\u30c8\u7528\u306b\u4f5c\u3063\u305f<code>URL<\/code>\uff08<code>https:\/\/******\/tweet\/test<\/code>\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12695\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_3.png\" alt=\"\" width=\"208\" height=\"44\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12696\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_2.png\" alt=\"\" width=\"373\" height=\"429\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_2.png 373w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_2-261x300.png 261w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u627f\u8a8d\u7528\u306e\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u753b\u50cf\u306e\u4e2d\u306b\u3042\u308b\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u627f\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12694\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_4.png\" alt=\"\" width=\"191\" height=\"43\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30c4\u30a4\u30fc\u30c8\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u5b9f\u969b\u306e\u30c4\u30a4\u30fc\u30c8\u306f\u3068\u3044\u3046\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12697\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_1.png\" alt=\"\" width=\"593\" height=\"151\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_1.png 593w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_1-300x76.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u65b9\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12698\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_5.png\" alt=\"\" width=\"640\" height=\"69\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/05\/laravel_x_firewall_5-300x32.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3053\u3061\u3089\u3082\u304d\u3061\u3093\u3068<code>tweeted_at<\/code>\u3082\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u30c7\u30fc\u30bf\u3092\u5143\u306b\u3059\u3067\u306b\u6295\u7a3f\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059 \ud83d\ude0a\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u7d44\u3080\u3053\u3068\u3067\u30c4\u30a4\u30fc\u30c8\u3078\u306e\u708e\u4e0a\u3092\u4e8b\u524d\u306b\u9632\u3050\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f\u4e00\u4eba\u3060\u3051\u306e\u627f\u8a8d\u3067\u3057\u305f\u304c\u3001<\/p>\n<ul>\n<li>\u8907\u6570\u4eba\u3067\u306e\u627f\u8a8d\u3082\u53ef\u80fd\u3067\u3059\u3057\u3001<\/li>\n<li>\u5168\u54e1 or \u904e\u534a\u6570\u304c OK \u306a\u3089\u30c4\u30a4\u30fc\u30c8\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>Twitter API<\/code>\u306f\u6708 1,500\u56de\u307e\u3067\u306a\u3089\u7121\u6599\uff082024.5.3 \u73fe\u5728\uff09\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u305f\u3081\u8cbb\u7528\u8ca0\u62c5\u3082\u305d\u308c\u307b\u3069\u5fc5\u8981\u3067\u306f\u306a\u3044\u3053\u3068\u3082\u304a\u3059\u3059\u3081\u3059\u308b\u7406\u7531\u306e\uff11\u3064\u3067\u3059\u3002\uff08\u6bce\u65e55\u30c4\u30a4\u30fc\u30c8\u3057\u3066\u3082150\u30c4\u30a4\u30fc\u30c8\u3067\u3059\uff09<\/p>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u3092\u3054\u5229\u7528\u306b\u306a\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude0a\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>X\uff08Twitter\uff09\u306e\u898b\u5b88\u308a\u6a5f\u80fd<\/strong>\u300d\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\u5229\u7528\u898f\u7d04\u304c\u3069\u3046\u306a\u3063\u3066\u308b\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\uff09\u89aa\u304c\u7ba1\u7406\u3057\u3066\u5b50\u4f9b\u304c\u30c4\u30a4\u30fc\u30c8\u3059\u308b\u5834\u9762\u3068\u304b\u306b\u3082\u4f7f\u3048\u308b\u3067\u3057\u3087\u3046\u3057\u3001\u7d4c\u55b6\u6a29\u306e\u3042\u308b\u8907\u6570\u4eba\u304c<code>OK<\/code>\u3057\u305f\u3082\u306e\u3060\u3051\u30c4\u30a4\u30fc\u30c8\u3059\u308b\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u304b\u3082\u3067\u3059\u306d\u3002<\/p>\n<p>\u305c\u3072\u3053\u308c\u3067\u708e\u4e0a\u304c\u6e1b\u308c\u3070\u3044\u3044\u3068\u601d\u3063\u3066\u307e\u3059\u3002\uff08\u3068\u3044\u3046\u304b\u3001\u3061\u3087\u3063\u3068\u30c8\u30ac\u30c3\u305f\u3053\u3068\u3092\u8a00\u3046\u3068\u3001\u81ea\u5206\u304c\u708e\u4e0a\u3057\u305d\u3046\u3067\u6016\u3044\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\ud83d\ude05\uff09<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/>\u300c\u3061\u3087\u3063\u3068\u305a\u3064\u4ed5\u4e8b\uff06\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u57a2<br \/>\n\u3067\u3044\u3044\u306d\u5897\u3048\u3066\u304d\u307e\u3057\u305f<br \/>\n\u6709\u6599\u6559\u6750\u306e\u304a\u304b\u3052\u3002\u8feb\u793e\u9577\u3001\u611f\u8b1d\u2757\u300d<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3068\u3057\u3066\u3082\u91cd\u8981\u306a\u4f4d\u7f6e\u3065\u3051\u306b\u306a\u3063\u3066\u3044\u308bSNS\u306e\u52c9\u5f37\u3092\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002 \u306a\u305c\u306a\u3089SNS\u306f\u3001 \u5e83\u544a\u3092\u51fa\u3055\u305a\u306b\u5546\u54c1\u3078\u8a98\u5c0e\u3067\u304d\u305f\u308a\u3001 \u4fa1\u5024\u89b3\u3092\u540c\u3058\u306b\u3067 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12693\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067 X\uff08Twitter\uff09\u306e\u898b\u5b88\u308a\u6a5f\u80fd\u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12705,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,258],"tags":[],"class_list":["post-12693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-258"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12693"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12693\/revisions"}],"predecessor-version":[{"id":12703,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12693\/revisions\/12703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12705"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}