<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MyBlog</title>
    <link>https://sourcetut.com/</link>
    <description>Recent content on MyBlog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 11 Sep 2020 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://sourcetut.com/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>When generating SQL statements with sprintf (),% can be escaped with%</title>
      <link>https://sourcetut.com/when-generating-sql-statements-with-sprintf-can-be-escaped-with-8df42/</link>
      <pubDate>Fri, 11 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/when-generating-sql-statements-with-sprintf-can-be-escaped-with-8df42/</guid>
      <description>&amp;lt;br /&amp;gt;   I don&amp;rsquo;t know what you&amp;rsquo;re talking about, but I&amp;rsquo;ll speak as it is
#Introduction I&amp;rsquo;m currently working for a company doing full scratch development with PHP + MySQL. It&amp;rsquo;s been about a month since I joined the company, so most of the time I read existing code.
When we generate SQL statements in php files I&amp;rsquo;m trying to format it using sprintf (). (I don&amp;rsquo;t know if this is standard)</description>
    </item>
    
    <item>
      <title>Easy way to update PHP on Amazon Linux 2</title>
      <link>https://sourcetut.com/easy-way-to-update-php-on-amazon-linux-2-f7d5c/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/easy-way-to-update-php-on-amazon-linux-2-f7d5c/</guid>
      <description>People who have installed PHP using Amazon Linux Extra of Amazon Linux 2 for the past year or so can update PHP quite easily just by disabling &amp;amp; enabling the package with Amazon Linux Extra. is.  Reference: How to update php on Amazon linux 2(Thanks!)
#My environment
 -AWS -Development server -Amazon Linux 2 -Introduced Extra for PHP 7.1 -List of installed PHP libmcrypt php php-bcmath php-cli php-common php-dba php-embedded php-enchant php-fpm php-gd php-gmp php-intl php-json php-ldap php-mbstring php- mysqlnd php-odbc php-opcache php-pdo php-pecl-igbinary php-pecl-mcrypt php-pecl-zip php-pgsql php-process php-pspell php-recode php-soap php-xml php-xmlrpc -This Ansible is used to initially build the server.</description>
    </item>
    
    <item>
      <title>For those who can&#39;t start Paiza skill check because they don&#39;t understand fgets or STDIN or standard input</title>
      <link>https://sourcetut.com/for-those-who-cant-start-paiza-skill-check-because-they-dont-understand-fgets-or-stdin-or-standard-input-df05f/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/for-those-who-cant-start-paiza-skill-check-because-they-dont-understand-fgets-or-stdin-or-standard-input-df05f/</guid>
      <description>#Introduction It&amp;rsquo;s okay until I started learning programming and arrived at Paiza looking for something like a collection of problems in order to improve my skills, but &amp;ldquo;standard input? Fgets? STDIN? What&amp;rsquo;s that?&amp;rdquo; &amp;ldquo;Standard input value Please refer to the sample code on the following page for the acquisition method. I saw the value acquisition / output sample code, but it doesn&amp;rsquo;t make sense. &amp;ldquo;, I couldn&amp;rsquo;t solve even the D rank problem within 60 minutes at first.</description>
    </item>
    
    <item>
      <title>How to rewrite array values in PHP arrays</title>
      <link>https://sourcetut.com/how-to-rewrite-array-values-in-php-arrays-47439/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-rewrite-array-values-in-php-arrays-47439/</guid>
      <description>Purpose  -Summary of how to update the values in the array contained in the array  Implementation environment ――I wrote this article while checking the operation of PHP on the following site. -https://paiza.io/ja
#Example
  -The process to update the value of the array contained in the array is described below.
foreach (array A as &amp;amp; variable) { Variable [&amp;#39;index&amp;#39;] =&amp;#39;value you want to update&amp;#39;; }   Specific example of rewriting the data of the existing index of the associative array   -It is assumed that the associative array is stored in the array &amp;ldquo;$ infos&amp;rdquo;.</description>
    </item>
    
    <item>
      <title>Implementation of Facebook login in FuelPHP</title>
      <link>https://sourcetut.com/implementation-of-facebook-login-in-fuelphp-bbc89/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/implementation-of-facebook-login-in-fuelphp-bbc89/</guid>
      <description>#Introduction
It&amp;rsquo;s a little late, but it&amp;rsquo;s a memo when I implemented Facebook login with FuelPHP. FuelPHP makes it easy to implement social login by using a package called Opauth.
#Create Facebook app
This isn&amp;rsquo;t limited to FuelPHP, but in order to implement social login with Facebook, you must first create a Facebook app for social login on Facebook. To create a Facebook app, you need to register as a Facebook developer, so first register as a developer.</description>
    </item>
    
    <item>
      <title>Solution when column value becomes NULL even if create is executed in Laravel</title>
      <link>https://sourcetut.com/solution-when-column-value-becomes-null-even-if-create-is-executed-in-laravel-1334f/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/solution-when-column-value-becomes-null-even-if-create-is-executed-in-laravel-1334f/</guid>
      <description>Problem  -I ran create with Laravel, but the value inserted was NULL even though I specified the value. -When executing create with Laravel, ** SQLSTATE [HY000]: General error: 1364 Field (column name) doesn&#39;t have a default value ** occurred.  solution ** Review the model **
In my case, I didn&amp;rsquo;t fill in the corresponding column for $ fillable in the model.
class Model extends Authenticatable { use Notifiable; / ** * The attributes that are mass assignable.</description>
    </item>
    
    <item>
      <title>Try using neo4j with Laravel ① Settings</title>
      <link>https://sourcetut.com/try-using-neo4j-with-laravel-settings-9f9fc/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-using-neo4j-with-laravel-settings-9f9fc/</guid>
      <description>① Setting ・ Laravel version 5.6 ・ NeoEloquent version 1.4.6
1) Create a Laravel project by specifying the version composer create-project &amp;quot;laravel / laravel = 5.6. *&amp;quot; [Project name] 2) Vinelab / Neo Eloquent settings composer require vinelab / neoeloquent 1.4.6  If you get angry if neo4j is not set, set config / database.php first and clear the cache.  3) neo4j database usage settings Added neo4j settings to config / database.</description>
    </item>
    
    <item>
      <title>Try using neo4j with Laravel ② Try to support Login with neo4j</title>
      <link>https://sourcetut.com/try-using-neo4j-with-laravel-try-to-support-login-with-neo4j-b885b/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-using-neo4j-with-laravel-try-to-support-login-with-neo4j-b885b/</guid>
      <description>* The model file is moved to app / Models.   Reference [Laravel] Memo about changing the directory structure of the model  ② Try to support the login function 1) Enable login function Execute the following command in the project
php artisan make: auth 2) Change User.php &amp;lt;? php namespace App \ Models; use Illuminate \ Notifications \ Notifiable; // use Illuminate \ Foundation \ Auth \ User as Authenticatable; use Illuminate \ Auth \ Authenticatable; use Illuminate \ Auth \ Passwords \ CanResetPassword; use Illuminate \ Foundation \ Auth \ Access \ Authorizable; use Illuminate \ Contracts \ Auth \ Authenticatable as Authenticatable Contract; use Illuminate \ Contracts \ Auth \ Access \ Authorizable as AuthorizableContract; use Illuminate \ Contracts \ Auth \ CanResetPassword as CanResetPasswordContract; use Vinelab \ NeoEloquent \ Eloquent \ Model as NeoEloquent; class User extends NeoEloquent implements Authenticatable Contract, Authorizable Contract, CanResetPasswordContract { use Notifiable, Authenticatable, Authorizable, CanResetPassword; protected $ label =&#39;User&#39;; / ** * The attributes that are mass assignable.</description>
    </item>
    
    <item>
      <title>Turn on XDebug only when you need it in Visual Studio Code</title>
      <link>https://sourcetut.com/turn-on-xdebug-only-when-you-need-it-in-visual-studio-code-3efcb/</link>
      <pubDate>Thu, 10 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/turn-on-xdebug-only-when-you-need-it-in-visual-studio-code-3efcb/</guid>
      <description>Thing you want to do  I want to do Turn on xdebug only when needed with Visual Studio Code  #Install
 Install PHP Debug extension for Visual Studio Code  #Setting launch.json
{ &amp;#34;version&amp;#34;: &amp;#34;0.2.0&amp;#34;, &amp;#34;configurations&amp;#34;: [ { &amp;#34;name&amp;#34;: &amp;#34;Listen for XDebug&amp;#34;, &amp;#34;type&amp;#34;: &amp;#34;php&amp;#34;, &amp;#34;request&amp;#34;: &amp;#34;launch&amp;#34;, &amp;#34;port&amp;#34;: 9000 }, { &amp;#34;name&amp;#34;: &amp;#34;Launch currently open script&amp;#34;, &amp;#34;type&amp;#34;: &amp;#34;php&amp;#34;, &amp;#34;request&amp;#34;: &amp;#34;launch&amp;#34;, &amp;#34;cwd&amp;#34;: &amp;#34;$ {fileDirname}&amp;#34;, &amp;#34;runtimeExecutable&amp;#34;: &amp;#34;/ usr / local / bin / php&amp;#34;, &amp;#34;runtimeArgs&amp;#34;: [ &amp;#34;-d&amp;#34;, &amp;#34;zend_extension = xdebug.</description>
    </item>
    
    <item>
      <title>[Laravel] Send emails to users in batch</title>
      <link>https://sourcetut.com/laravel-send-emails-to-users-in-batch-563f2/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-send-emails-to-users-in-batch-563f2/</guid>
      <description>Continuation is power. A memorandum today as well.  In order to deepen the understanding of batch, I implemented a simple process.
Environment PHP 7.3.8 Laravel 6.18.35
Today&amp;rsquo;s topic Try sending an email in batch. This time, it will be sent in a batch to the registered users of the application to be implemented.
Email preferences Use an SMTP dummy server called mailtrap.io. It is very convenient because you can check the result on the screen of mailtrap.</description>
    </item>
    
    <item>
      <title>[PHP] associative array and foreach syntax</title>
      <link>https://sourcetut.com/php-associative-array-and-foreach-syntax-68544/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-associative-array-and-foreach-syntax-68544/</guid>
      <description>About associative arrays For example, if you have the following array
$ fruits = [&amp;#39;apple&amp;#39;,&amp;#39;lemon&amp;#39;,&amp;#39;banana&amp;#39;]; In the array stored in this variable  $ fruits If you want to take out the apple, write as follows
print ($ fruits [0]); I was able to retrieve it with this, but it is meaningless unless I remember the subscripts corresponding to each value. In such a case, use associative array It is often used for arrays where the order does not matter.</description>
    </item>
    
    <item>
      <title>[PHP] Check zip code with regular expression</title>
      <link>https://sourcetut.com/php-check-zip-code-with-regular-expression-5c372/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-check-zip-code-with-regular-expression-5c372/</guid>
      <description>This time we will use the code below.  $ zip = &amp;#39;123-4567&amp;#39;; // ← full-width $ zip = mb_convert_kana ($ zip,&amp;#39;a&amp;#39;,&amp;#39;UTF-8&amp;#39;); if (preg_match (&amp;#34;/ \ A \ d {3} [-] \ d {4} \ z /&amp;#34;, $ zip)) { print (&amp;#39;Zip code: 〒&amp;#39;. $ Zip); } else { print (&amp;#39;* Please enter the zip code in the format 123-4567&amp;#39;); } It is displayed as ↓.
Zip code: 〒123-4567 // ← Half-width  For ** mb_convert_kana ** → here  Reason for specifying &amp;ldquo;**&amp;lsquo;a&amp;rsquo; **&amp;rdquo; in the parameter Since the zip code is a number, what about &amp;ldquo;**&amp;lsquo;n&amp;rsquo; **&amp;rdquo;?</description>
    </item>
    
    <item>
      <title>[PHP] Convert to half-width numbers and check if they are numbers</title>
      <link>https://sourcetut.com/php-convert-to-half-width-numbers-and-check-if-they-are-numbers-9378e/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-convert-to-half-width-numbers-and-check-if-they-are-numbers-9378e/</guid>
      <description>The function used this time is `` mb_convert_kana``  For example, suppose it is described as follows
$ age = 20; // ← half-width numbers if (is_numeric ($ age)) { print ($ age.&amp;#39;Year&amp;#39;); } else { print (&amp;#39;* Age is not a number&amp;#39;); } The display is as follows
20-year-old With the function  is_numeric You can check if the specified parameter is a number. In the above example, ($ age) is checked.</description>
    </item>
    
    <item>
      <title>[PHP] When writing comments, when not writing</title>
      <link>https://sourcetut.com/php-when-writing-comments-when-not-writing-5435e/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-when-writing-comments-when-not-writing-5435e/</guid>
      <description>What should the comment be? Comments should be concise and accurate so that they are easy to read and understand. I understand that, but if I wrote it in all the processing The entire source becomes hard to read.
Comments also need to be organized.
Unnecessary comments and necessary comments It is better not to write in the comments what you can see.
// Determine if you are human if ($ object-&amp;gt; isHuman () === true) { // Make the name Taro $ name =&amp;#39;tarou&amp;#39;; } When you can clearly understand the contents of processing with the help of method names and variable names, I don&amp;rsquo;t think you need to bother to comment.</description>
    </item>
    
    <item>
      <title>Control the transition destination at the time of error with Laravel validation</title>
      <link>https://sourcetut.com/control-the-transition-destination-at-the-time-of-error-with-laravel-validation-43584/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/control-the-transition-destination-at-the-time-of-error-with-laravel-validation-43584/</guid>
      <description>Problem  -When an error occurs in the validation of Laravel, it does not return to the page at the time of input. -When returning to the page at the time of input when an error occurs in the validation of Laravel, the value is not retained.  Cause ** When applying validation with Laravel, when returning to the screen at the time of moving in when an error occurs, it will be transitioned with the GET method **</description>
    </item>
    
    <item>
      <title>Experience the version upgrade of laravel</title>
      <link>https://sourcetut.com/experience-the-version-upgrade-of-laravel-eefc4/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/experience-the-version-upgrade-of-laravel-eefc4/</guid>
      <description>![laravel_varsionup.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/569093/2ccdd69b-ad6f-bfa2-5db3-f45032f2ac46.jpeg)  Introduction I am a free PHP engineer.
I recently had the opportunity to work on a project to upgrade Laravel from var5.2 to var6, and I&amp;rsquo;ve summarized the experience I gained there, albeit roughly. I hope it will be helpful for those who are planning to upgrade from now on!
In addition, it was a version upgrade in an environment where the implementation of the test code is not so much, but if you are writing the test code properly, it is recommended to check it by turning the test!</description>
    </item>
    
    <item>
      <title>Get update items with key-value in Laravel and dynamically validate and update</title>
      <link>https://sourcetut.com/get-update-items-with-key-value-in-laravel-and-dynamically-validate-and-update-7a921/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/get-update-items-with-key-value-in-laravel-and-dynamically-validate-and-update-7a921/</guid>
      <description>TL; DR When developing API, usually get the update item by FormRequest and execute validation.
However, if you want to send only the items to be updated as a request and only one item, this is not the case with normal implementation.
Therefore, I will try to implement it in a slightly tricky ~~ redundant ~~ way.
Environment  -PHP7.4 -Laravel7.2  Implementation of normal update processing Normally, you send a request for update processing as follows.</description>
    </item>
    
    <item>
      <title>Install Phalcon Devtools (mac)</title>
      <link>https://sourcetut.com/install-phalcon-devtools-mac-aec4b/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/install-phalcon-devtools-mac-aec4b/</guid>
      <description>Last time, I created a Phalcon development environment with vagrant, but I also needed to use Phalcon Devtools, so  There are some differences from the document, so make a note of the error resolution process.
composer global require phalcon / devtools Then I got an error:
 Problem 1 --phalcon / devtools v4.0.3 requires ext-phalcon ^ 4.0.0-&amp;gt; the requested PHP extension phalcon is missing from your system. --phalcon / devtools v4.</description>
    </item>
    
    <item>
      <title>Laravel8: A memo that I immediately tried the new login jetstream</title>
      <link>https://sourcetut.com/laravel8-a-memo-that-i-immediately-tried-the-new-login-jetstream-607ea/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel8-a-memo-that-i-immediately-tried-the-new-login-jetstream-607ea/</guid>
      <description>Laravel8: A memo that immediately tried the new login &amp;ldquo;jetstream&amp;rdquo; Hello everyone I&amp;rsquo;m Yamazaki, Chief Lecturer of G&amp;rsquo;s Academy m (_ _) m This time, I will update to Laravel 8 and do My Memo for creating Login screen.
The following is the screen when the Laravel 8 installation is completed. It&amp;rsquo;s changed &amp;hellip; Prerequisites / Verification environment &amp;ndash;People who understand the basics of Laravel and have experience in creating CRUD &amp;ndash;In terms of the content of the article, it is *** my memo *** when using Login of Laravel8.</description>
    </item>
    
    <item>
      <title>PHP grammar that came out in practice and was a little confusing</title>
      <link>https://sourcetut.com/php-grammar-that-came-out-in-practice-and-was-a-little-confusing-98651/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-grammar-that-came-out-in-practice-and-was-a-little-confusing-98651/</guid>
      <description>#Introduction I have been working as a web engineer at a company in Tokyo since August 2020.
The development environment is so-called full scratch PHP, I was from a programming school that mainly studies Ruby, so I had hardly touched PHP before joining the company.
It&amp;rsquo;s been about a month since I joined the company, and now I understand the basic grammar, and while researching new functions I encounter each time We are repairing the existing system.</description>
    </item>
    
    <item>
      <title>php image orientation correction</title>
      <link>https://sourcetut.com/php-image-orientation-correction-7881a/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-image-orientation-correction-7881a/</guid>
      <description>```php: image.php  $ filename = &amp;ldquo;path&amp;rdquo;
if (mime_content_type ($ filename) ==&#39;image / jpeg&amp;rsquo;) { $ image = ImageCreateFromJPEG ($ filename); } else { $ image = ImageCreateFromPNG ($ filename); }
 $ exif_datas = @exif_read_data ($ filename); if (isset ($ exif_datas [&#39;Orientation&#39;])) { $ orientation = $ exif_datas [&#39;Orientation&#39;]; //rotation angle $ degrees = 0; switch ($ orientation) { case 1: // No rotation (↑) break; case 8: // 90 degrees to the right (→) $ degrees = 90; break; case 3: // Rotate 180 degrees (↓) $ degrees = 180; break; case 6: // Rotate 270 degrees to the right (←) $ degrees = 270; break; case 2: // Reverse (↑) $ mode = IMG_FLIP_HORIZONTAL; break; case 7: // Invert and right 90 degrees (→) $ degrees = 90; $ mode = IMG_FLIP_HORIZONTAL; break; case 4: // Inverted to 180 degrees, but same as vertical inversion (↓) $ mode = IMG_FLIP_VERTICAL; break; case 5: // Invert and 270 degrees (←) $ degrees = 270; $ mode = IMG_FLIP_HORIZONTAL; break; } // Invert (2,7,4,5) if (isset ($ mode)) { $ image = imageflip ($ image, $ mode); } // Rotate (8,3,6,7,5) if ($ degrees&amp;gt; 0) { $ image = imagerotate ($ image, $ degrees, 0); } // Save if (mime_content_type ($ filename) ==&#39;image / jpeg&#39;) { ImageJPEG ($ image, $ filename); } else { ImagePNG ($ image, $ filename); } // // Memory release imagedestroy ($ image); }  </description>
    </item>
    
    <item>
      <title>php resizing</title>
      <link>https://sourcetut.com/php-resizing-9c541/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-resizing-9c541/</guid>
      <description>#Preprocessing for handling images
ImageCreateFromJPEG ($ filename) Now you can handle it in memory (in this program) #Resize image
bool imagecopyresampled (resource $ dst_image, resource $ src_image, int $ dst_x, int $ dst_y, int $ src_x, int $ src_y, int $ dst_w, int $ dst_h, int $ src_w, int $ src_h) Parameters dst_image Image link resource to copy to. src_image Source image link resource. dst_x The x coordinate of the destination.</description>
    </item>
    
    <item>
      <title>Processing to make free shipping over XX yen with Eccube</title>
      <link>https://sourcetut.com/processing-to-make-free-shipping-over-xx-yen-with-eccube-6380b/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/processing-to-make-free-shipping-over-xx-yen-with-eccube-6380b/</guid>
      <description>`app/Customize/Service/PurchaseFlow/Processor/CustomDeliveryFeePreprocessor.php` というファイルを下記のように作成します。  &amp;lt;?php namespace Customize\Service\PurchaseFlow\Processor; use Eccube\Service\PurchaseFlow\ItemHolderPreprocessor; use Eccube\Entity\ItemHolderInterface; use Eccube\Service\PurchaseFlow\PurchaseContext; use Eccube\Repository\BaseInfoRepository; use Eccube\Annotation\ShoppingFlow; /** * Description of CustomDeliveryFeePreprocessor * * @ShoppingFlow */ class CustomDeliveryFeePreprocessor implements ItemHolderPreprocessor { /** @var BaseInfo */ protected $BaseInfo; /** * DeliveryFeePreprocessor constructor. * * @param BaseInfoRepository $baseInfoRepository */ public function __construct( BaseInfoRepository $baseInfoRepository, ) { $this-&amp;gt;BaseInfo = $baseInfoRepository-&amp;gt;get(); } public function process(ItemHolderInterface $itemHolder, PurchaseContext $context) { $this-&amp;gt;updateDeliveryFeeItem($itemHolder); } /** * @param ItemHolderInterface $itemHolder */ private function updateDeliveryFeeItem(ItemHolderInterface $itemHolder) { // 10,000円を超える場合は送料無料  $totalPrice = 0.</description>
    </item>
    
    <item>
      <title>Studying design patterns</title>
      <link>https://sourcetut.com/studying-design-patterns-16c97/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/studying-design-patterns-16c97/</guid>
      <description>#I want to study design patterns
I would like to learn object-oriented design while studying design patterns little by little by referring to the examples on this site. https://www.techscore.com/tech/DesignPattern/index.html/
I&amp;rsquo;m just getting started, so I think there&amp;rsquo;s something wrong with the interpretation, so I&amp;rsquo;d appreciate it if you could comment. Also, I usually use PHP, but it would be greatly appreciated if you could give me some advice that I would often use it in such places.</description>
    </item>
    
    <item>
      <title>vagrant &#43; ContOS7 &#43; php7.2 &#43; nginx &#43; phalcon4 environment construction and problem recording</title>
      <link>https://sourcetut.com/vagrant-contos7-php7.2-nginx-phalcon4-environment-construction-and-problem-recording-efd94/</link>
      <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/vagrant-contos7-php7.2-nginx-phalcon4-environment-construction-and-problem-recording-efd94/</guid>
      <description>vagrant + ContOS7 + php7.2 + nginx + phalcon4 environment construction and problem recording  Reference: https://qiita.com/wjtnk/items/f2d72fb3790d008a3154
Tool installation: https://www.virtualbox.org/ https://www.vagrantup.com/
1. Launching a virtual environment $ mkdir phalcon $ cd phalcon $ mkdir sync $ vagrant init CentOS7 Edit phalcon / Vagrantfile
Vagrant.configure (&amp;quot;2&amp;quot;) do | config | config.vm.box = &amp;quot;centos / 7&amp;quot; # IP address for local access. config.vm.network &amp;quot;private_network&amp;quot;, ip: &amp;quot;192.168.10.10&amp;quot; #Specify the synchronization destination. &amp;quot;Synchronize the current directory (.</description>
    </item>
    
    <item>
      <title>[Laravel] localhost / project name / public ← How to eliminate public</title>
      <link>https://sourcetut.com/laravel-localhost-project-name-public-how-to-eliminate-public-ecd53/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-localhost-project-name-public-how-to-eliminate-public-ecd53/</guid>
      <description>After investigating, there are several methods, but I thought it was the smartest method, so I will leave it as a memo.  Create ## .htaccess
.htaccess is one of the hidden files that describes settings such as redirects.
Copy the following description there.
&amp;lt;IfModule mod_rewrite.c&amp;gt; &amp;lt;IfModule mod_negotiation.c&amp;gt; Options -MultiViews &amp;lt;/ IfModule&amp;gt; RewriteEngine On RewriteCond% {REQUEST_FILENAME} -d [OR] RewriteCond% {REQUEST_FILENAME} -f RewriteRule ^ ^ $ 1 [N] RewriteCond% {REQUEST_URI} (\. \ W + $) [NC] RewriteRule ^ (.</description>
    </item>
    
    <item>
      <title>[PHP] Output 365 days &#43; days of the week</title>
      <link>https://sourcetut.com/php-output-365-days-days-of-the-week-5187f/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-output-365-days-days-of-the-week-5187f/</guid>
      <description>To output today&#39;s date, write as follows.  &amp;lt;? php print (date (&amp;#39;n / j (D)&amp;#39;)); ?&amp;gt;  n gets the month  j gets the date  D gets the day of the week in English (first 3 letters)
If you have not set the timezone, you can change it by writing it directly.
&amp;lt;? php date_default_timezone_set (&amp;#39;Asia / Tokyo&amp;#39;); print (date (&amp;#39;n / j (D)&amp;#39;)); ?&amp;gt; Here, consider how to get the date + day of the week one day later.</description>
    </item>
    
    <item>
      <title>[WordPress] Output category without link</title>
      <link>https://sourcetut.com/wordpress-output-category-without-link-30f72/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/wordpress-output-category-without-link-30f72/</guid>
      <description>To output the category associated with a WordPress post, you usually use &amp;lt;? Php the_category ();?&amp;gt;, But in that case you will also get a link.  I wanted to get rid of this link. The implementation method was to store it in an array once using And display it in a loop. Also, when displaying multiple categories, a separate (,) is added to make it easier to see, but conditional branching is also made so that the separator is not attached when the last category is output.</description>
    </item>
    
    <item>
      <title>Add search criteria to contain element in CakePHP3 find</title>
      <link>https://sourcetut.com/add-search-criteria-to-contain-element-in-cakephp3-find-f5ccb/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/add-search-criteria-to-contain-element-in-cakephp3-find-f5ccb/</guid>
      <description>For example, if the UserInfo table is linked to the Users table and you want to find one person whose surname is Sato or Kudo with prefecture_id = 2, it will be as follows.  It is a miso to give you $ prefecture_id with use.
$ prefecture_id = 2; $ user = $ this-&amp;gt; Users-&amp;gt; find ()-&amp;gt; contain ( [&#39;UserInfo&#39; =&amp;gt; function ($ q) use ($ prefecture_id) { return $ q-&amp;gt; where ([&#39;UserInfo.</description>
    </item>
    
    <item>
      <title>Create Laravel original config file and call it with controller</title>
      <link>https://sourcetut.com/create-laravel-original-config-file-and-call-it-with-controller-7a0d3/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/create-laravel-original-config-file-and-call-it-with-controller-7a0d3/</guid>
      <description>Purpose  -Summary of how to add to Laravel&amp;rsquo;s configuration file and how to read the configuration file   The configuration file in this explanation is not an .env file, but a file directly under the app name directory / config.    Implementation environment  -Hardware environment     Items Information     OS macOS Catalina (10.15.5)   Hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     -Software environment     Items Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>Fitbit api integration and concentration judgment (PHP, Javascript)</title>
      <link>https://sourcetut.com/fitbit-api-integration-and-concentration-judgment-php-javascript-28a5f/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/fitbit-api-integration-and-concentration-judgment-php-javascript-28a5f/</guid>
      <description>#Article summary
This is a description of the created portfolio. The following is summarized.
 -Background -Main functions -Development procedure -Ingenuity Task  #background The time management technique called &amp;ldquo;Pomodoro technique&amp;rdquo; has become a hot topic, and there are apps for that purpose, but it is difficult to judge whether or not you are actually concentrating with a simple Pomodoro timer. This time, we focused on the relationship between heart rate and concentration, and created an app to judge concentration.</description>
    </item>
    
    <item>
      <title>HTML-PHP-post</title>
      <link>https://sourcetut.com/html-php-post-81e6b/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/html-php-post-81e6b/</guid>
      <description>&amp;lt;h2&amp;gt; Distinguishing two or more submit buttons on the same page &amp;lt;h / 2&amp;gt;   It seems to look back on myself. &amp;lt;!-html-&amp;gt; &amp;lt;form method = &amp;#34;post&amp;#34;&amp;gt; &amp;lt;label&amp;gt; Last name: &amp;lt;input type = &amp;#34;text&amp;#34; size = &amp;#34;10&amp;#34; name = &amp;#34;fname&amp;#34;&amp;gt; &amp;lt;/ label&amp;gt; &amp;lt;input type = &amp;#34;submit&amp;#34; value = &amp;#34;submit&amp;#34;&amp;gt; &amp;lt;/ form&amp;gt; &amp;lt;form method = &amp;#34;post&amp;#34;&amp;gt; &amp;lt;label&amp;gt; Name: &amp;lt;input type = &amp;#34;text&amp;#34; size = &amp;#34;10&amp;#34; name = &amp;#34;name&amp;#34;&amp;gt; &amp;lt;/ label&amp;gt; &amp;lt;input type = &amp;#34;submit&amp;#34; value = &amp;#34;submit&amp;#34;&amp;gt; &amp;lt;/ form&amp;gt; &amp;lt;?</description>
    </item>
    
    <item>
      <title>Note: Laravel8 Release &amp; Upgrade</title>
      <link>https://sourcetut.com/note-laravel8-release-upgrade-1b93c/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/note-laravel8-release-upgrade-1b93c/</guid>
      <description>Released on 09/08/2020. The bug fix period will be 2021 / 03/08, and the security fix will be until 2021 / 09/08.  And although the amount of upgrades is small due to the large number of new features, it is a little tricky if you are using the factory. (Because the behavior when migrate is done after doing schema: dump of migration seems to be scary, please do it at your own risk)</description>
    </item>
    
    <item>
      <title>PHP / GC story-4) Memory Leak and variable data that cannot be released</title>
      <link>https://sourcetut.com/php-gc-story-4-memory-leak-and-variable-data-that-cannot-be-released-3bd5d/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-gc-story-4-memory-leak-and-variable-data-that-cannot-be-released-3bd5d/</guid>
      <description>Preface ――All articles include a summary of your study objectives and subjectivity. Please use it at the reference level only. If you have any incorrect information, I would be very grateful if you could give us your opinion. ――In the content, it may be difficult to understand because it is omitted or ambiguous. If you contact us, we will add supplements, so please do not hesitate to contact us. ―― “GC” in the text means “Garbage Collection, Garbage Collector” and is used as an abbreviation.</description>
    </item>
    
    <item>
      <title>Use Firebase Admin SDK for PHP with Laravel (token reacquisition)</title>
      <link>https://sourcetut.com/use-firebase-admin-sdk-for-php-with-laravel-token-reacquisition-8a780/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/use-firebase-admin-sdk-for-php-with-laravel-token-reacquisition-8a780/</guid>
      <description>#Firebase Admin SDK for PHP doesn&amp;rsquo;t seem to be able to get tokens automatically
For example, Javascript can be obtained with currentUser.getIdToken () as follows. It is convenient because it automatically updates before the expiration date.
firebase.auth (). currentUser.getIdToken (/ * forceRefresh * / true) .then (function (idToken) { // Send token to your backend via HTTPS  // ... }) .catch (function (error) { // Handle error }); The Firebase Admin SDK for PHP didn&amp;rsquo;t have similar functionality.</description>
    </item>
    
    <item>
      <title>What does the formal argument of bindValue () indicate?</title>
      <link>https://sourcetut.com/what-does-the-formal-argument-of-bindvalue-indicate-e6d01/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/what-does-the-formal-argument-of-bindvalue-indicate-e6d01/</guid>
      <description>What you can see in this article  -Understand the contents of the formal parameters of the PHP PDO class function bindValue ()  What is bindValue () in the first place?  public PDOStatement :: bindValue (mixed $ parameter, mixed $ value [, int $ data_type = PDO :: PARAM_STR]): bool Bind the value to the corresponding name or question mark placeholder in the SQL statement used in the prepared statement.</description>
    </item>
    
    <item>
      <title>WordPress payment plugin introduced</title>
      <link>https://sourcetut.com/wordpress-payment-plugin-introduced-1e46f/</link>
      <pubDate>Tue, 08 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/wordpress-payment-plugin-introduced-1e46f/</guid>
      <description>We built a crowdfunding service with WordPress and introduced a payment plugin.  That is trial and error.
&amp;ldquo;Crowdfunding to share stories&amp;rdquo; mamenoki
First, we introduced (purchased) the WP Attractive Donations System. It&amp;rsquo;s cool, but https://codecanyon.net/item/wp-attractive-donations-system-easy-stripe-paypal-donations/16982796 Dollars may be fine, but it is not realistic to combine them in units of 1 yen. And it ’s a different plugin, https://liapoc.com/stripe-100.html The same phenomenon occurred. If you send it to Stripe, it will be ¥ 1 ⇒ ¥ 100, because it is premised on using dollars?</description>
    </item>
    
    <item>
      <title>[Laravel] Batch processing, Cron task schedule execution</title>
      <link>https://sourcetut.com/laravel-batch-processing-cron-task-schedule-execution-efdee/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-batch-processing-cron-task-schedule-execution-efdee/</guid>
      <description>A memorandum of excitement today.  In order to deepen the understanding of batch, I implemented a simple process.
Environment PHP 7.3.8 Laravel 6.18.35
Write batch processing Create a batch to get the number of users registered in the User table. First, generate a command class.
php artisan make: command UserCount When you execute the command, the file is created directly under app / Console / Commands /.
&amp;lt;? php namespace App \ Console \ Commands; use Illuminate \ Console \ Command; // Because there is also a process to output the log later use Illuminate \ Support \ Facades \ Log; // Read the table to operate use App \ User; class UserCountCommand extends Command { / ** * The name and signature of the console command.</description>
    </item>
    
    <item>
      <title>[Laravel] Set the initial value of the select box turned by foreach with a variable</title>
      <link>https://sourcetut.com/laravel-set-the-initial-value-of-the-select-box-turned-by-foreach-with-a-variable-74c0f/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-set-the-initial-value-of-the-select-box-turned-by-foreach-with-a-variable-74c0f/</guid>
      <description>Overview For example, suppose you want to change the occupation of character A. When you press the edit button, the information of character A is displayed, and the occupation can be selected in the select box. For the contents of the select box, use foreach to display the contents of $ jobs, which is a list of occupations brought from the controller, but I want to set the initial value to warrior, which is the occupation before the change of character A.</description>
    </item>
    
    <item>
      <title>[No error] phpMyAdmin login screen is not displayed Resolved</title>
      <link>https://sourcetut.com/no-error-phpmyadmin-login-screen-is-not-displayed-resolved-7bb4f/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/no-error-phpmyadmin-login-screen-is-not-displayed-resolved-7bb4f/</guid>
      <description>I didn&#39;t get any particular error, but I was addicted to the swamp when I was following a certain article while studying.  【problem】 phpMyAdmin login screen does not appear
【Solution】
❶ Download phpMyAdmin (Download on the right side of HP): raised_hand: https://www.phpmyadmin.net/ ❷ Move phpMyAdmin download file to&amp;gt; htdocs file in MAMP: raised_hand: ❸ Search on localhost in Chrome: raised_hand: ❹ The following image page will be displayed. Click the phpMyAdmin file: raised_hand:</description>
    </item>
    
    <item>
      <title>[PHP] Difference between single quotation and double quotation</title>
      <link>https://sourcetut.com/php-difference-between-single-quotation-and-double-quotation-0d295/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-difference-between-single-quotation-and-double-quotation-0d295/</guid>
      <description>#Programming study diary September 7, 2020 I use single quotation and double quotation in the same situation, but I will summarize what the difference actually is.
#Feature Single quotation: Treat the contents as a character string (handle variables and control character strings as just a character string) Double quotation: Treats the contents as a character string, but treats variables and control character strings as the original source
Since all single quotations are treated as character strings, single quotations are faster.</description>
    </item>
    
    <item>
      <title>[PHP] Register / cancel e-mail newsletter with blastmail API</title>
      <link>https://sourcetut.com/php-register-cancel-e-mail-newsletter-with-blastmail-api-01719/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-register-cancel-e-mail-newsletter-with-blastmail-api-01719/</guid>
      <description>#Overview I had the opportunity to implement e-mail newsletter registration / cancellation using blastmail. It is a memo about the procedure at that time and how to use the API.
Preparing #blustmail If you register as a member of blastmail,
 -Login information to the management screen -API key  Will be issued.
You will use this information to use the blastmail API. The API Key is included in the email when you registered.</description>
    </item>
    
    <item>
      <title>Automatically generate class diagram from PHP source code</title>
      <link>https://sourcetut.com/automatically-generate-class-diagram-from-php-source-code-1a0dc/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/automatically-generate-class-diagram-from-php-source-code-1a0dc/</guid>
      <description>Create PHP class diagram with images with #PHUML  It seems that PHPSTORM has a function to create a class diagram, but since PHPSTORM is not included in the home environment, I was looking for a tool that automatically generates a class diagram and found a tool called phuml. The environment is Ubuntu 18.04 LTS.
Install https://github.com/jakobwesthoff/phuml Download it from and extract it to a suitable location. I deployed it as phuml in ~ / .</description>
    </item>
    
    <item>
      <title>Can&#39;t send emails with Laravel 5.5?</title>
      <link>https://sourcetut.com/cant-send-emails-with-laravel-5.5-06f2f/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/cant-send-emails-with-laravel-5.5-06f2f/</guid>
      <description>A service created with Laravel5.5 running on Sakura Internet&#39;s rental server suddenly gives an error on a specific page.  When I follow the error log, it seems that there is an error related to email &amp;hellip;
Trying to access array offset on value of type null in /project/vendor/egulias/email-validator/EmailValidator/Parser/Parser.php But why suddenly &amp;hellip; I noticed that PHP on the rental server went up to 7.4. Is this the cause? ~~ Then PHP is fixed at 7.</description>
    </item>
    
    <item>
      <title>CSS is not reflected under Laravel https environment</title>
      <link>https://sourcetut.com/css-is-not-reflected-under-laravel-https-environment-487c6/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/css-is-not-reflected-under-laravel-https-environment-487c6/</guid>
      <description>Purpose  -Summary of the story that solved the problem that even if you try to create an original css file with Laravel and reflect it in the view file, it is not done at all  #Cause
 -The web server on which the Laravel application is running was converted to HTTPS, so the css file was not read because it was read differently.  #Cause and solution
  -If you write with asset () as shown below, you cannot read the CSS file under the https environment.</description>
    </item>
    
    <item>
      <title>Do you know Carbon, which displays the source code coolly on Twitter?</title>
      <link>https://sourcetut.com/do-you-know-carbon-which-displays-the-source-code-coolly-on-twitter-0a2ee/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/do-you-know-carbon-which-displays-the-source-code-coolly-on-twitter-0a2ee/</guid>
      <description>Hello, my name every show that has been active as the current free of the web creator.  Well, everyone, `It feels good to see the highlights of the source code. ``
For VS Code code highlights, I like the class name to be green.
Once you get used to this, you can no longer use a simple notepad.
However, Twitter does not have an editor function, so even if you want to tweet ** If you paste the source code as it is, it will be very dull ** (the character limit is also tight)</description>
    </item>
    
    <item>
      <title>Exclude your own value from unique targets in Laravel</title>
      <link>https://sourcetut.com/exclude-your-own-value-from-unique-targets-in-laravel-d38e9/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/exclude-your-own-value-from-unique-targets-in-laravel-d38e9/</guid>
      <description>Problem  -Created a form to edit and update user information and provided validation -Applied unique to username email address -I want to change information other than the target of unique, but I get stuck in unique and cannot proceed further.  Example I want to change the DELETE_FLAG for this job I get an error about the job title to which unique is applied. Code The current code and validation are in this state</description>
    </item>
    
    <item>
      <title>S3 access in Laravel 403 Forbidden error</title>
      <link>https://sourcetut.com/s3-access-in-laravel-403-forbidden-error-0c726/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/s3-access-in-laravel-403-forbidden-error-0c726/</guid>
      <description>When I wrote the following code in Larael  Storage :: disk (&amp;#39;s3&amp;#39;)-&amp;gt; put (&amp;#39;hoge.csv&amp;#39;,&amp;#39;Ai&amp;#39;); Error executing &amp;quot;PutObject&amp;quot; on &amp;quot;https://bucket-name.s3.ap-northeast-1.amazonaws.com/hoge.csv&amp;quot;; AWS HTTP error: Client error: `PUT https://bucket-name.s3 .ap-northeast-1.amazonaws.com/hoge.csv` resulted in a `403 Forbidden` response: ... Error was displayed. Since the authority setting of S3 is done in config / filesystems.php, when looking at the corresponding file, confirm that the secret access key is incorrect. Correct and re-execute. But I keep getting the exact same error.</description>
    </item>
    
    <item>
      <title>Session hijacking measures</title>
      <link>https://sourcetut.com/session-hijacking-measures-df8d9/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/session-hijacking-measures-df8d9/</guid>
      <description>#Introduction
Recently, I&amp;rsquo;ve been studying security a lot, so I&amp;rsquo;d like to write an article about it so that I can teach you in an easy-to-understand manner. This time, I will explain about session hijacking.
#table of contents
 What is session hijacking? Session hijacking type Session hijacking measures Finally  #What is session hijacking? First of all, since the Web is made startless, it is not possible to judge that the person who came to this server earlier is Mr.</description>
    </item>
    
    <item>
      <title>Translate PHP_UML --help with google translate</title>
      <link>https://sourcetut.com/translate-php_uml-help-with-google-translate-d1610/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/translate-php_uml-help-with-google-translate-d1610/</guid>
      <description>I wanted to study object-oriented. I usually use PHP, but I can&#39;t find many tools and it seems that PHPSTORM will automatically generate it, but since it is not in my home environment, I googled and found a tool called PHP_UML.  However, I don&amp;rsquo;t know how to use it &amp;amp; I don&amp;rsquo;t understand English, so I decided to translate it.
↓ I found a more useful tool and made it an article.</description>
    </item>
    
    <item>
      <title>Try-Catch didn&#39;t work</title>
      <link>https://sourcetut.com/try-catch-didnt-work-abc6b/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-catch-didnt-work-abc6b/</guid>
      <description>If I thought Try-Catch would be ignored for some reason, I just misspelled the word `Exception`.  try { } catch (\ Exception $ e) {// I misspelled here } </description>
    </item>
    
    <item>
      <title>WordPress environment construction using AWS (single configuration)</title>
      <link>https://sourcetut.com/wordpress-environment-construction-using-aws-single-configuration-f2b9f/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/wordpress-environment-construction-using-aws-single-configuration-f2b9f/</guid>
      <description>Advance preparation Create an EC2 instance
SSH connection $ ssh -i .ssh / key.pem ec2-user @ public_ip   Key.pem is ssh_key
  Public_ip is the public_ip of the instance
  Apache installation  Install and start Apach  $ sudo yum install -y httpd $ sudo systemctl start httpd Install MySQL 5.7 Install MySQL 5.7 from the MySQL Yum Repository.
 Install Yum repository information  $ sudo yum localinstall https://dev.</description>
    </item>
    
    <item>
      <title>【PHP】unset、isset、header</title>
      <link>https://sourcetut.com/phpunsetissetheader-c0d9d/</link>
      <pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/phpunsetissetheader-c0d9d/</guid>
      <description>I will summarize what I learned about PHP as a memorandum.  #unset A function that deletes a defined variable assignment. It is also possible to delete arrays that are no longer needed. For example, if you want to delete an element in an array, write it like this.
$ ary = array (0,1,2,3,4); unset ($ array [3]); If you define it as above, you can delete the 4th element &amp;ldquo;3&amp;rdquo;.</description>
    </item>
    
    <item>
      <title>[Laravel &#43; mysql] Launching a new application and getting stuck in the first php artisan migrate</title>
      <link>https://sourcetut.com/laravel-mysql-launching-a-new-application-and-getting-stuck-in-the-first-php-artisan-migrate-f8c21/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-mysql-launching-a-new-application-and-getting-stuck-in-the-first-php-artisan-migrate-f8c21/</guid>
      <description>What kind of problem? When I set up the development environment with laravel and mysql to create a Web application using the PHP language for the first time and migrate the newly created table, an error occurs and the table cannot be created normally.
#Error details When I typed the $ php artisan migrate command in the terminal, I got the following error: As shown in the 6th line, 1050 Table&amp;rsquo;users&amp;rsquo; already exists &amp;hellip; which means &amp;ldquo;the user table already exists&amp;rdquo;.</description>
    </item>
    
    <item>
      <title>[PHP] Implementation of flash messages</title>
      <link>https://sourcetut.com/php-implementation-of-flash-messages-a2fcf/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-implementation-of-flash-messages-a2fcf/</guid>
      <description>I will summarize what I learned about PHP as a memorandum.  Now that we have implemented the flash message in our portfolio, we will record how it is implemented.
#Flash message implementation As a whole flow, if there is an empty form, the corresponding error message is stored, The flow is to display an error message on the login screen.
First, check if the form is empty and process it.</description>
    </item>
    
    <item>
      <title>A solution to [500 (Internal Server Error)] where the linked page is blank in a well-understood PHP textbook</title>
      <link>https://sourcetut.com/a-solution-to-500-internal-server-error-where-the-linked-page-is-blank-in-a-well-understood-php-textbook-28fad/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/a-solution-to-500-internal-server-error-where-the-linked-page-is-blank-in-a-well-understood-php-textbook-28fad/</guid>
      <description>Here&#39;s a quick summary of how to solve the error that the linked page goes blank while learning with a well-understood PHP textbook.  (This is an example of how to solve errors for beginners. Please note that it is a low level)
This time it was an error at the stage of &amp;ldquo;adding the delete function&amp;rdquo;, but I think it is an error that can occur in general (?)</description>
    </item>
    
    <item>
      <title>Access to object type data in PHP</title>
      <link>https://sourcetut.com/access-to-object-type-data-in-php-ae6f3/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/access-to-object-type-data-in-php-ae6f3/</guid>
      <description>There is a type called `object`. It seems to be used like an array, but it is how to access the element.  $ a = $ object-&amp;gt; [&amp;#39;property&amp;#39;]; This means that the variable $ a stores the value of the property property of $ object.</description>
    </item>
    
    <item>
      <title>Build a container that automatically formats Docker x Laravel code</title>
      <link>https://sourcetut.com/build-a-container-that-automatically-formats-docker-x-laravel-code-ab8c1/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/build-a-container-that-automatically-formats-docker-x-laravel-code-ab8c1/</guid>
      <description>What is PHP CS Fixer? PHP CS Fixer(PHPCodingStandardsFixer) is, as the name suggests, a tool that modifies PHP code to conform to coding conventions. ..
Premise  Build the strongest Laravel development environment using Docker [new edition] -https://github.com/ucan-lab/docker-laravel  This article is a supplement to the above article.
Edit docker-compose.yml services: services: cs: image: herloct / php-cs-fixer volumes: --./backend:/project Add services.cs.
command #Do not automatically format (difference display only) $ docker-compose run cs fix --dry-run -v --diff --diff-format udiff .</description>
    </item>
    
    <item>
      <title>Check your PHP file with php-cs-fixer</title>
      <link>https://sourcetut.com/check-your-php-file-with-php-cs-fixer-37d8a/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/check-your-php-file-with-php-cs-fixer-37d8a/</guid>
      <description>command #Do not automatically format (difference display only) $ docker run -v $ (pwd): / project herloct / php-cs-fixer fix --dry-run -v --diff --diff-format udiff. #Automatic shaping $ docker run -v $ (pwd): / project herloct / php-cs-fixer fix -v --diff --diff-format udiff .. Reference  Laravel PHP-CS-Fixer rule settings https://hub.docker.com/r/herloct/php-cs-fixer  </description>
    </item>
    
    <item>
      <title>How to make delete button in laravel (File Upload Site #3)</title>
      <link>https://sourcetut.com/how-to-make-delete-button-in-laravel-file-upload-site-#3-5b493/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-make-delete-button-in-laravel-file-upload-site-#3-5b493/</guid>
      <description>1. Create a route  Route :: delete (&#39;files / {id}&#39;,&#39;FilesController @ destroy&#39;)-&amp;gt; name (&#39;deletefile&#39;); Add the form to the View file  &amp;lt;th&amp;gt; &amp;lt;form action = &amp;quot;{{route (&#39;deletefile&#39;, $ file-&amp;gt; id)}}&amp;quot; method = &amp;quot;POST&amp;quot;&amp;gt; @csrf @method (&#39;DELETE&#39;) &amp;lt;button type = &amp;quot;submit&amp;quot; class = &amp;quot;btn btn-outline-danger btn-delete&amp;quot;&amp;gt; &amp;lt;i class = &amp;quot;fa fa-trash&amp;quot;&amp;gt; &amp;lt;/ i&amp;gt; Delete &amp;lt;/ button&amp;gt; &amp;lt;/ form&amp;gt; &amp;lt;/ th&amp;gt; @csrf is an ant protection from cross-site request forgery.</description>
    </item>
    
    <item>
      <title>How to name variables in an easy-to-understand manner</title>
      <link>https://sourcetut.com/how-to-name-variables-in-an-easy-to-understand-manner-1f3a1/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-name-variables-in-an-easy-to-understand-manner-1f3a1/</guid>
      <description>#Programming study diary September 6, 2020 Summarize how to name variables that are indispensable for writing easy-to-understand code. Making variable names easy to read makes it easier to read and notice code mistakes.
How to write variables in #PHP
 -For PHP variables start with $ -After that, you can use half-width alphanumeric characters and underscores (_). (You can&amp;rsquo;t use a number immediately after $)  If you violate the above rules, an error will occur at runtime.</description>
    </item>
    
    <item>
      <title>Laravel6 Separate user and administrator authentication, leaving only administrator credentials with only name and password</title>
      <link>https://sourcetut.com/laravel6-separate-user-and-administrator-authentication-leaving-only-administrator-credentials-with-only-name-and-password-c060d/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel6-separate-user-and-administrator-authentication-leaving-only-administrator-credentials-with-only-name-and-password-c060d/</guid>
      <description>Purpose  -Summary of how to separate authentication between user and administrator.  Implementation environment  -Hardware environment     Items Information     OS macOS Catalina (10.15.5)   PC MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     -Software environment     Items Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>Size when a large subscript is specified for an array and a value is assigned</title>
      <link>https://sourcetut.com/size-when-a-large-subscript-is-specified-for-an-array-and-a-value-is-assigned-6d051/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/size-when-a-large-subscript-is-specified-for-an-array-and-a-value-is-assigned-6d051/</guid>
      <description>Motivation When developing a web application, when creating an array with the user ID (integer) as an index, isn&amp;rsquo;t it uselessly large? ??
Conclusion If you use an array in PHP and Map in JavaScript, the size will not be unnecessarily large.
For PHP There seems to be no problem even if you specify a large subscript.
$ array = []; $ array [100] =&amp;#39;hoge&amp;#39;; echo count ($ array); // 1 For JavaScript When a large subscript was specified, it became an array with empty inserted in the open space.</description>
    </item>
    
    <item>
      <title>Solution if you get a blank page when running CakePHP3 on IIS</title>
      <link>https://sourcetut.com/solution-if-you-get-a-blank-page-when-running-cakephp3-on-iis-b8639/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/solution-if-you-get-a-blank-page-when-running-cakephp3-on-iis-b8639/</guid>
      <description>0. Introduction When I was advancing the CakePHP3 tutorial while looking at various sites, I typed ** localhost / cms **, but ** a blank page was displayed **. Moreover, even ** localhost/phpinfo.php ** was ** pure white ** in the first place.
However, is it rare to use IIS when using CakePHP3 to investigate the cause? I couldn&amp;rsquo;t find a site that describes how to solve my phenomenon.
From the conclusion, it was ** IIS setting insufficient **, but I had a hard time finding it, so I will write it here.</description>
    </item>
    
    <item>
      <title>Validation of array type request parameters in Laravel</title>
      <link>https://sourcetut.com/validation-of-array-type-request-parameters-in-laravel-bc17b/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/validation-of-array-type-request-parameters-in-laravel-bc17b/</guid>
      <description>![PHP-7.2](https://img.shields.io/badge/PHP-7.2-brightgreen)![Laravel-6.x](https://img.shields.io/badge/Laravel-6.x-brightgreen)  A note about writing validation for request parameters that Laravel treats as an array type.
Implementation In the ** Request Parameter ** of the example below, describe the array obtained when the request parameter is obtained by $ request-&amp;gt; all (). In ** Validation **, write an array that represents the validation rule.
You can test whether validation is effective by executing Validator :: validate ($ data, $ rules) with Tinker etc.</description>
    </item>
    
    <item>
      <title>Workaround for JetPack site accelerators causing full-size images to shrink when enabled</title>
      <link>https://sourcetut.com/workaround-for-jetpack-site-accelerators-causing-full-size-images-to-shrink-when-enabled-a6003/</link>
      <pubDate>Sun, 06 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/workaround-for-jetpack-site-accelerators-causing-full-size-images-to-shrink-when-enabled-a6003/</guid>
      <description>Problem When JetPack&amp;rsquo;s  Site Accelerator &amp;lt;/ q&amp;gt; and  Speed up static file loading &amp;lt;/ q&amp;gt; are turned on in WordPress, the width of the image loaded in the post will be reduced.  Image size &amp;lt;/ q&amp;gt;: Even if you specify  Full size &amp;lt;/ q&amp;gt;, it will be reduced to 1024px.
Cause JetPack refers to global $ content_width to determine the maximum width of the image 1.</description>
    </item>
    
    <item>
      <title>[Explanatory article on task (2)] From inexperienced engineers, try to set three tasks that will be assigned to you in the early stages of your career.</title>
      <link>https://sourcetut.com/explanatory-article-on-task-2-from-inexperienced-engineers-try-to-set-three-tasks-that-will-be-assigned-to-you-in-the-early-stages-of-your-career.-669e3/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/explanatory-article-on-task-2-from-inexperienced-engineers-try-to-set-three-tasks-that-will-be-assigned-to-you-in-the-early-stages-of-your-career.-669e3/</guid>
      <description>Explanation of the previous article Click here for the tasks that were asked
https://qiita.com/morry_48/items/7dea1145d2db8bb7f570
Task ② Add display wording on the screen ~ Get the data saved in the DB and display it on the screen ~
As for the outlook for the task
   Identification of display location    Make sure that the data to be displayed is obtained from the database (if not, get it)    Display the above data in the target location It becomes a procedure such as.</description>
    </item>
    
    <item>
      <title>[PHP] foreach, trinomial calculus</title>
      <link>https://sourcetut.com/php-foreach-trinomial-calculus-49efe/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-foreach-trinomial-calculus-49efe/</guid>
      <description>I will summarize what I learned about PHP as a memorandum.  #foreach Loop processing specialized for arrays. Iterates as much as the elements of the array are included.
For example, the execution example is as follows.
&amp;lt;? php $ test = array (&amp;#34;test1&amp;#34;, &amp;#34;test2&amp;#34;, &amp;#34;test3&amp;#34;); foreach ($ test as $ value) { print $ value. &amp;#34;&amp;lt;br&amp;gt;&amp;#34;; } ?&amp;gt; #Execution result test1 test2 test3 In this way, the three elements were iteratively processed.</description>
    </item>
    
    <item>
      <title>A system architect-like, fluffy story about PHP systems and design ideas. I don&#39;t think there is a model answer, but I&#39;ll show you better practice</title>
      <link>https://sourcetut.com/a-system-architect-like-fluffy-story-about-php-systems-and-design-ideas.-i-dont-think-there-is-a-model-answer-but-ill-show-you-better-practice-d5bfe/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/a-system-architect-like-fluffy-story-about-php-systems-and-design-ideas.-i-dont-think-there-is-a-model-answer-but-ill-show-you-better-practice-d5bfe/</guid>
      <description>Overview For the past five years, I have been involved in the development of open systems and have had the opportunity to use PHP.
I rarely write the code myself (order it from an external business partner), but as I look at the code written by others, I feel the &amp;ldquo;level&amp;rdquo; of the PHP system. ， I wonder if it is something like this **, a personal line is being drawn.</description>
    </item>
    
    <item>
      <title>How to automatically generate Laravel Migration file from existing DB</title>
      <link>https://sourcetut.com/how-to-automatically-generate-laravel-migration-file-from-existing-db-b5a87/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-automatically-generate-laravel-migration-file-from-existing-db-b5a87/</guid>
      <description>oscarafdev / migrations-generator  https://github.com/oscarafdev/migrations-generator If you search, you will find barryvdhandXethron. It seems that oscarafdev is recommended for all of them.  Introduction  run composer  composer require &amp;quot;oscarafdev / migrations-generator&amp;quot; --dev How to use  Create a migration definition for all tables. .  APP_ENV = development php artisan migrate: generate  Create by specifying a table. .  APP_ENV = development php artisan migrate: generate --tables = &amp;quot;user, password_resets&amp;quot;  Create by excluding the specified table.</description>
    </item>
    
    <item>
      <title>How to make a custom module for Humhub (a certain interpretation on the official page) (2)</title>
      <link>https://sourcetut.com/how-to-make-a-custom-module-for-humhub-a-certain-interpretation-on-the-official-page-2-7e9e0/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-make-a-custom-module-for-humhub-a-certain-interpretation-on-the-official-page-2-7e9e0/</guid>
      <description>#Introduction Last timedescribedhowtomakeacustommoduleforHumhub,aboutthepartthatcanbesaidtobethemoduleformwork,andoneinterpretationabouttheofficialpage.Thistime,myunclewantstotalkabouttheinterpretationofthedescriptionofeventsinthecustommodule.(Unclewantstousethiswordingasahomagewhenheseestheanime&amp;quot;InterviewswithMonsterGirls&amp;rdquo;).
When using the custom module, there will be a state condition that &amp;ldquo;I want this module to come out like this during this operation&amp;rdquo;. If you say that describing this state condition and module activation condition is a description of events, will it be transmitted? Is there an expression to write a callback trigger?
The target of this interpretation is this official page. https://docs.humhub.org/docs/develop/modules-event-handler/
Although there are some overlaps with the previous content, I would like to talk about the mechanism of the menu display of the custom_page module in the latter half while tracing the explanation of the official page for the description of events.</description>
    </item>
    
    <item>
      <title>How to use CakePHP&#39;s AuthComponent to log in with arbitrary data without using a password</title>
      <link>https://sourcetut.com/how-to-use-cakephps-authcomponent-to-log-in-with-arbitrary-data-without-using-a-password-d0144/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-use-cakephps-authcomponent-to-log-in-with-arbitrary-data-without-using-a-password-d0144/</guid>
      <description>Preface Since I implemented login using AuthComponent without using a password, I wrote a memo It is implemented so that you can log in from data in multiple tables instead of just one table.
As an image As a package redelivery site It is an image that allows you to make a redelivery request with both a telephone number and a redelivery number.
Development environment PHP 3.6 CakePHP 3.8
  Notes AuthComponent has been deprecated since CakePHP 4.</description>
    </item>
    
    <item>
      <title>How to use form button (PHP super beginner)</title>
      <link>https://sourcetut.com/how-to-use-form-button-php-super-beginner-3d7f5/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-use-form-button-php-super-beginner-3d7f5/</guid>
      <description>Introduction As a PHP super beginner, I stumbled upon creating a form button and will post what I learned from it. What is a ## form tag? Tags used when creating input forms etc.
Set actions and methods. ◉ action attribute = You can specify a program to process the data entered in the form.
 If you enter the url, you can move to that page when you press the button.</description>
    </item>
    
    <item>
      <title>I want to post a logical value with ajax</title>
      <link>https://sourcetut.com/i-want-to-post-a-logical-value-with-ajax-d379c/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/i-want-to-post-a-logical-value-with-ajax-d379c/</guid>
      <description>When posting data asynchronously using ajax, you want to post the value as a logical value (TRUE / FALSE).  Even if it is written normally, it will be treated as a string type. Even if you bother to write boolean (true) etc. when posting, it will not be posted as a logical value. So, I have to mold the data once somewhere. This time, I will describe the case with FuelPHP.</description>
    </item>
    
    <item>
      <title>Laravel CSS settings are not reflected</title>
      <link>https://sourcetut.com/laravel-css-settings-are-not-reflected-ea3fd/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-css-settings-are-not-reflected-ea3fd/</guid>
      <description>Purpose  -CSS is described to set the elements described in the view file of Laravel, but the action to be taken when the CSS setting is not reflected is described.  Implementation environment  -Hardware environment     Items Information     OS macOS Catalina (10.15.5)   Hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     -Software environment     Items Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>PHP comparison operator</title>
      <link>https://sourcetut.com/php-comparison-operator-cfb02/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-comparison-operator-cfb02/</guid>
      <description>Introduction I think that comparison operators are often used for judgment. The following is a brief summary.
PHP comparison operator // TRUE when $ a equals $ b after type reciprocal conversion $ a == $ b // TRUE if $ a is equal to and of the same type as $ b $ a === $ b // TRUE if $ a is not equal to $ b after type reciprocal conversion $ a!</description>
    </item>
    
    <item>
      <title>Summarize operators in PHP</title>
      <link>https://sourcetut.com/summarize-operators-in-php-8bfbc/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/summarize-operators-in-php-8bfbc/</guid>
      <description>#Programming study diary September 5, 2020 I thought I knew most of the operators, but there were some operators I didn&amp;rsquo;t know, such as &amp;lt;&amp;gt; and . =, So I&amp;rsquo;ll take this opportunity to put them all together.
#Arithmetic operator An operator that performs simple addition, subtraction, multiplication, and division such as addition, subtraction, multiplication, and division. Addition is used not only for numbers but also for concatenating strings. Addition is indicated by add, subtraction is indicated by sub, multiplication is indicated by mul, quotient of division is indicated by div, and remainder of division is indicated by mod.</description>
    </item>
    
    <item>
      <title>Unit test with mockery on Laravel</title>
      <link>https://sourcetut.com/unit-test-with-mockery-on-laravel-834e9/</link>
      <pubDate>Sat, 05 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/unit-test-with-mockery-on-laravel-834e9/</guid>
      <description>What you can do by reading this article You will be able to do Unit Test using Mockery in Laravel.
 Since it was made quite a while ago, please feel free to point out mm  What is Mockery in the first place? A PHP mock object framework that makes it easy to create mock with PHPUnit. https://readouble.com/mockery/1.0/ja/index.html
#Environment laravel 5.3 phpunit 5.7.3 Use mockery
Thing you want to do  -I want to Mock an unimplemented static method called Test :: getInfo () and test it with phpunit.</description>
    </item>
    
    <item>
      <title>[Laravel] Implementation of multilingual switching function</title>
      <link>https://sourcetut.com/laravel-implementation-of-multilingual-switching-function-d107e/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-implementation-of-multilingual-switching-function-d107e/</guid>
      <description>A memorandum, the fourth.  Continuation of &amp;quot;[Vue.js] Multilingualization using vue-i18n&amp;rdquo; that I wrote last time. I implemented a switching function in Laravel.
reference: https://mydnic.be/post/laravel-5-and-his-fcking-non-persistent-app-setlocale
Implementation First, prepare the language to be used as an array.
&amp;lt;? php return [ &#39;ja&#39; =&amp;gt;&#39;Japanese&#39;, &#39;en&#39; =&amp;gt;&#39;English&#39;, &#39;cn&#39; =&amp;gt;&#39;Simplified Chinese&#39;, &#39;tw&#39; =&amp;gt;&#39;Traditional Chinese&#39;, ];; ?&amp;gt; Next, prepare a controller to write the language switching process.
$ php artisan make: controller LanguageController class LanguageController extends Controller { public function switchLang ($ lang) { // When there is lang passed as an argument in the prepared language array // Save key (applocale): value ($ lang) in session if (array_key_exists ($ lang, Config :: get (&#39;languages&#39;))) { Session :: put (&#39;applocale&#39;, $ lang); } return Redirect :: back (); } } Create middleware.</description>
    </item>
    
    <item>
      <title>Create a simple video distribution platform service using Amazon IVS</title>
      <link>https://sourcetut.com/create-a-simple-video-distribution-platform-service-using-amazon-ivs-697d5/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/create-a-simple-video-distribution-platform-service-using-amazon-ivs-697d5/</guid>
      <description>Overview In this article, simple video distribution using Amazon Interactive Video Service(hereinafterIVS), which became GA on 2020/07/15. Create a platform service. The implementation is implemented using PHP / Lumen.
What is #IVS? It is a managed live streaming service that can be easily set up, and one of its features is a low-latency video experience. We also provide a player SDK optimized for IVS, which makes it possible to provide services without being aware of functional differences between platforms.</description>
    </item>
    
    <item>
      <title>Just before ISUCON10! An example of speeding up processing</title>
      <link>https://sourcetut.com/just-before-isucon10-an-example-of-speeding-up-processing-20880/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/just-before-isucon10-an-example-of-speeding-up-processing-20880/</guid>
      <description>はじめに 高速化の手法の一例を共有する
高速化前のコード &amp;lt;?php class Data { public function get_data_old(){ $pdo = new PDO(&amp;#39;mysql:host=localhost;dbname=array_speed_up;&amp;#39;,&amp;#39;root&amp;#39;); $query = &amp;#39;SELECT * FROM `data`&amp;#39;; $result = $pdo-&amp;gt;query($query)-&amp;gt;fetchAll(PDO::FETCH_ASSOC); return $result; } } function old_code(){ $data = new Data(); $records = $data-&amp;gt;get_data_old(); $tmp_array = array(); foreach($records as $record){ array_push($tmp_array, $record[&amp;#39;id&amp;#39;].&amp;#39;,&amp;#39;.&amp;#39;&amp;#34;&amp;#39;.$record[&amp;#39;value&amp;#39;].&amp;#39;&amp;#34;&amp;#39;); } //print_r($tmp_array);  return($tmp_array); } echo(&amp;#34;--- old ---\n&amp;#34;); $time_start = microtime(true); $memory_first = memory_get_usage() / (1024 * 1024); old_code(); $usage_memory = memory_get_usage() / (1024 * 1024); $memory = $usage_memory - $memory_first; $memory = round($memory, 4); $time = microtime(true) - $time_start; $time = round($time, 4); echo($memory.</description>
    </item>
    
    <item>
      <title>PHP learning points (will be updated at any time)</title>
      <link>https://sourcetut.com/php-learning-points-will-be-updated-at-any-time-3295b/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-learning-points-will-be-updated-at-any-time-3295b/</guid>
      <description>-PHP can be used by embedding it in HTML. Write PHP instructions in &amp;lt;? Php ~?&amp;gt;, And the &amp;lt;? Php ~?&amp;gt; Part is converted to HTML and displayed.   In PHP, use a semicolon &amp;ldquo;;&amp;rdquo; at the end of a sentence to separate sentences.   Note that an error will occur if you forget the semicolon.  ・ Comments are made from &amp;ldquo;//&amp;rdquo; to the end of the line.</description>
    </item>
    
    <item>
      <title>Skill analysis summary</title>
      <link>https://sourcetut.com/skill-analysis-summary-6560c/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/skill-analysis-summary-6560c/</guid>
      <description>#Background I&amp;rsquo;ve been learning about programming as it is ・ What language can you speak? → I studied with php and java, but I don&amp;rsquo;t know if I can do it!
・ What kind of function can be created? → You can use the function copied by Gugu, but I don&amp;rsquo;t know if it can be used when the situation changes!
I can&amp;rsquo;t answer that I can be confident when asked a question such as.</description>
    </item>
    
    <item>
      <title>Summarize the basics of Laravel validation</title>
      <link>https://sourcetut.com/summarize-the-basics-of-laravel-validation-503b9/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/summarize-the-basics-of-laravel-validation-503b9/</guid>
      <description>Target ** Know the basics of Laravel validation and make it usable to some extent **
What is validation? A function to display errors etc. for input contents such as forms. Even though it is a required form, if nothing is entered, an error message etc. can be displayed. Like this (↓)
Validation creation Make a request In the first place, validation is a function. Create a file that enables you to use the function with request.</description>
    </item>
    
    <item>
      <title>Try using Carbon</title>
      <link>https://sourcetut.com/try-using-carbon-779bb/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-using-carbon-779bb/</guid>
      <description>environment  First book: 2020/09/04 PC: macOS 10.15.6 php 7.4.9 Composer: v1.10.10 carbon: v2.39
What is #Carbon? A library that organizes time-related processing
https://carbon.nesbot.com/
#Install
 Composer has been set  Do the following in your terminal
% composer require nesbot / carbon How to use Just do new.
use Carbon \ Carbon; $ time = new Carbon (); echo $ time; // 2020-09-04 16:00:21 echo Carbon :: now (); // 2020-09-04 16:00:21.</description>
    </item>
    
    <item>
      <title>Try using phpdotenv</title>
      <link>https://sourcetut.com/try-using-phpdotenv-71cc9/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-using-phpdotenv-71cc9/</guid>
      <description>environment  First book: 2020/09/04 PC: macOS 10.15.6 php 7.4.9 Composer: v1.10.10 phpdotenv: v5.1
What is # phpdotenv? An environment variable prepared in the .env file that can be easily handled. https://github.com/vlucas/phpdotenv
#Install
 Composer has been set  Do the following in your terminal
% composer require vlucas / phpdotenv #Preparing the env file Prepare a  .env file in an appropriate location and describe the environment variables you want to set.</description>
    </item>
    
    <item>
      <title>【PHP】basename,require,require_once</title>
      <link>https://sourcetut.com/phpbasenamerequirerequire_once-e2465/</link>
      <pubDate>Fri, 04 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/phpbasenamerequirerequire_once-e2465/</guid>
      <description>I will summarize what I learned about PHP as a memorandum.  #basename basename is a function that returns the part of the name at the end of the path.
For example, if you write as follows, the output result will be&amp;rsquo;index.html&amp;rsquo;.
&amp;lt;? php print basename (&amp;#34;/etc/index.html&amp;#34;); ?&amp;gt; #result index.html You can also cut characters from the end by setting a value in the second argument.
&amp;lt;? php print basename (&amp;#34;/etc/index.</description>
    </item>
    
    <item>
      <title>CodeIgniter MVC model</title>
      <link>https://sourcetut.com/codeigniter-mvc-model-bc736/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/codeigniter-mvc-model-bc736/</guid>
      <description>I mainly write how to write the MVC model of CodeIgniter.  #Controller
  -Create a controller that implements a class for creating static pages.
The class to be created inherits the CI_Controller class of system / core / Controller.php.
Take the name of the page as an argument.
The method to load that page is show ()
class Pages extends CI_Controller { public function show ($ page =&amp;#39;home&amp;#39;) { } }   -Class inheritance &amp;ndash;Override: If the same method is used in the small class and the parent class, Coctus takes precedence and overwrites the parent class.</description>
    </item>
    
    <item>
      <title>Get input</title>
      <link>https://sourcetut.com/get-input-0ff36/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/get-input-0ff36/</guid>
      <description>Output side Set the destination php file in action of form attribute of html on the output side.
&amp;lt;form action = &amp;quot;submit.php&amp;quot; method = &amp;quot;get&amp;quot;&amp;gt; &amp;lt;label for = &amp;quot;my_name&amp;quot;&amp;gt; Name: &amp;lt;/ label&amp;gt; &amp;lt;input type = &amp;quot;text&amp;quot; id = &amp;quot;my_name&amp;quot; name = &amp;quot;my_name&amp;quot; maxlength = &amp;quot;255&amp;quot; value = &amp;quot;&amp;quot;&amp;gt; &amp;lt;input type = &amp;quot;submit&amp;quot; value = &amp;quot;submit&amp;quot;&amp;gt; &amp;lt;/ form&amp;gt; Recipient The contents of $ _REQUEST can be obtained by entering the value given in the name attribute.</description>
    </item>
    
    <item>
      <title>How to implement logical deletion in CakePHP2</title>
      <link>https://sourcetut.com/how-to-implement-logical-deletion-in-cakephp2-ef1f9/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-implement-logical-deletion-in-cakephp2-ef1f9/</guid>
      <description>#What is logical deletion? Logical deletion means that when the user sees it in a browser, it looks like it is being deleted, but the actual data is stored in a column prepared separately. Therefore, it is possible to restore deleted data from the administrator side.
#What is physical deletion? Delete the data in the database as well. Data cannot be recovered. This is the deletion method using the normal delete method.</description>
    </item>
    
    <item>
      <title>Laravel5.6 Separate user and administrator authentication, leaving only administrator credentials with name and password only</title>
      <link>https://sourcetut.com/laravel5.6-separate-user-and-administrator-authentication-leaving-only-administrator-credentials-with-name-and-password-only-d223d/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel5.6-separate-user-and-administrator-authentication-leaving-only-administrator-credentials-with-name-and-password-only-d223d/</guid>
      <description>Purpose  -Summary of how to separate authentication between user and administrator.  Implementation environment  -Hardware environment     Items Information     OS macOS Catalina (10.15.5)   PC MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     -Software environment     Items Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>PHP-SQL</title>
      <link>https://sourcetut.com/php-sql-7d9ef/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-sql-7d9ef/</guid>
      <description>&amp;lt;p&amp;gt; Output in learning &amp;lt;br&amp;gt;  There may be some mistakes &amp;hellip; &amp;lt;/ p&amp;gt;
 Connect to database $ host =&amp;#39;&amp;#39;; $ username =&amp;#39;mysql username&amp;#39;; $ password =&amp;#39;mysql password&amp;#39;; $ dbname =&amp;#39;&amp;#39;; $ charset =&amp;#39;utf8&amp;#39;; // DSN string for mysql $ dsn =&amp;#39;mysql: dbname =&amp;#39;. $ dbname.&amp;#39;; Host =&amp;#39;. $ Host.&amp;#39;; charset =&amp;#39;. $ charset; try { $ dbh = new PDO ($ dsn, $ username, $ password, array (PDO :: MYSQL_ATTR_INIT_COMMAND =&amp;gt;&amp;#39;SET NAMES utf8mb4&amp;#39;)); $ dbh-&amp;gt; setAttribute (PDO :: ATTR_ERRMODE, PDO :: ERRMODE_EXCEPTION); $ dbh-&amp;gt; setAttribute (PDO :: ATTR_EMULATE_PREPARES, false); Do the processing } catch (PDOException $ e) { echo&amp;#39;An error occurred during database processing.</description>
    </item>
    
    <item>
      <title>Try using Composer</title>
      <link>https://sourcetut.com/try-using-composer-23aa4/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/try-using-composer-23aa4/</guid>
      <description>environment  First book: 2020/09/03 PC: macOS 10.15.6 Composer: v1.10.10 php 7.4.9
What is #Composer?
 Composer is an application-level package management system that provides a standard format for managing software and required library dependencies for the PHP programming language.
 From wikipedia
In short, it seems to handle library dependencies together. On the contrary, if you don&amp;rsquo;t use the library, you probably don&amp;rsquo;t need it. (Well, if there is a possibility to use it later, it may be prepared first)</description>
    </item>
    
    <item>
      <title>Use associative arrays in PHP</title>
      <link>https://sourcetut.com/use-associative-arrays-in-php-8ddf9/</link>
      <pubDate>Thu, 03 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/use-associative-arrays-in-php-8ddf9/</guid>
      <description>#Programming study diary September 3, 2020
#What is an associative array? In an array, each value is numbered 0, 1, 2 &amp;hellip; in order, and data can be specified by specifying that number, but in an associative array, it is managed by giving a name instead of a number can do. The box that uses both the array and the associative array is the same, but in the associative array, in order to make it easier to understand the handling after entering the data, you can retrieve the data for each name by specifying the name instead of the number.</description>
    </item>
    
    <item>
      <title>Corresponding to complement with or without postal code hyphen (PHP)</title>
      <link>https://sourcetut.com/corresponding-to-complement-with-or-without-postal-code-hyphen-php-8a57c/</link>
      <pubDate>Mon, 31 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/corresponding-to-complement-with-or-without-postal-code-hyphen-php-8a57c/</guid>
      <description>A memorandum for saving the postal code entered on the Web page in the DB * In case of PHP  Corresponding to complement with or without hyphen
// Put a hyphen in the variable as a survey string $pattern =&#39;-&#39;; // Does the input string (zip code) include hyphens? $pos = strpos($p_data[&#39;inZipCode&#39;], $pattern); // To insert a hyphen if there is no hyphen if ($pos === false) { $chgZipCode = substr_replace($p_data[&#39;inZipCode&#39;], $pattern, 3, 0); // if you want to remove the hyphen } else { $chgZipCode = str_replace($pattern, ``, $p_data[&#39;inZipCode&#39;]); } It is OK if you search for the value input and the converted value at the time of SQL search</description>
    </item>
    
    <item>
      <title>Ebextension setting when releasing a Laravel application to Elastic Beanstalk</title>
      <link>https://sourcetut.com/ebextension-setting-when-releasing-a-laravel-application-to-elastic-beanstalk-29543/</link>
      <pubDate>Mon, 31 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/ebextension-setting-when-releasing-a-laravel-application-to-elastic-beanstalk-29543/</guid>
      <description>When you release Laravel in production, using a config cache or a route cache will make it run more efficiently and improve the response of your application.  When releasing to Elastic Beanstalk, you can add the command at the time of release by putting a .config file in .ebextensions/*.
container_commands: 01-cache_config: command: &amp;quot;php artisan config:cache&amp;quot; 02-cache_route: command: &amp;quot;php artisan route:cache&amp;quot; 03-cache_view: command: &amp;quot;php artisan view:cache&amp;quot; With the above, cache of config, route and view can be generated after uploading the application.</description>
    </item>
    
    <item>
      <title>Index.php is displayed in WordPress permalink</title>
      <link>https://sourcetut.com/index.php-is-displayed-in-wordpress-permalink-83854/</link>
      <pubDate>Mon, 31 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/index.php-is-displayed-in-wordpress-permalink-83854/</guid>
      <description>After touching WordPress after a long time, there is a problem that permalink goes wrong. .. ..  ##Situation
In WordPress, bite index.php in the URL. Like this ↓
https://sample/index.php/Posted article name/
The ideal is When displaying a fixed page,
https://sample/fixed page/
So, it should be displayed, but I can not do it,
https://sample/index.php/fixed page/
The mystery that is displayed. .. ..
##environment
MacBook Catalina MAMP PHP 7.4.2 WordPress 5.5.5 (I also tried 5.</description>
    </item>
    
    <item>
      <title>Receive emails with Laravel Mail Catcher</title>
      <link>https://sourcetut.com/receive-emails-with-laravel-mail-catcher-104e0/</link>
      <pubDate>Mon, 31 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/receive-emails-with-laravel-mail-catcher-104e0/</guid>
      <description>Purpose  Summarize the method to receive with MailCatcher sent from Laravel.  Implementation environment  Hardware environment     Item Information     OS macOS Catalina(10.15.5)   Hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     Software environment     Item Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>[Beginner development diary] I want to use Rakuten API with PHP #0</title>
      <link>https://sourcetut.com/beginner-development-diary-i-want-to-use-rakuten-api-with-php-#0-640e6/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/beginner-development-diary-i-want-to-use-rakuten-api-with-php-#0-640e6/</guid>
      <description>This is a development diary for beginners who want to try external API cooperation.  I think the content will be quite elementary. I would like to leave an article as a record so that I can laugh at it later.
#Background I&amp;rsquo;m in the third year of university now, and I want to be a vague engineer in the future. But I don&amp;rsquo;t really know where I want to work.</description>
    </item>
    
    <item>
      <title>[Beginner development diary] I want to use Rakuten API with PHP #1</title>
      <link>https://sourcetut.com/beginner-development-diary-i-want-to-use-rakuten-api-with-php-#1-70e60/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/beginner-development-diary-i-want-to-use-rakuten-api-with-php-#1-70e60/</guid>
      <description>I will write the development contents up to yesterday collectively.  #Install PHP Actually, last month, my MBP, which I have been using for 4 years, broke and I am using windows for the first time this month. The programming environment has not been set up yet, so I started here. This is the first installation on mac, because it does not require PHP installation. I didn&amp;rsquo;t even know I couldn&amp;rsquo;t run PHP on the command line without passing the path.</description>
    </item>
    
    <item>
      <title>[Improve PHP basic physical strength] Let&#39;s solve the basic problem of competitive professional (AOJ-ICPC) with PHP!</title>
      <link>https://sourcetut.com/improve-php-basic-physical-strength-lets-solve-the-basic-problem-of-competitive-professional-aoj-icpc-with-php-30fd6/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/improve-php-basic-physical-strength-lets-solve-the-basic-problem-of-competitive-professional-aoj-icpc-with-php-30fd6/</guid>
      <description>#Audience for this article
 Inexperienced/startup engineer aiming to rank up with paiza (up to about A rank) I learned PHP with dot installation and introductory books, but I&amp;rsquo;m still a &amp;ldquo;first-time&amp;rdquo; beginner  Purpose of writing this article It is quite a hurdle for a beginner who has learned a programming language with books and online learning materials such as dot installation to suddenly create a website.
What I would like to recommend to those beginners is to practice and solve simple programming problems.</description>
    </item>
    
    <item>
      <title>[Laravel practice] How to convert request parameter name to snake case</title>
      <link>https://sourcetut.com/laravel-practice-how-to-convert-request-parameter-name-to-snake-case-5a035/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-practice-how-to-convert-request-parameter-name-to-snake-case-5a035/</guid>
      <description>Version  Laravel 5.7 PHP 7.2.31  Premise When developing an API with Laravel, assume that you want to convert request parameter names written as camel cases into snake cases. For example, in SPA development, when sending a request to Laravel&amp;rsquo;s API by asynchronous communication with React.js or Vue.js, you want to use CamelCase as the front side, but snake case as the backend side. ..
I googled how to easily convert it on the Laravel side, but I have not come up with a best practice method, so I will share it here.</description>
    </item>
    
    <item>
      <title>After installing XAMPP for mac after a long time, it was a bit different</title>
      <link>https://sourcetut.com/after-installing-xampp-for-mac-after-a-long-time-it-was-a-bit-different-d8173/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/after-installing-xampp-for-mac-after-a-long-time-it-was-a-bit-different-d8173/</guid>
      <description>#Conclusion
 It was a VM It&amp;rsquo;s not http://localhost~ anymore  Install XAMPP XAMPP
Version as of August 30, 2020 is 7.4.9
![Screenshot 2020-08-30 16.05.11.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/699952/a64f1e2a-a0f6-5938-0c28-(7b5ff26f06cf.png)
I notice that the XAMPP folder that finder should have is gone I tried to start XAMPP for the time being Then it looks like a local IP address is assigned
![Screenshot 2020-08-30 16.12.26.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/699952/46fc7774-cb13-3b8a-0e89-(10dafa6e84a8.png)
Start Apache and MySQL
![Screenshot 2020-08-30 16.16.32.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/699952/2111e8f7-9412-ba55-d1d5-(0035e5b481f0.png)
Enable 80 port
![Screenshot 2020-08-30 16.</description>
    </item>
    
    <item>
      <title>From CodeIgniter3 to Laravel. An outline of a package management system that may be a hurdle when jumping into a framework with a different culture</title>
      <link>https://sourcetut.com/from-codeigniter3-to-laravel.-an-outline-of-a-package-management-system-that-may-be-a-hurdle-when-jumping-into-a-framework-with-a-different-culture-a0bc6/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/from-codeigniter3-to-laravel.-an-outline-of-a-package-management-system-that-may-be-a-hurdle-when-jumping-into-a-framework-with-a-different-culture-a0bc6/</guid>
      <description>Overview This time, I would like to set up a more advanced (practical) specification example to contrast CodeIgniter and Laravel code.
Specifically, I would like to create a page that incorporates CSS and JS, but I will leave a concrete code introduction to the next article, this time about a more basic ** &amp;ldquo;package management system&amp;rdquo; ** Touch.
I would like to make every effort so that it doesn&amp;rsquo;t get too difficult all at once, but compared to the last time, the hurdles have become much higher, and I feel like I&amp;rsquo;m chilling and sweating how accurately my uncle&amp;rsquo;s verbalization ability can express me (pressure pressure).</description>
    </item>
    
    <item>
      <title>If you are stuck with the cooperation between PHPStorm and xdebug on docker. trouble shooting</title>
      <link>https://sourcetut.com/if-you-are-stuck-with-the-cooperation-between-phpstorm-and-xdebug-on-docker.-trouble-shooting-81b15/</link>
      <pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/if-you-are-stuck-with-the-cooperation-between-phpstorm-and-xdebug-on-docker.-trouble-shooting-81b15/</guid>
      <description>What is this In case you want to link PHPStorm and xdebug on docker, &amp;ldquo;Why you can&amp;rsquo;t connect!&amp;rdquo; I will write a hint.
What is Xdebug?  Xdebug is a sophisticated PHP debugging tool. It makes it easy to see the familiar &amp;ldquo;var_dump&amp;rdquo; in PHP debugging, finds the bottom-necked process, and step through it. Another debugging tool is Zend Debugger. 5 Tips to use Xdebug | Let&amp;rsquo;s make a smartphone site application.</description>
    </item>
    
    <item>
      <title>[PHP/Cast] Be aware of type specification</title>
      <link>https://sourcetut.com/php-cast-be-aware-of-type-specification-be56b/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-cast-be-aware-of-type-specification-be56b/</guid>
      <description>Introduction Are you aware of the type specification when implementing it in PHP? In PHP, if you put a character string in a variable, the variable will be a string type, and if you put an integer, it will be an int type.
 PHP does not require (or support) explicit type definitions when defining variables. The type of a variable is defined by the statement in which it is used.</description>
    </item>
    
    <item>
      <title>[PHP] Repeat the same character string with str_repeat</title>
      <link>https://sourcetut.com/php-repeat-the-same-character-string-with-str_repeat-5ede1/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-repeat-the-same-character-string-with-str_repeat-5ede1/</guid>
      <description>environment ・Host OS: Windows10 Home ・Guest OS: WSL Ubuntu20.04 ・PHP7.4 ・Laravel FrameWork 7.17.2
Function summary If &amp;ldquo;str_repeat(string, int)**&amp;rdquo; is specified, a string in which int strings are concatenated is returned.
The usage example is as follows
echo str_repeat(&amp;#39;Nyan&amp;#39;, 3); //Execution result Meow Meow Meow Meow When this function can be used is useful when creating a property with a large number of characters in a boundary value test.
For example, when performing a validation test on a column with a maximum of 200 characters, it is difficult to grasp the number of characters manually, and it is time-consuming and difficult to enter each time.</description>
    </item>
    
    <item>
      <title>Arrow operator in PHP</title>
      <link>https://sourcetut.com/arrow-operator-in-php-f37ac/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/arrow-operator-in-php-f37ac/</guid>
      <description>#Programming study diary August 29, 2020 Summarize how to use the arrow operator (-&amp;gt; symbol).
What is the #Arrow operator? As mentioned above, the -&amp;gt; symbol is called the arrow operator. The arrow operator specifies the instance of the class on the left side and the property or method of the class on the left side on the right side, and calls the access method to the property.
#How to write The usage example of the arrow operator is as follows.</description>
    </item>
    
    <item>
      <title>Customize Laravel 7 series Auth authentication routing</title>
      <link>https://sourcetut.com/customize-laravel-7-series-auth-authentication-routing-03687/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/customize-laravel-7-series-auth-authentication-routing-03687/</guid>
      <description>#§1.First of all It is an Auth facade that can easily implement the login function with Laravel, but if you tamper with the contents, the hurdle will rise at a stretch.
There is also the difficulty that the directory structure of the Auth body differs depending on the version of Laravel. Even if I look it up, most of the information is for Laravel 5 or 6 systems, and I cannot apply it for 7 systems.</description>
    </item>
    
    <item>
      <title>How to install cakephp on mac</title>
      <link>https://sourcetut.com/how-to-install-cakephp-on-mac-6e072/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-install-cakephp-on-mac-6e072/</guid>
      <description>#Procedure disclosure (Memorandum)
Install MAMP on ##1.mac
##2.Pass PATH to MAMP php (PATH from php in mac to MAMP php in terminal)
At the terminal
macbook:~ user$ which php When you execute, you should see (/usr/bin/php) because you can see the current status. When I checked, it seems that this php is the php originally included in mac, and it seems to be useless as it is.
In this case, since PATH is not in MAMP php, At the terminal</description>
    </item>
    
    <item>
      <title>How to make a custom module for Humhub (some interpretation on the official page) (1)</title>
      <link>https://sourcetut.com/how-to-make-a-custom-module-for-humhub-some-interpretation-on-the-official-page-1-6b427/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-make-a-custom-module-for-humhub-some-interpretation-on-the-official-page-1-6b427/</guid>
      <description>#Introduction I took a quick look around, and although I found a humhub operation article in Japanese, I found that there was little information on module development. In addition, there was an opinion as to whether to record and disseminate technical information within the colleagues operating humhub. Therefore, I decided to make a memorandum of my work and the meaning of succession of technology to make a record and to disseminate the information.</description>
    </item>
    
    <item>
      <title>How to write database framework Medoo</title>
      <link>https://sourcetut.com/how-to-write-database-framework-medoo-4a5df/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-write-database-framework-medoo-4a5df/</guid>
      <description>I happened to have an opportunity to use Medoo, so I will leave it as a memorandum.  What is Medoo? A database framework for PHP. (The official website is here) Structure Here is what I used. The order of placement is as follows. select( &amp;#34;Account&amp;#34;, [ &amp;#34;[&amp;gt;&amp;lt;]Shop&amp;#34; =&amp;gt; [&amp;#34;Shop&amp;#34; =&amp;gt; &amp;#34;id&amp;#34;], &amp;#34;[&amp;gt;&amp;lt;]Product&amp;#34; =&amp;gt; [&amp;#34;Product&amp;#34; =&amp;gt; &amp;#34;id&amp;#34;] ], [ &amp;#34;Account.Id&amp;#34;, &amp;#34;Account.Name&amp;#34;, &amp;#34;Account.Tel&amp;#34;, &amp;#34;Shop.Id(Shop_id)&amp;#34; &amp;#34;Shop.Name(Shop_Name)&amp;#34;, &amp;#34;Product.Name(Product_Name)&amp;#34; ], [ &amp;#34;AND&amp;#34; =&amp;gt; [ &amp;#34;Account.</description>
    </item>
    
    <item>
      <title>Laravel Let&#39;s add like function (1)</title>
      <link>https://sourcetut.com/laravel-lets-add-like-function-1-38610/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-lets-add-like-function-1-38610/</guid>
      <description>With the Like function, you can change the color of the heart and the number of likes without changing the screen before and after updating the Like table.  To achieve this, the Like function uses JavaScript instead of the form tag as the method of communicating from the client (PC or smartphone browser) to the server (Laravel side).
This time, we use Vue.js, which is a JavaScript framework, so that we can efficiently develop a series of processes such as communication to the server when a heart is pressed and switching of the color of the heart and the display of the number of likes.</description>
    </item>
    
    <item>
      <title>Laravel validation rule size validation error even though the number of characters matches</title>
      <link>https://sourcetut.com/laravel-validation-rule-size-validation-error-even-though-the-number-of-characters-matches-ebd25/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-validation-rule-size-validation-error-even-though-the-number-of-characters-matches-ebd25/</guid>
      <description>Purpose  Summarize the problem that an error occurs even if it matches with the number of characters specified in the validation rule &amp;ldquo;size&amp;rdquo; while implementing validation  Implementation environment  Hardware environment     Item Information     OS macOS Catalina(10.15.5)   Hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     Software environment     Item Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>Naming of confirm</title>
      <link>https://sourcetut.com/naming-of-confirm-e1d30/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/naming-of-confirm-e1d30/</guid>
      <description>Choices commit There is the term commit (= commit) in database terms. My favorite horse. However, if you use it in a place that is not related to the database, it may be confused with &amp;ldquo;commit?&amp;rdquo;
confirm It looks good, but it also means a strong sense of &amp;ldquo;confirming.&amp;rdquo; There is an image of confirming by &amp;ldquo;listening to the other party&amp;rdquo;.
fix From an engineer&amp;rsquo;s point of view, the meaning of &amp;ldquo;fine-correcting&amp;rdquo; seems strong.</description>
    </item>
    
    <item>
      <title>PHP: How to use Smarty</title>
      <link>https://sourcetut.com/php-how-to-use-smarty-76532/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-how-to-use-smarty-76532/</guid>
      <description>This is the method confirmed on Ubuntu 20.04.  Download library
wget https://github.com/smarty-php/smarty/archive/v3.1.35.tar.gz Install
Unzip &amp;gt;v3.1.35.tar.gz and put it under /usr/local/lib
Sample program
Folder structure
$ tree . ├── templates │ └── hello.tpl ├── templates_c └── test.php Put it so that it can be written with templates_c. With 777, you can write securely.
&amp;lt;?php define(&amp;#39;SMARTY_DIR&amp;#39;,&amp;#39;/usr/local/lib/smarty-3.1.35/libs/&amp;#39;); require_once(SMARTY_DIR .&amp;#39;Smarty.class.php&amp;#39;); $smarty = new Smarty(); $smarty-&amp;gt;template_dir = &amp;#34;./templates/&amp;#34;; $smarty-&amp;gt;compile_dir = &amp;#34;./templates_c/&amp;#34;; $name = $_GET[&amp;#39;name&amp;#39;]; $smarty-&amp;gt;assign(&amp;#34;name&amp;#34;, $name); $smarty-&amp;gt;display(&amp;#34;hello.</description>
    </item>
    
    <item>
      <title>Sort varcher type as number in Laravel (column-sortable)</title>
      <link>https://sourcetut.com/sort-varcher-type-as-number-in-laravel-column-sortable-c5d59/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/sort-varcher-type-as-number-in-laravel-column-sortable-c5d59/</guid>
      <description>Thing you want to do I want to sort the column defined by varchar in MySQL as a numeric type.
What do you mean? If you order by varchar column, it will be sorted in dictionary order. For example, suppose you have data 100, 2, 99, 11, and you want to arrange them in ascending order. Normally, it is expected to be lined up with 2, 11, 99, 100, but in the case of varchar, the order is 100, 11, 2, 99 .</description>
    </item>
    
    <item>
      <title>Super simple routing with PHP</title>
      <link>https://sourcetut.com/super-simple-routing-with-php-e4c07/</link>
      <pubDate>Sat, 29 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/super-simple-routing-with-php-e4c07/</guid>
      <description>First of all  &amp;ldquo;Is this kind of routing? (´･_･`)&amp;rdquo;
That&amp;rsquo;s the kind of Tsukkomi I accept. **I recommend it. **
&amp;ldquo;Recommend? (&#39;･_･`)&amp;rdquo;
Thing you want to do For example
/pages/index.php?page=1
Not a URL like
/pages/1/
I want to process it. That&amp;rsquo;s it. That’s all (´･_･`)
.htaccess It is necessary to control the server side to process with index.php instead of 404 even if a strange URL is accepted, rather than the program itself.</description>
    </item>
    
    <item>
      <title>[CakePHP]$this-&gt;request-&gt;query() is URL decoded properly</title>
      <link>https://sourcetut.com/cakephpthis-request-query-is-url-decoded-properly-054e1/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/cakephpthis-request-query-is-url-decoded-properly-054e1/</guid>
      <description>Validated environment ・CakePHP2 ・CakePHP3.8
Why I wrote this article As the title says. I think it&amp;rsquo;s common to pass a GET parameter and get it in the controller with $this-&amp;gt;request-&amp;gt;query(). At that time, a URL encoded value may be passed to the GET parameter. And when I get that GET parameter with $this-&amp;gt;request-&amp;gt;query() in the controller, it becomes a URL-decoded value before I knew it.
// When you want to pass multiple user IDs separated by commas // URL encode 1234,5678,9012 and pass it as a GET parameter.</description>
    </item>
    
    <item>
      <title>[PHP8] Install and use PECL YAML function (YAML parser) with Docker</title>
      <link>https://sourcetut.com/php8-install-and-use-pecl-yaml-function-yaml-parser-with-docker-31f1d/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php8-install-and-use-pecl-yaml-function-yaml-parser-with-docker-31f1d/</guid>
      <description>PHP&#39;s [YAML Functions](https://www.php.net/manual/en/ref.yaml.php) is not bundled with PHP by default.  To parse (parse and convert) YAML data into a PHP array or to parse YAML data from a PHP array into YAML data with a YAML function You need to install the PECL extension module.
However, PECL is not installed on the latest (as of 08/28/2020) php:8.0.0beta2 and php:8.0.0beta2-alpine images. It seems that PEAR/PECL installer has been removed from PHP 7.</description>
    </item>
    
    <item>
      <title>About ternary operator (code with? (Hatena) in if statement) in PHP</title>
      <link>https://sourcetut.com/about-ternary-operator-code-with-hatena-in-if-statement-in-php-8ead7/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/about-ternary-operator-code-with-hatena-in-if-statement-in-php-8ead7/</guid>
      <description>#Programming study diary August 28, 2020 Summarize expressions with : after ? (Hatena mark). ? and : are ternary operators (conditional operators) that can describe conditional branching expressions. Two symbols are used, but one operator is used.
#How to write In the ternary operator, take three operands that are the target of the operation and write ? and : as follows.
(Conditional expression)? &amp;lt;true expression&amp;gt;: &amp;lt;false expression&amp;gt; $num = 13; echo ($num%2==0) ?</description>
    </item>
    
    <item>
      <title>CakePHP Training (Official) Notes</title>
      <link>https://sourcetut.com/cakephp-training-official-notes-6fd0f/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/cakephp-training-official-notes-6fd0f/</guid>
      <description>I attended the official webinar of cakephp the other day. Make a note of the situation and impressions.  was $2 https://training.cakephp.org/ It&amp;rsquo;s 4pm local time, so it&amp;rsquo;s 3 hours from 0:00 ###cakephp main committer jose gonzalez directly https://github.com/josegonzalez Conducted a tutorial for beginners While explaining it,
&amp;ldquo;There is cakephp&amp;rdquo; I will sandwich Even if you change the table It will not be reflected unless you bake the entity again Please be careful because the form does not work You say</description>
    </item>
    
    <item>
      <title>I want to go to Laravel instead of CodeIgniter 4, I want to tell CodeIgniter developers who are secretly planning to upgrade, the charm of Laravel</title>
      <link>https://sourcetut.com/i-want-to-go-to-laravel-instead-of-codeigniter-4-i-want-to-tell-codeigniter-developers-who-are-secretly-planning-to-upgrade-the-charm-of-laravel-620d9/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/i-want-to-go-to-laravel-instead-of-codeigniter-4-i-want-to-tell-codeigniter-developers-who-are-secretly-planning-to-upgrade-the-charm-of-laravel-620d9/</guid>
      <description>Overview Although I have done some work using CodeIgniter, I would like to introduce the world of Laravel, considering the engineer that I have no chance to touch Laravel because the recruiting framework at work is CodeIgniter. I thought I would write an article.
Uncle himself, Laravel is in a position of less than a month introductory, but he found the meaning in the point that **Because it is a beginner, it may be easy to write from a viewpoint that advanced users can not write ** I will.</description>
    </item>
    
    <item>
      <title>Make a nice random string in PHP</title>
      <link>https://sourcetut.com/make-a-nice-random-string-in-php-ae9c2/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/make-a-nice-random-string-in-php-ae9c2/</guid>
      <description>How to make a random string that is cryptographically strong.  There are various other methods, but I tried using openssl_random_pseudo_bytes() for the time being.
/** * Generate random string with specified number of digits * (Old environments may not be cryptographically strong, but most environments are fine) * * @param int $length Length of desired character string (number of digits) * @param string $chars List of characters you want to use for random string */ function randomstr($length, $chars) { $retstr = ``; $data = openssl_random_pseudo_bytes($length); $num_chars = strlen($chars); for ($i = 0; $i &amp;lt;$length; $i++) { $retstr .</description>
    </item>
    
    <item>
      <title>To remove INDEX, remove the foreign key constraint</title>
      <link>https://sourcetut.com/to-remove-index-remove-the-foreign-key-constraint-a41fc/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/to-remove-index-remove-the-foreign-key-constraint-a41fc/</guid>
      <description>To remove #INDEX, remove the foreign key constraint  If you want to delete the INDEX set in MySQL The error below. I felt it was a lot of work, so make a note of the procedure.
ERROR 1553(HY000): Cannot drop index&#39;INDEX name&#39;: needed in a foreign key constraint It seems that INDEX cannot be deleted because the foreign key is set.
That means. ． ． To delete the INDEX of the column for which the foreign key is set Foreign key deletion ⇒ INDEX deletion ⇒ Foreign key reset procedure is required!</description>
    </item>
    
    <item>
      <title>Use --noproxy option in curl when making Http communication with guzzle</title>
      <link>https://sourcetut.com/use-noproxy-option-in-curl-when-making-http-communication-with-guzzle-922e9/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/use-noproxy-option-in-curl-when-making-http-communication-with-guzzle-922e9/</guid>
      <description>when calling request  &#39;proxy&#39; =&amp;gt; `` OK if you specify in options.
$client = new \GuzzleHttp\Client(); $method =&amp;#39;POST&amp;#39;; $url=&amp;#39;http://url.com&amp;#39;; $options = [ &amp;#39;form_params&amp;#39; =&amp;gt; [ &amp;#39;param1&amp;#39; =&amp;gt;&amp;#39;AAAAA&amp;#39;, &amp;#39;param2&amp;#39; =&amp;gt;&amp;#39;BBBB&amp;#39;, &amp;#39;param3&amp;#39; =&amp;gt;&amp;#39;CCCC&amp;#39;, ], &amp;#39;proxy&amp;#39; =&amp;gt; `` ]; $response = $client-&amp;gt;request($method, $url, $options);</description>
    </item>
    
    <item>
      <title>Use curl with FuelPHP</title>
      <link>https://sourcetut.com/use-curl-with-fuelphp-2aa49/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/use-curl-with-fuelphp-2aa49/</guid>
      <description>You can use curl with pure PHP, but if you are using FuelPHP, I would like to use the classes in FuePHP.  First with pure PHP.
$curl = curl_init(); //initialize curl session curl_setopt($curl, CURLOPT_POST, TRUE); // Required if method is POST. No need for GET curl_setopt($curl, CURLOPT_URL, $url); //specify URL curl_setopt($curl, CURLOPT_POSTFIELDS, $post); //POST data curl_setopt($curl, CURLOPT_USERPWD, &amp;#34;$username:$password&amp;#34;); //ID and password required for authentication $execute = curl_exec($curl); //execute curl_close($curl); //close curl session At a minimum, I think it will look something like this.</description>
    </item>
    
    <item>
      <title>What is an exception? How to use it! ?</title>
      <link>https://sourcetut.com/what-is-an-exception-how-to-use-it-360c9/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/what-is-an-exception-how-to-use-it-360c9/</guid>
      <description>Do you use exception handling? Exception handling that appears in programming explanations. Somehow I understood the mechanism, but it is difficult to actually use it.
** It works even if you don&amp;rsquo;t use it! **
** It&amp;rsquo;s a hassle to write try-catch or Exception! **
At first I didn&amp;rsquo;t know how to use it, but While looking at other code and studying, I found out that &amp;ldquo;I can write better code by using exception handling&amp;rdquo;.</description>
    </item>
    
    <item>
      <title>WordPress infrastructure and bugs (currently offline/block editor inactive)</title>
      <link>https://sourcetut.com/wordpress-infrastructure-and-bugs-currently-offline-block-editor-inactive-65ef6/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/wordpress-infrastructure-and-bugs-currently-offline-block-editor-inactive-65ef6/</guid>
      <description>#(Case 1) Publication has failed. It seems to be offline now. When I press the post button,
 Publishing failed. It seems to be offline now.
 It will be displayed. There seem to be various solutions, but in my case, Settings&amp;gt; General WordPress address (URL) and site address (URL)
http://hogehogeooooo.com From https://hogehogeooooo.com change to It was solved by doing.
#(Case 2) Block addition is inactive This is the main theme of this time.</description>
    </item>
    
    <item>
      <title>Write and read the contents of a PHP file</title>
      <link>https://sourcetut.com/write-and-read-the-contents-of-a-php-file-d873b/</link>
      <pubDate>Fri, 28 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/write-and-read-the-contents-of-a-php-file-d873b/</guid>
      <description>Write file file_put_contents(&amp;ldquo;file location&amp;rdquo;,&amp;ldquo;contents to write&amp;rdquo;); file_put_contents has a return value so it can be checked with an if statement
&amp;lt;?php $check = file_put_contents(&amp;#34;news_data/php_lesson.text&amp;#34;,&amp;#34;2020-08-28, writing file&amp;#34;); if ($check){ print (&amp;#34;write complete&amp;#34;); }else{ print (&amp;#34;write error&amp;#34;); } ?&amp;gt; Read file The return value of file_fet_contents becomes the read data
&amp;lt;?php $check = file_get_contents(&amp;#34;news_data/news.text&amp;#34;); print ($check); ?&amp;gt; With read_file, you can print the return value without printing In this case, the read data cannot be processed</description>
    </item>
    
    <item>
      <title>[PHP] Basic authentication</title>
      <link>https://sourcetut.com/php-basic-authentication-ad84a/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-basic-authentication-ad84a/</guid>
      <description>Basic authentication is set so that when you try to browse test.php, you will be prompted to enter your ID and password.  admin:$2y$10$KzSlgR.Ze4qmJS03gAFcJO80hdKuPrZ3XAVkMHa5Wf792M0mVX/nS //Write in the form of ID:password. After the password, enter a new line. &amp;lt;!-- If you add. At the beginning of the file name, it becomes a hidden file. --&amp;gt; AuthType Basic AuthName &amp;#34;Please enter your ID and password&amp;#34; AuthUserFile /Applications/MAMP/htdocs/xxxxxxx/mainte/.htpasswd require valid-user //Specify the location of the password file with AuthUserFile //require only valid-user authenticated users can enter the page.</description>
    </item>
    
    <item>
      <title>[PHP] Debugging remote machines with multiple people without touching the company router [Xdebug×DBGpProxy]</title>
      <link>https://sourcetut.com/php-debugging-remote-machines-with-multiple-people-without-touching-the-company-router-xdebugdbgpproxy-2bfa3/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-debugging-remote-machines-with-multiple-people-without-touching-the-company-router-xdebugdbgpproxy-2bfa3/</guid>
      <description>Purpose We aim to enable multiple developers to use a debugger (breakpoint) for a PHP web application (nginx + php-fpm) running on one server. Since it is a company, it is conditional that you cannot tamper with the router.
The article title is [PHP] Debugging remote machines &amp;ldquo;with multiple people&amp;rdquo; [Xdebug x DBGpProxy] It is a pakuri of.
Illustrated Premise ・Local machine: Mac ・Remote machine: Linux ・IDE: PHPStorm (2020.2) ・Browser: Chrome ・Ssh connection to the server (for remote port forwarding) ・Environment where it is not easy to set port forwarding settings for routers such as offices</description>
    </item>
    
    <item>
      <title>[PHP] Try building HTML using DOMDocument class</title>
      <link>https://sourcetut.com/php-try-building-html-using-domdocument-class-63b8c/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-try-building-html-using-domdocument-class-63b8c/</guid>
      <description>When building HTML using PHP, I generally think that it is necessary to escape from the echo, here document, or php tag. This time, it&#39;s not the only way to output HTML with PHP! It is an article.  As I can tell from the conclusion, it is lacking in practicality, so I hope you will read it with a sense of temperature like &amp;ldquo;There is also such a method!&amp;rdquo;.</description>
    </item>
    
    <item>
      <title>A treasure trove of data and access history! ▽Access history management prototype created in a simple two-hour course using Laravel middleware and Eloquent</title>
      <link>https://sourcetut.com/a-treasure-trove-of-data-and-access-history-access-history-management-prototype-created-in-a-simple-two-hour-course-using-laravel-middleware-and-eloquent-efac0/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/a-treasure-trove-of-data-and-access-history-access-history-management-prototype-created-in-a-simple-two-hour-course-using-laravel-middleware-and-eloquent-efac0/</guid>
      <description>Hidden data assets of information system Regarding the business data (eg, order data, settlement data, quality information data) that is accumulated daily by operating the information system, its utilization is discussed extensively, while the access history of the information system is I don&amp;rsquo;t hear much about cases where active collection and utilization are progressing.
By accumulating access history, it seems that the information system unit can be used in various ways:</description>
    </item>
    
    <item>
      <title>Creating a posting application using Laravel CRUD processing Part 7 Creating a contact form</title>
      <link>https://sourcetut.com/creating-a-posting-application-using-laravel-crud-processing-part-7-creating-a-contact-form-301f6/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/creating-a-posting-application-using-laravel-crud-processing-part-7-creating-a-contact-form-301f6/</guid>
      <description>Purpose  Summarize how to create a Laravel application with a CRUD process that is the basis for creating an application like a tutorial  Implementation environment  Hardware environment     Item Information     OS macOS Catalina(10.15.5)   Hardware MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     Software environment     Item Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>Creating a site with login function with Laravel with XAMPP (4/4) Search function</title>
      <link>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp-4-4-search-function-16a63/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp-4-4-search-function-16a63/</guid>
      <description>Target **Create a site with user search function using Laravel. **
Previous article Create site with login function with Laravel with XAMPP(3/4) User information change function
Search function creation The search content is a partial match of the user information registered in the table. Search screen → Create with search result screen.
Search screen Create a controller with the following command.
 $ php artisan make:controller User/SearchController With this search function, instead of searching for all partial match values from the search word and then returning the result, the category and column to be searched are specified in advance.</description>
    </item>
    
    <item>
      <title>Display API specifications with Laravel &#43; SwaggerUI &#43; Docker</title>
      <link>https://sourcetut.com/display-api-specifications-with-laravel-swaggerui-docker-bfed0/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/display-api-specifications-with-laravel-swaggerui-docker-bfed0/</guid>
      <description>#Introduction Launch the Swagger UI container with Docker and display the API specifications from the API created with Laravel.
Thing you want to do  I want to display API specifications in Swagger UI  What this article does not touch  Laravel API development procedure etc.  Directory structure . ├── docker-file │ └── web │ ├── Dockerfile │ └── php.ini ├── swagger-docs │ └── swagger.json ├── volumes │ └── swagger-api └── docker-compose.</description>
    </item>
    
    <item>
      <title>Get dates from death date to 50th anniversary</title>
      <link>https://sourcetut.com/get-dates-from-death-date-to-50th-anniversary-8fb6d/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/get-dates-from-death-date-to-50th-anniversary-8fb6d/</guid>
      <description>Although it is quite a maniac content, I made a function to get dates from death date to Zhongin (up to 49 days every seven days) and year anniversary (one week to 50th anniversary).  ##Development environment MAMP
##code
&amp;lt;?php function calcTyuin($day) { $tyuin_days = []; for ($i = 0; $i &amp;lt;7; $i++) { if ($i === 0) { $date = date_create($day); } date_add($date, date_interval_create_from_date_string(&#39;7 days&#39;)); $tyuin_days[] = date_format($date,&#39;Y-m-d&#39;); } return $tyuin_days; } function calcNenki($day) { $nenki_days = []; $add_years = [1, 2, 6, 12, 16, 24, 32, 49]; foreach ($add_years as $add_year) { $date = date_create($day); date_add($date, date_interval_create_from_date_string($add_year .</description>
    </item>
    
    <item>
      <title>Hit the au Kabu Com Securities kabu station API with php!</title>
      <link>https://sourcetut.com/hit-the-au-kabu-com-securities-kabu-station-api-with-php-2fd22/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/hit-the-au-kabu-com-securities-kabu-station-api-with-php-2fd22/</guid>
      <description>Create up to the token acquisition place.  Although I&amp;rsquo;m posting the password, it is miso to send it in JSON. Note that if you send it here as a query parameter normally, a 4001005 parameter conversion error will occur.
$url = &amp;#34;http://localhost:18081/kabusapi/token&amp;#34;; $data = [&amp;#39;APIPassword&amp;#39; =&amp;gt;&amp;#39;mypass&amp;#39;]; $opts = [ &amp;#39;http&amp;#39; =&amp;gt; [ &amp;#39;method&amp;#39; =&amp;gt; &amp;#34;POST&amp;#34;, &amp;#39;header&amp;#39;=&amp;gt; &amp;#34;Content-type: application/json\r\n&amp;#34; .&amp;#34;Accept: application/json\r\n&amp;#34;, &amp;#39;content&amp;#39; =&amp;gt; json_encode($data), &amp;#39;ignore_errors&amp;#39; =&amp;gt; true, &amp;#39;protocol_version&amp;#39; =&amp;gt; &amp;#39;1.1&amp;#39; ] ]; $context = stream_context_create($opts); $json = file_get_contents($url, false, $context); if (isset($http_response_header)) { $pos = strpos($http_response_header[0], &amp;#39;200&amp;#39;); if ($pos === false) { // error handling exit; } } if (!</description>
    </item>
    
    <item>
      <title>I tried implementing the function of log rotation with PHP</title>
      <link>https://sourcetut.com/i-tried-implementing-the-function-of-log-rotation-with-php-40a2c/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/i-tried-implementing-the-function-of-log-rotation-with-php-40a2c/</guid>
      <description>#Introduction Due to the need, I decided to create a log rotation function in PHP. It would be nice if it could be set quickly with middleware or free tools if possible.
Since I am a PHP beginner, I will not do anything difficult. (1) Delete backup files that have exceeded the retention period. ② Make a backup of the log file. I&amp;rsquo;ve kept the two processes of writing quickly.</description>
    </item>
    
    <item>
      <title>PHP basic grammar</title>
      <link>https://sourcetut.com/php-basic-grammar-6ae0d/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-basic-grammar-6ae0d/</guid>
      <description>Introduction I&amp;rsquo;m a beginner who has just learned PHP. If there are any mistakes, we would appreciate it if you could point them out.
##print syntax
&amp;lt;?php print (&amp;#34;I&amp;#39;m studying PHP!!&amp;#34;); ?&amp;gt; If you want to display double quotes, use escape sequence
&amp;lt;?php print (&amp;#34;I&amp;#39;m studying PHP!\&amp;#34;kirin\&amp;#34;&amp;#34;); ?&amp;gt; Summary of simple escape sequences    Escape Sequence Effect     \n Line feed   \r Carriage return   \t Tab   \ \   $ $   &amp;quot; &amp;quot;   &#39; &#39;     What is a carriage return?</description>
    </item>
    
    <item>
      <title>Render method in CakePHP</title>
      <link>https://sourcetut.com/render-method-in-cakephp-89e70/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/render-method-in-cakephp-89e70/</guid>
      <description>#Programming study diary August 27, 2020 I used the render method in Rails, but since it can also be used in CakePHP, I will summarize the render method.
What is the #render method A convenient method when you want to draw another view file. The Controller::render() method is automatically called at the end of each action to render the view. Therefore, it is very convenient to use the render method when specifying another view file.</description>
    </item>
    
    <item>
      <title>stripe endpoint creation php</title>
      <link>https://sourcetut.com/stripe-endpoint-creation-php-14f7c/</link>
      <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/stripe-endpoint-creation-php-14f7c/</guid>
      <description>stripe custom webhook  Dashboard triggered
&amp;lt;?php Stripe key insert // // check the webhook signature // https://stripe.com/docs/webhooks/signatures#verify-official-libraries // $endpoint_secret =&amp;#39;At the endpoint of the End Point Dashboard&amp;#39;; $payload = @file_get_contents(&amp;#39;php://input&amp;#39;); $sig_header = $_SERVER[&amp;#39;HTTP_STRIPE_SIGNATURE&amp;#39;]; $event = null; try { $event = \Stripe\Webhook::constructEvent( $payload, $sig_header, $endpoint_secret ); } catch(\UnexpectedValueException $e) { // Invalid payload  http_response_code(400); // PHP 5.4 or greater  exit(); } catch(\Stripe\Error\SignatureVerification $e) { // Invalid signature  http_response_code(400); // PHP 5.</description>
    </item>
    
    <item>
      <title>[Data structure] Queue, stack and ring buffer</title>
      <link>https://sourcetut.com/data-structure-queue-stack-and-ring-buffer-f3ff5/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/data-structure-queue-stack-and-ring-buffer-f3ff5/</guid>
      <description>Queue structure The queue structure is a data structure where people wait in line at the counter. Data is added to the end of the row and the data is used in order from the beginning. In other words, the queue structure will use the first put data first. It is called FIFO because it is first in, first out. Putting data in the queue is called Enqueue, and taking it out is called Dequeue.</description>
    </item>
    
    <item>
      <title>[PHP] Difference between object and associative array</title>
      <link>https://sourcetut.com/php-difference-between-object-and-associative-array-7dc3c/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-difference-between-object-and-associative-array-7dc3c/</guid>
      <description>I intended to understand the concept of arrays and objects when I was in school,  In my practice, I often think about arrays and associative arrays, and I didn&amp;rsquo;t understand much about [associative arrays], so I briefly summarized them for myself.
Objects and associative arrays This is an object.
class object{ public $name = &amp;#34;Satoshi&amp;#34;; public $age = 30; } The object writes the object name and puts the value inside {}.</description>
    </item>
    
    <item>
      <title>[PHP] trim processing for multi-byte (double-byte spaces etc.) including garbled characters</title>
      <link>https://sourcetut.com/php-trim-processing-for-multi-byte-double-byte-spaces-etc.-including-garbled-characters-23bf7/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-trim-processing-for-multi-byte-double-byte-spaces-etc.-including-garbled-characters-23bf7/</guid>
      <description>Overview I had to do full-width trimming with PHP. However, when the trimming string contained garbled characters, it did not work properly when it was the method of other trim articles.
the first https://qiita.com/fallout/items/a13cebb07015d421fde3 I tried full-width trimming with reference to this article, If it contains garbled characters such as&#39;machi Inagi&amp;rsquo;, &amp;ldquo;Fukui &amp;rdquo; has been deleted even with garbled characters like &amp;ldquo;Fukui&amp;rdquo;.
I thought about it myself, but I could not make it beautiful After all, I turned the loop to remove full-width and half-width spaces, but I could not write clean code.</description>
    </item>
    
    <item>
      <title>About the procedure to introduce SFTP settings in Laravel and perform SFTP communication in the production environment or DEV environment</title>
      <link>https://sourcetut.com/about-the-procedure-to-introduce-sftp-settings-in-laravel-and-perform-sftp-communication-in-the-production-environment-or-dev-environment-85c66/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/about-the-procedure-to-introduce-sftp-settings-in-laravel-and-perform-sftp-communication-in-the-production-environment-or-dev-environment-85c66/</guid>
      <description>#Introduction Since there was a matter to link the CSV file to the SFTP server, it will be a memo of the installation procedure at that time. I am writing an article to organize the work flow. In the processing environment, an environment containing PHP&amp;rsquo;s Laravel framework was prepared, so the flow is to add processing and settings for SFTP.
Please refer to this ArticleandSite for introduction.
#About the environment</description>
    </item>
    
    <item>
      <title>Did you know that you can&#39;t use == or === for password comparison in PHP?</title>
      <link>https://sourcetut.com/did-you-know-that-you-cant-use-or-for-password-comparison-in-php-7e408/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/did-you-know-that-you-cant-use-or-for-password-comparison-in-php-7e408/</guid>
      <description>PHPers, aren&#39;t you using comparison operators (&amp;quot;==&amp;quot; or &amp;quot;===&amp;quot;) when comparing input data with stored information for important strings?  This is actually don&amp;rsquo;t use, so be careful.
Why not? (Fixed on Aug. 31, 2020) It was fixed because the function name was typo. (Correct) memcmp/(wrong) strcmp.
Many languages, including PHP, use memcmp() internally when comparing strings. In the normal case (which doesn&amp;rsquo;t require strict security), using comparison operators is perfectly fine.</description>
    </item>
    
    <item>
      <title>Exception handling is described in PHP try catch finally statement</title>
      <link>https://sourcetut.com/exception-handling-is-described-in-php-try-catch-finally-statement-65c4d/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/exception-handling-is-described-in-php-try-catch-finally-statement-65c4d/</guid>
      <description>Purpose  The method of checking exception handling is summarized below  Implementation environment  Check the operation on the following site -https://paiza.io/ja  #Example
  Below is an example of how to write a try catch finally statement for exception handling.
try { // Processing that may cause an exception } catch (Exception class name Variable name that receives the return value of exception class) { //Process that is executed when &amp;#34;Process that may cause exception&amp;#34; is an exception } finally { //Process executed regardless of exception }   References  https://www.</description>
    </item>
    
    <item>
      <title>From PHP installation to command line execution</title>
      <link>https://sourcetut.com/from-php-installation-to-command-line-execution-445e5/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/from-php-installation-to-command-line-execution-445e5/</guid>
      <description>#Introduction I have decided to write a simple program that runs in batch in PHP. When I looked it up with PHP, it was mostly the contents displayed on the screen by the browser, so I thought I would leave the procedure to move with the command line. The purpose is to check the operation of a program written in PHP on your own PC. It&amp;rsquo;s insanely easy.
#Environment Windows 10 Home 64-bit</description>
    </item>
    
    <item>
      <title>How to operate Moodle with AWS load balancer (https from internet but http behind)</title>
      <link>https://sourcetut.com/how-to-operate-moodle-with-aws-load-balancer-https-from-internet-but-http-behind-4fccb/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-operate-moodle-with-aws-load-balancer-https-from-internet-but-http-behind-4fccb/</guid>
      <description>First, make the following preparations.  Certificate (may be issued by ALB&amp;rsquo;s ACM or may be your own) efs Set session stickiness (2 hours) in ALB By the way, session stickiness for a few hours may not be so good. When the connected machine goes down, I feel like Gateway Timeout. Changed to 5 minutes.
I used this area as a reference for AWS ALB. (reference) https://recipe.kc-cloud.jp/archives/11084
httpd.conf is set to operate with http In config.</description>
    </item>
    
    <item>
      <title>I want to search multiple character strings from a certain character string-I tried using preg_match</title>
      <link>https://sourcetut.com/i-want-to-search-multiple-character-strings-from-a-certain-character-string-i-tried-using-preg_match-2072c/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/i-want-to-search-multiple-character-strings-from-a-certain-character-string-i-tried-using-preg_match-2072c/</guid>
      <description>#I want to search for multiple characters in a string
At first, I was searching for only one character string using strstr, but I want to be able to search for multiple character strings on the way, so think about it. ． ．
As a result of my worries, I thought about a solution, so make a note.
I used strpos and strstr, but I can only search for one character string.</description>
    </item>
    
    <item>
      <title>Make recommendation logic in PHP</title>
      <link>https://sourcetut.com/make-recommendation-logic-in-php-5adf6/</link>
      <pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/make-recommendation-logic-in-php-5adf6/</guid>
      <description>A memorandum when creating a recommendation function for an application created with Laravel  I was able to do the k-nearest neighbor method (modoki) without using python, but I think Python that can be used with pandas, numpy, etc. is easier to use. There may be a float precision problem.
Premise ・Recommend items from multiple question results ・Question is Yes・No (ie, 0 or 1) ・Initial data can be input ・Learn the answer results of actual questions and make recommendations that are more practical ・The number of recommended items is not too high (a few hundred)</description>
    </item>
    
    <item>
      <title>Creating a site with login function with Laravel with XAMPP (2/4) activating authentication function</title>
      <link>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp-2-4-activating-authentication-function-13db4/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp-2-4-activating-authentication-function-13db4/</guid>
      <description>Target Enable Laravel authentication function
Previous article Laravel Basic Learning with XAMPP
 Settings and activation of each application are described in this article, so if you have any questions, please use this article.  Enable authentication function Creating a Laravel project Create a new Laravel project using the Laravel installer. Open a terminal and run the following command.
$ laravel new project (project name) After the installation is complete, start the built-in server and check if it works.</description>
    </item>
    
    <item>
      <title>Creating a site with login function with Laravel with XAMPP(3/4) User information change function</title>
      <link>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp3-4-user-information-change-function-d7faf/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/creating-a-site-with-login-function-with-laravel-with-xampp3-4-user-information-change-function-d7faf/</guid>
      <description>Target ** Allow user information and table data to be changed from the browser side with Laravel **
Previous article Creating a site with a login function with Laravel with XAMPP (2/4) enabling authentication function
Creating a user information change page Preparation Before creating the page you want to create, arrange the environment so that you can work easily.
Remove capitalization Currently, the code entered in lowercase by css is also converted to uppercase and displayed.</description>
    </item>
    
    <item>
      <title>docker&#43;nginx&#43;php-fpmでFastCGI sent in stderr</title>
      <link>https://sourcetut.com/docker-nginx-php-fpm%E3%81%A7fastcgi-sent-in-stderr-238d0/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/docker-nginx-php-fpm%E3%81%A7fastcgi-sent-in-stderr-238d0/</guid>
      <description>The following error occurs according to the title  [error] 8#8: *25 FastCGI sent in stderr: &amp;quot;Primary script unknown&amp;quot; while reading response header from upstream When I checked variously in &amp;ldquo;Primary script unknown&amp;rdquo;, I found that the setting in nginx.conf
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; ↓ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; There were many articles, but it was almost all, but the cause was different. It was a more fundamental mistake.
###!! The path of nginx volume and php-fpm volume are different.</description>
    </item>
    
    <item>
      <title>Fatal error occurred in execute. Cause was bindValue argument (PHP)</title>
      <link>https://sourcetut.com/fatal-error-occurred-in-execute.-cause-was-bindvalue-argument-php-a95cf/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/fatal-error-occurred-in-execute.-cause-was-bindvalue-argument-php-a95cf/</guid>
      <description>Fatal error occurred in #execute. The cause was bindValue  [Error code]
$name = John; $id = 1; $sql = SELECT * FROM bbs WHERE name? OR id=? $statement = prepare($sql); $statement-&amp;gt;bindValue(1, $name); $statement-&amp;gt;bindValue(2, $id); $statement-&amp;gt;execute(); fatal error:C in... I do not understand the cause at all with an error like this! If you have studied a little, you may find that this is the cause at first glance. It took me hours to notice.</description>
    </item>
    
    <item>
      <title>How xdebug changes var_dump</title>
      <link>https://sourcetut.com/how-xdebug-changes-var_dump-07cd7/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-xdebug-changes-var_dump-07cd7/</guid>
      <description>Thing you want to do The var_dump display changed after installing xdebug. I checked specifically how it would change.
#Environment (including items not related to this work)
 MacBookPro (macOS Catalina 10.15.5) PHPStorm2020.2 docker desktop2.2.0.3 cakephp4.1.2 xdebug2.9.6  Implementation $test = [&amp;#39;a&amp;#39; =&amp;gt;&amp;#39;apple&amp;#39;,&amp;#39;b&amp;#39; =&amp;gt;&amp;#39;bed&amp;#39;,&amp;#39;c&amp;#39; =&amp;gt; [&amp;#39;cat&amp;#39;,&amp;#39;cookie&amp;#39;]]; var_dump($test); Browser display when xdebug is not set All are displayed in one line. It&amp;rsquo;s hard to see. Browser display when xdebug is set  var_dump description file, line is displayed Automatic line breaks value is colored  Supplement Since uninstalling xdebug was a hassle, I set the following and checked.</description>
    </item>
    
    <item>
      <title>I want to pass a two-dimensional array by reference with foreach</title>
      <link>https://sourcetut.com/i-want-to-pass-a-two-dimensional-array-by-reference-with-foreach-0a39e/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/i-want-to-pass-a-two-dimensional-array-by-reference-with-foreach-0a39e/</guid>
      <description>Thing you want to do I want to update a part of the following two-dimensional array.
$tests = [[&#39;values&#39;=&amp;gt;[1,2]],[&#39;values&#39;=&amp;gt;[3,4]]]; #Environment (including items not related to this work)
 MacBookPro (macOS Catalina 10.15.5) PHP7.4 PHPStorm2020.2 docker desktop2.2.0.3 cakephp4.1.2 xdebug2.9.6  Implementation First, basic pass by reference Add &amp;amp; to the variable used in foreach.
$tests = [1,2,3,4]; foreach ($tests as &amp;amp;$test) { if($test === 3) { $test = 5; } } $test = 6; var_dump($tests); /* array (size=4) 0 =&amp;gt; int 1 1 =&amp;gt; int 2 2 =&amp;gt; int 5 3 =&amp;gt; int 6 ← funny */ In the above case, the pointer to $test remains, so if you use the same variable name after issuing foreach, the array data will be updated.</description>
    </item>
    
    <item>
      <title>Install PHP7.4 to build CentOS7 Laravel environment</title>
      <link>https://sourcetut.com/install-php7.4-to-build-centos7-laravel-environment-04326/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/install-php7.4-to-build-centos7-laravel-environment-04326/</guid>
      <description>Purpose  Summarize how to install PHP on CentOS 7 machine  Implementation environment  Hardware environment     Item Information     OS CentOS 7 (7.8.2003)   Hardware Dell Studio 1537   Processor Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz   Memory 4 GB DDR3   Graphics Unknown    #Prerequisites
 A CentOS 7 machine is built using the method below or a method similar to the following.</description>
    </item>
    
    <item>
      <title>Make a password display with Symfony&#39;s FormType when you press your eyes</title>
      <link>https://sourcetut.com/make-a-password-display-with-symfonys-formtype-when-you-press-your-eyes-6fa58/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/make-a-password-display-with-symfonys-formtype-when-you-press-your-eyes-6fa58/</guid>
      <description>Common Just add it to formBuilder as shown below and create a FormType that will be like ↑.
$formBuilder()-&amp;gt;add(&amp;#39;password&amp;#39;, ShowHidePasswordType::class); #How to make
Project creation # sensio/framework-extra-bundle is not supported by the latest version of symfony, but somehow it is installed by default, so deleted $ symfony new show_hide_password --full $ composer remove sensio/framework-extra-bundle Base form screen creation Create a Controller with the following command.
$ bin/console make:controller Choose a name for your controller class (e.</description>
    </item>
    
    <item>
      <title>PHP learning memo &lt;How to write MVC&gt;</title>
      <link>https://sourcetut.com/php-learning-memo-how-to-write-mvc-67cc8/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-learning-memo-how-to-write-mvc-67cc8/</guid>
      <description>.blade.php  Template engine Output to the {{variable name}} screen
@if @ifelse @ifend
route return view(&amp;lsquo;archives.index&amp;rsquo;);
Separate archives with &amp;ldquo;.&amp;rdquo; instead of &amp;ldquo;/&amp;rdquo; ▼ Reference video https://www.youtube.com/watch?v=M7ZV0GKm4lI&amp;amp;list=PLh6V6_7fbbo8bb7eajaLdsQZ9fLhMJ-oc&amp;amp;index=1</description>
    </item>
    
    <item>
      <title>Setting to not omit var_dump in Docker with xdebug set</title>
      <link>https://sourcetut.com/setting-to-not-omit-var_dump-in-docker-with-xdebug-set-b3a03/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/setting-to-not-omit-var_dump-in-docker-with-xdebug-set-b3a03/</guid>
      <description>Thing you want to do When I was debugging with var_dump, the value part I wanted to see was omitted as &amp;ldquo;&amp;hellip;&amp;rdquo; and I could not see it. The setting to see without omitting.
#Environment (including items not related to this work)
 MacBookPro (macOS Catalina 10.15.5) PHPStorm2020.2 docker desktop2.2.0.3 cakephp4.1.2 xdebug2.9.6  Implementation Assumption It is assumed that the system is built with the following configuration. https://qiita.com/learn_tech1/items/836d2ea84b518b8a2766
Implementation Added the bottom 3 lines.</description>
    </item>
    
    <item>
      <title>Validate PHP array and object passing by reference</title>
      <link>https://sourcetut.com/validate-php-array-and-object-passing-by-reference-41792/</link>
      <pubDate>Tue, 25 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/validate-php-array-and-object-passing-by-reference-41792/</guid>
      <description>What you did Copying an array containing objects with foreach can be an unexpected bug. (there were) Sample code verifies what happens when you copy an array, a two-dimensional array, an object, or an object containing an object, and how it works as expected.
#Environment
 PHP7.4  Implementation array Since the array is passed by value, if you assign it to another variable, rewriting the value of another variable does not affect the original variable.</description>
    </item>
    
    <item>
      <title>Automatically generate EloquentModel class of Laravel</title>
      <link>https://sourcetut.com/automatically-generate-eloquentmodel-class-of-laravel-7cb1e/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/automatically-generate-eloquentmodel-class-of-laravel-7cb1e/</guid>
      <description>For a Laravel project that has just begun, we will use the existing database as it is because it is a project with a migration source.  At that time, it is a work record when automatically generating the Eloquent Model class of Laravel from the existing table
This library has been added (unknown how to read/call it) https://github.com/reliese/laravel
Add library with composer composer require --dev reliese/laravel At this time, if killed is displayed, suspect that you are out of memory.</description>
    </item>
    
    <item>
      <title>Correspondence when it becomes killed after composer require in Docker</title>
      <link>https://sourcetut.com/correspondence-when-it-becomes-killed-after-composer-require-in-docker-3e106/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/correspondence-when-it-becomes-killed-after-composer-require-in-docker-3e106/</guid>
      <description>I made a development environment with Docker (docker-compose) on Mac, and when I made a `composer require` on the Laravel application under development, it was interrupted.  composer require ****/***** (Omitted) killed If composer ends in the middle, I think that lack of memory is a standard thing. I got this link from a senior at the company and the suspicion turned into conviction.
[PHP] Cause and action when composer install fails with killed https://webbibouroku.</description>
    </item>
    
    <item>
      <title>Google Drive API installation procedure using PHP Quickstart</title>
      <link>https://sourcetut.com/google-drive-api-installation-procedure-using-php-quickstart-a084e/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/google-drive-api-installation-procedure-using-php-quickstart-a084e/</guid>
      <description>I used Google Drive API, so I have a memo  Set up connection using Quickstart Install Google Client Library  Type the following on the command line  composer require google/apiclient:^2.0 Download credentials *If you have already set up the OAuth 2.0 client (If not set, set OAuth 2.0 client first)
 Press &amp;ldquo;Credentials&amp;rdquo; from Google Cloud platform to open the credentials screen Click the download button at the right end of the created ID from the OAuth 2.</description>
    </item>
    
    <item>
      <title>How to deal with memory explosion in PhpSpreadsheet or when writing in a cell that has not changed</title>
      <link>https://sourcetut.com/how-to-deal-with-memory-explosion-in-phpspreadsheet-or-when-writing-in-a-cell-that-has-not-changed-e04d7/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-deal-with-memory-explosion-in-phpspreadsheet-or-when-writing-in-a-cell-that-has-not-changed-e04d7/</guid>
      <description>When error occurs due to # writeCellFormula, Cell, Coordinate relationship  Apparently, PhpSpreadsheet solves the formula and saves the file. However, it seems that if you write a complicated expression, it will become an infinite loop, it will not be able to calculate well and it will fall. Even if it works well on Excel.
At that time (for XlsxWriter)
$writer-&amp;gt;setPreCalculateFormulas(false); It seems that you can skip the pre-calculation process by adding.</description>
    </item>
    
    <item>
      <title>How to define CRUD with only one line route in Laravel</title>
      <link>https://sourcetut.com/how-to-define-crud-with-only-one-line-route-in-laravel-ad7d8/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/how-to-define-crud-with-only-one-line-route-in-laravel-ad7d8/</guid>
      <description>You can design and design the routing of article-related functions such as the article posting screen and article registration processing by yourself.   List view Individual display sign up Update Delete  Laravel provides methods that bundle routes for commonly used functions such as.
Route::resource(&#39;/articles&#39;,&#39;ArticleController&#39;); Just defining it will set CRUD uri etc. at a stretch.
+--------+-----------+-------------------------+-- ----------------+--------------------------------- ---------------------------------------+---------- --+ Domain | Method | URI | Name | Action | Middleware | +--------+-----------+-------------------------+-- ----------------+--------------------------------- ---------------------------------------+---------- --+ | | GET|HEAD | / | | App\Http\Controllers\ArticleController@index | web | | | POST | articles | articles.</description>
    </item>
    
    <item>
      <title>Implementation of search function on PHP bulletin board</title>
      <link>https://sourcetut.com/implementation-of-search-function-on-php-bulletin-board-6221d/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/implementation-of-search-function-on-php-bulletin-board-6221d/</guid>
      <description>Looking back on the bulletin board created in PHP, because I implemented the search function.  Click here for the referenced article. https://www.sejuku.net/blog/104455
The specific function is When you search for a name, the ID and content of the message associated with it are displayed. Shape.
Input form of search contents on top page → Create another file search function (search.php) I went there.
#Create search form I made it on the TOP page like this.</description>
    </item>
    
    <item>
      <title>Laravel How to solve the phenomenon that you can see it by directly inserting the URL even if you are not logged in (Middleware)</title>
      <link>https://sourcetut.com/laravel-how-to-solve-the-phenomenon-that-you-can-see-it-by-directly-inserting-the-url-even-if-you-are-not-logged-in-middleware-5b0d0/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-how-to-solve-the-phenomenon-that-you-can-see-it-by-directly-inserting-the-url-even-if-you-are-not-logged-in-middleware-5b0d0/</guid>
      <description>In order not to display the article posting screen to unlogged-in users,  Route::resource(&amp;#39;/articles&amp;#39;,&amp;#39;ArticleController&amp;#39;)-&amp;gt;except([&amp;#39;index&amp;#39;])-&amp;gt;middleware(&amp;#39;auth&amp;#39;); If you are not logged in but just add middleware to the above,
You will be taken to the login screen.
. └── laravel └── app └── Http └── Middleware └── Authenticate.php &amp;lt;?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated.</description>
    </item>
    
    <item>
      <title>Quickly make team deathmatch plugin with PMMP</title>
      <link>https://sourcetut.com/quickly-make-team-deathmatch-plugin-with-pmmp-d4130/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/quickly-make-team-deathmatch-plugin-with-pmmp-d4130/</guid>
      <description>#Foreword I will make a team death match quickly using the library The plugins you create should not interfere with any other plugins
Completed is here
Contents of the plugin to be created Create a game with /create and join with /join The score increases with each kill, and when the set upper limit is reached or the time limit is exceeded, the game is over Display timer on BossBar and match status on Scoreboard</description>
    </item>
    
    <item>
      <title>Separate Laravel6 user and administrator authentication</title>
      <link>https://sourcetut.com/separate-laravel6-user-and-administrator-authentication-2b7db/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/separate-laravel6-user-and-administrator-authentication-2b7db/</guid>
      <description>Purpose  Summarize the method of separating authentication between user and administrator.  Implementation environment  Hardware environment     Item Information     OS macOS Catalina(10.15.5)   PC MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)   Processor 2 GHz Quad Core Intel Core i5   Memory 32 GB 3733 MHz LPDDR4   Graphics Intel Iris Plus Graphics 1536 MB     Software environment     Item Information Remarks     PHP version 7.</description>
    </item>
    
    <item>
      <title>Setting procedure (creating authentication information) for using GoogleDriveAPI</title>
      <link>https://sourcetut.com/setting-procedure-creating-authentication-information-for-using-googledriveapi-02efe/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/setting-procedure-creating-authentication-information-for-using-googledriveapi-02efe/</guid>
      <description>Memorandum of set procedure  Project creation https://console.developers.google.com/apis/dashboard
 Log in to Google and access the above URL Press &amp;ldquo;IAM and Management&amp;gt; Resource Management&amp;rdquo; from the menu on the upper left Press the &amp;ldquo;Create Project&amp;rdquo; link Enter the project name and press &amp;ldquo;Create&amp;rdquo; (which is entered by default)  Specify the API used in the project  With the project selected from the top of the Google Cloud Platform screen Press &amp;ldquo;APIs &amp;amp; Services&amp;gt; Libraries&amp;rdquo; or &amp;ldquo;APIs &amp;amp; Services&amp;gt; Enable APIs &amp;amp; Services&amp;rdquo; Select Google Drive API and press &amp;ldquo;Enable&amp;rdquo;  Create credentials  Press &amp;ldquo;Create authentication information&amp;rdquo; on the screen after redirect (API summary screen) or With the project selected from the top of the Google Cloud platform screen, click &amp;ldquo;Credentials&amp;gt; Create credentials&amp;rdquo; Select &amp;ldquo;OAuth Client ID&amp;rdquo; or press &amp;ldquo;Client ID&amp;rdquo; link -For the first time, the phrase &amp;ldquo;To create an OAuth client ID, you must first set the service name on the consent screen.</description>
    </item>
    
    <item>
      <title>Use accessor methods to assign property values</title>
      <link>https://sourcetut.com/use-accessor-methods-to-assign-property-values-1dc5f/</link>
      <pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/use-accessor-methods-to-assign-property-values-1dc5f/</guid>
      <description>Put a value in a class property If you create an instance with a class and put a value in a property *** Instance -&amp;gt; property name = value; can be implemented by ***.
class CalBMI { public $_weight; // weight (kg) public $_height; // height (m) public function __construct($weight,$height){ $this-&amp;gt;_weight = $weight; $this-&amp;gt;_height = $height; } public function getBMI(){ return $this-&amp;gt;_weight / ($this-&amp;gt;_height * $this-&amp;gt;_height); } } require_once&amp;#39;CalBMI.php&amp;#39;; $calBMI = new CalBMI(60,1.</description>
    </item>
    
    <item>
      <title>[PHP] Collecting URL list and DL</title>
      <link>https://sourcetut.com/php-collecting-url-list-and-dl-26081/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/php-collecting-url-list-and-dl-26081/</guid>
      <description>For the time being, as a memorandum  We will create a list of URLs that can be DLed together. For example, you can write a URL in a text file like the one below and DL them together.
https://..... https://..... https://..... https://..... Create #DL save directory The name of the directory is the same as the name of the URL list file. Takes the URL list file path as a command line argument and extracts the name from it.</description>
    </item>
    
    <item>
      <title>CircleCIでPHPUnit</title>
      <link>https://sourcetut.com/circleci%E3%81%A7phpunit-4b0d2/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/circleci%E3%81%A7phpunit-4b0d2/</guid>
      <description>#Introduction This article aims to automate CI with PHPUnit using CircleCI, and the following figure is a memorandum through one sequence. ![Screenshot 2020-08-08 17.21.37.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/377612/a44f6bc3-b0f9-301d-76f3-(7e7a0c424d6d.png)
GitHub repository is here [https://github.com/sakamotoyuya/circleci-phpunit)
#Environment macOS Catalina:10.15.5 (19F101) php 7.4.9 composer 1.10.10 PHPUnit 9.3.7
table of contents  Preconditions Register CircleCI Create a repository for CI integration on GitHub get composer install PHPUnit with composer Create a test file to execute manually with PHPUnit Run PHPUnit manually Link repository created by CircleCI and GitHub Modify the Test code and push it to GitHub to make PHPUnit work with CircleCI Bonus: About the point that stumbled when creating config.</description>
    </item>
    
    <item>
      <title>Get value from OS environment variable with php</title>
      <link>https://sourcetut.com/get-value-from-os-environment-variable-with-php-29254/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/get-value-from-os-environment-variable-with-php-29254/</guid>
      <description>```envtest.php   ## 動作確認 $ export REMOTE_ADDR=1.1.1.1
 $ php envtest.php 1.1.1.1</description>
    </item>
    
    <item>
      <title>Laravel CRUD</title>
      <link>https://sourcetut.com/laravel-crud-8d33b/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-crud-8d33b/</guid>
      <description>Introduction I will make CRUD with Laravel.
Do not do  Does not deal with authentication. I will not create the function realized by JavaScript such as confirmation before deletion this time.  What to make    Action Screen presence Content     index screen available list display screen   create Has screen New entry form   store No screen Additional processing (create registration button)   show Has screen Show details   edit With screen Change form (with existing values)   update No screen Change process (edit update button)   destroy No screen Delete process (show delete button)    index (list) ┳ create (new creation screen) ━ store (new save) ┗ show (detailed display) ┳ edit (edit screen) ━ update (overwrite save) ▼ ┗ destroy (delete) Preparation Create table Table to create    id name telephone email created_at updated_at      ID Name Phone Number Email Address Created Date Updated Date     Creating model and migration files php artisan make:model Models/Member -m A migration file is also created with the -m option.</description>
    </item>
    
    <item>
      <title>laravel routing summary</title>
      <link>https://sourcetut.com/laravel-routing-summary-0dfbb/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/laravel-routing-summary-0dfbb/</guid>
      <description>#What is routing Role that connects the URL requested from view and the Action defined in Controller The mechanism that calls the action of the corresponding Controller according to the accessed address is called Routing
#Basic way of writing Routing
Route::get(&amp;#39;user/news/create&amp;#39;,&amp;#39;user\NewsController@create&amp;#39;); A URL starting with http://XXXXXX.jp/user/ will be specified. Meaning that when you access the URL user/news/create, it will be assigned to the create action of NewsController
#Routing into a group</description>
    </item>
    
    <item>
      <title>Let&#39;s implement profile registration using domain driven design in Laravel</title>
      <link>https://sourcetut.com/lets-implement-profile-registration-using-domain-driven-design-in-laravel-54c1f/</link>
      <pubDate>Sun, 23 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/lets-implement-profile-registration-using-domain-driven-design-in-laravel-54c1f/</guid>
      <description>#DDD flow for implementing profile registration
 Create Controller Create Model (Eloquent) Create View Edit Eloquent Create repository Register with Provider Create UseCase 8、Create Request 9, edit the Controller 10, edit the routing  Let&amp;rsquo;s do it~
##1, create Controller
php artisan make:controller ProfileController ##2, create a model (also create a migration file)
php artisan make:model Profile --migration ■ migrantion file &amp;lt;?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProfilesTable extends Migration { /** * Run the migrations.</description>
    </item>
    
    <item>
      <title>Deploy Docker environment to Heroku with git push</title>
      <link>https://sourcetut.com/deploy-docker-environment-to-heroku-with-git-push-24c46/</link>
      <pubDate>Sat, 22 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/deploy-docker-environment-to-heroku-with-git-push-24c46/</guid>
      <description>Since I used Heroku for the first time, I summarized the method After pushing the change to github, it can be automatically deployed to Heroku. This time it is Laravel, but I think that you can use it in other languages by changing the Buildpack language and environment variables.
#Environment
 mac OS Catalina 10.15.6 Docker version 19.03.12 Laravel 7.22.4 Heroku CLI 7.42.8  Premise   Laravel Docker environment (created in ↓)</description>
    </item>
    
    <item>
      <title>About</title>
      <link>https://sourcetut.com/about/</link>
      <pubDate>Fri, 09 Aug 2019 00:00:00 +0000</pubDate>
      
      <guid>https://sourcetut.com/about/</guid>
      <description>This blog Thank you for visiting my blog! It is my hope that I can share with you the things I am most passionate about in life, and in return, you will share yours as well. Please take the time to browse around, read my posts, and leave your comments—I welcome your thoughts. I will make updates to my blog on a regular basis to keep everyone informed on national news, local events, and legal topics.</description>
    </item>
    
  </channel>
</rss>