Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ããããã°ã¡ããã¨å¦ãã ãã¨ããªãã£ããµã¼ãã¹ã³ã³ãããæ¹ãã¦åå¼·ãã¦ã¿ãã·ãªã¼ãºç¬¬3åãä»åã¯ãããããµã¼ãã¹ã³ã³ããã®æ ¸å¿ãçµåãã«è§¦ãã¦ããµã¼ãã¹ã³ã³ããã«ä½ã§ãããã§ãããã³ããããã«ãªã£ã¦ããããã¨æãã¾ãã 第1å ãµã¼ãã¹ã³ã³ãã ãããã¯æ°ãã new ã ã£ãã 第2å ãµã¼ãã¹ãããã¤ã ãã·ã³ã°ã«ãã³ã¯ãã£ã1è¡ã 第3å çµå ããªãã§ãããã³ãã§æ°è»½ã«åãåºãã ç®æ¨ ãµã¼ãã¹ã³ã³ããã«ããµã¼ãã¹ãããã³ã³ããããã¦ãããæ¹æ³ãç¥ã æ°è»½ã«ãã³ã³ãããã使ããããã«ãªã£ã¦åºãå ¥ãã«èªç±ãï¼ å¾©ç¿ã¨èª²é¡ 第1åã§ãµã¼ãã¹ã³ã³ãã㯠newãã¦ãããå ã ã¨å¦ã³ã¾ããã第2åã§ã¯ãã® newããæ¹æ³ã«ã¯ãããããã£ã¦ ãµã¼ãã¹ãããã¤ãã§å®ç¾©ããã°ããããããã¨ãããã¨ã«è§¦ãã¾ããã ãã®ãããããããããããnewããæ¹æ³ãã£ã¦ã©ããªã®ãããã®ï¼ ã©ããã£ã¦ãããæ示
ã¯ããã« ã¿ãªããããã¡ãã¨ãã¬ã¼ã ã¯ã¼ã¯ãã©ã¤ãã©ãªã®ã³ã¼ããèªãã§ãã¾ããï¼ èªåã¯ããã¾ã§ãããã£ã¦ã©ããªã£ã¦ããã ããï¼ãã¨æããªãããããã¨ãããã使ããªããã¨ã«ã¯å§ã¾ããªãããèªè§£ããæéããªãããåºæ¬ãããããªãã¨ã©ããããããªããã¨ããçç±ã§ãã¬ã¼ã ã¯ã¼ã¯ã®ã³ã¼ããèªããã¨ãå¾åãã«ãã¦ãã¾ããã ãã©ããããå¾åãã«ãã¦ãããæéã¯ããçµããã ä»ã®ã¬ãã«ããä¸ã¤ä¸ã®ã¬ãã«ã«ä¸ãã£ã¦ããããã«ã¯ããªãï¼ããæ¾ç½®ãããçåãçªãè©°ãããããªãçåã«ã¶ã¡ããããã¾ããã®çåã調ã¹è§£æ±ºãã¦ããã¨ããä½æ¥ãå¿ è¦ãªã®ã§ã¯ãªããã¨æãã¾ãã ããã§ä»¥åããå©ç¨ãã¦ãããã®ã®ãã®ä¸èº«ã詳ããè¦ãããã¨ããªãã£ãã"Laravel Breeze"ã®ã½ã¼ã¹ã³ã¼ããèªã¿è§£ãã¦ããããã¨æãã¾ãã ã·ãªã¼ãºãã®ã«ãã¦ããããã¨èãã¦ãããä»åã¯ã¾ãåºæ¬ãåºæ¬ããã°ã¤ã³å¦çããè¦ã¦ãããã¨æãã¾
Open Source ãã©ã³ã«ã¤ãã¦ã¯ç¢ºå®ããæ å ±ããªãåèç¨åº¦ã«ãããã§ãã¦ä»ã®ãã©ã³ã«ã¤ãã¦ãå¿ ãå ¬å¼ãã¼ã¸ã確èªããããã«ãã¦ãã ããã (å½æ¹ã§ã¯è²¬ä»»ãè² ãããã¾ã) ãã ã Open Source ãã©ã³ã«ã¤ãã¦ä»¥ä¸ã¯ããç¨åº¦ç¢ºåº¦ãé«ãæ å ±ã§ãã æéã¯ç¡æ ãã©ã¤ãã¼ããªãã¸ããªã¯ãµãã¼ãããã¦ãã¾ãã ç¡æãã©ã³ã®å ´åãPHP ã®ã¿åæ対象ãææãã©ã³ã§ããã° StyleCI ã®ãµãã¼ããã¦ãããã¹ã¦ã®è¨èªã対象 StyleCI CLI ã§å®è¡ããããã«ã¯ææãã©ã³ã§ãªãã¨ãããªã ä»åã¯ç¡æçã§ä½¿ãåæã試ãã¦ã¿ããã¨æãã¾ãã StyleCI ãå§ãã ã¾ãã¯ãµã¤ã³ã¢ããããå§ãã¾ãã GitHub, GitLab, Bitbucket ã®ããããã§ãµã¤ã³ã¢ãããå¯è½ã§ãã èªå㯠GitHub ã§éå§ãã¾ããã æ§æã®è¨å® æ§æã®è¨å®ãè¡ãã«ã¯.styleci.yml
ã¨ã³ã¸ãã¢ã®å°æã§ãã ã¯ã©ãã§ã¯Laravelã使ã£ãWEBãµã¼ãã¹ã®éçºãè¡ã£ã¦ãã¾ãã ä»åã¯Laravelã®chunkã¡ã½ããã¨chunkByIdã¡ã½ããã®éãã«ã¤ãã¦ã解説ãã¦ã¿ããã¨æãã¾ãã chunkã¨ã¯ chunkã¨ã¯ãå°ããªå¡ï¼ãã£ã³ã¯ï¼ãã¨ããæå³ã§ãLaravelã§ã¯ã¯ã¨ãªãã«ãã«ç¨æããã¦ããchunkã¡ã½ããã§ãDBãããã¼ã¿ãå°ããªãå¡ï¼ãã£ã³ã¯ï¼ããã¨ã«åå²ãã¦çµæãåå¾ããå¦çãè¡ããã¨ãã§ãã¾ãã大éãã¼ã¿ãæ±ãå ´åã¯ã¡ã¢ãªä¸è¶³ã¨ã©ã¼ãèµ·ãããå®å ¨ã«å¦çãããã¨ãã§ãã¾ãã Laravelã«ã¯ä¼¼ããããªååã§chunkByIDã¨ããã¡ã½ãããç¨æããã¦ãã¾ãããã©ã¡ãã使ãã°ããã®ã§ããããã çµè«ï¼chunkByIDã使ããã¨ãã¯chunkByIDã使ã æåã«çµè«ãæ¸ãã¦ãã¾ãã¨ãç§ã¯chunkByIDã使ããå±é¢ã§ã¯chunkByIDã使ããã¨ãã
ã³ã³ã½ã¼ã«ããããã·ã¥åããæååãçæ Laravelã§Hash::makeãããã¹ã¯ã¼ããå¿ãã¦ãã¾ã£ããã訳ãã£ã¦DBã«ç´æ¥ããã·ã¥åããæååãå ¥ãããå ´åãããã¾ãã ãã®å ´åãphp artisanã³ãã³ãã§ã³ã³ã½ã¼ã«ããããã·ã¥åããæååãçæã§ãã¾ãã ã¾ããlaravelã¢ããªã®artisanããããã£ã¬ã¯ããªã§ä¸è¨ã³ãã³ããå®è¡ãã¾ãã $ php artisan tinker thinkerãèµ·åããããä¸è¨ã³ãã³ãHash::makeã§æå®ããæååã®ããã·ã¥ãåå¾ã§ãã¾ãã >>> \Hash::make('password'); => "$2y$10$nSX1is7YouOIkwfK2Xl5r.st1nqMPXFULYCda6T5kejXmX.Ew9EkK" ãã¨ã¯è¡¨ç¤ºãããããã·ã¥æååãDBã«ç´æ¥å ¥ãã¦ããã°OKã§ãããã¾ãæ¨å¥¨ãããªãããæ¹ãªæ°ããã¾ãã
ã¯ããã« æè¿è©±é¡ã«ãªã£ã¦ãããChatGPTãã¨ããAIãã£ãããæ°ã«ãªã£ãã®ã§ä½¿ã£ã¦ã¿ã¾ããã PHPã§ã®è¨äºã¯ããã¤ãããã¾ãããLaravelã使ã£ãè¨äºã¯ãªãã£ãã®ã§ãLaravel + Livewire ã§ä½¿ã£ã¦ã¿ã¾ããã ChatGPT ã¨ã¯ ChatGPTã¨ã¯ãOpenAIã¨ããä¼æ¥ãéçºããAIãã£ãããµã¼ãã¹ã§ãã è²ã ãªè³ªåã«åçãã¦ããã¦ãããã°ã©ã ã®ç°¡åãªã½ã¼ã¹ãåçãã¦ããã¾ãã 質åä¾ï¼PHP ã§ç´ æ°ãæ±ããé¢æ°ãæã㦠Laravel + Livewire ã§å®è£ ã»app/Http/Livewire/ChatGpt.php <?php namespace App\Http\Livewire; use Livewire\Component; use Illuminate\Support\Facades\Http; class ChatGpt extends
ã¯ããã« CakePHP3ããªãªã¼ã¹ããã¦ããã夢ã®ããã«å¹´æãçµã£ã¦ãã¾ãã¾ããããã®CakePHP3ãæ¥å¹´ã«ã¯ãµãã¼ãçµäºã¨ãªããç¾è¡ãã¼ã¸ã§ã³ã¯CakePHP4ããã§ã«CakePHP5ã®éçºãå§ã¾ã£ã¦ãã¾ããããã¦ãæ®å¿µãªãããCakePHP2ã¯ä»å¹´ã®6æã«ãµãã¼ãçµäºã¨ãªã£ã¦ãã¾ãã ããããCakePHP2ã§ä½ãããã¢ããªã±ã¼ã·ã§ã³ãCakePHP3以éã«ã¢ããã°ã¬ã¼ãããã®ã¯å°é£ã§ããç¹ã«baserCMSã®å ´åã«ã¯ãCMSã¨ããæ§è³ªä¸ãä»®ã«baserCMSèªä½ãã¢ããã°ã¬ã¼ãã§ããã¨ãã¦ããä»åº¦ã¯å©ç¨è ã®æ¹ãã¢ããªã±ã¼ã·ã§ã³ãä½æãããã¼ãããã©ã°ã¤ã³ãªã©ãã¢ããã°ã¬ã¼ãããå¿ è¦ãããã¾ãã ãã£ã¨ç°¡åã«ãæ°æ©è½ã ããã¤ã¾ã¿é£ããããããªå½¢ã§æ®µéçãªã¢ããã°ã¬ã¼ããè¡ããªãããã£ã¨æ©ãã§ããã®ã§ãããããèãã¯æµ®ãã³ã¾ããã§ããã ãããªä¸ã3å¹´ã»ã©åã«ä»äºã®é½åã§Larave
curosrã¾ãcursorã®æ¹ã ããæ»ãå¤ãLazyCollectionã§è¿ã£ã¦ããï¼Laravel5ã®é ã¯Iteratorï¼ã®ã§ã使ãå´ããããã¨æ®éã®getã¨åãç¨ã«ä½¿ãã¦é常ã«ä½¿ãæãããã ãEloquentã®withã¯ä½¿ããªãï¼ã¨ã©ã¼ã«ã¯ãªããªããåå¾ããããªãï¼ã®ã§ããªã¬ã¼ã·ã§ã³ã欲ããå ´åã¯èªåã§å¥éloadã¨ãããå¿ è¦ãããã ããä»ã«é大ãªåé¡ãä¸ã¤ãMySQLã®ããã©ã«ãã§ã¯ãããã¡ã¯ã¨ãªã«ãããã»ã¨ãã©ã¡ã¢ãªãç¯ç´ãããªãã®ã§ããï¼ä»ã®DBã§ã©ããªããã¯æªç¢ºèªï¼ããã£ãã1件ãã¤èªã¿è¾¼ãã§ã¡ã¢ãªãç¯ç´ãããã¨ãã¦ããã«ãé¢ããããPDOçã®DBã©ã¤ãã©ãªãæåã«å ¨ä»¶ãããã¡ã«èªã¿è¾¼ãã§ãã¾ãã¡ã¢ãªã大éæ¶è²»ãã¦ãã¾ããä¸åº¦ã«å ¨é¨ã¤ã³ã¹ã¿ã³ã¹ã«ããããããã·ã§ã¯ããããããã§ã¯cursorã®åå¨æ義ã®å¤§åã失ããã¦ãã¾ãã å¾è¿°ã®ããã«ãããã¡ã¯ã¨ãªãOFFã«ãããã¨ã¯
Laravel ï¼ Docker㧠Oracle Databaseã«æ¥ç¶ããæ¹æ³ãç´¹ä»ãã¾ãã ã¹ãã³ãµã¼ãªã³ã¯ åæ ä»åç´¹ä»ããè¨äºã§ã¯ã以ä¸ã®ç°å¢ã»ãã¼ã¸ã§ã³ã使ç¨ãã¦æ¤è¨¼ãã¦ãã¾ãã PHP 8.0 Laravel 9 Oracle Instant Client 12.1 Docker â» Oracle Databaseæ¬ä½ã®ç¨æã¯ãã¾ãããï¼ãã§ã«å¥ã®ãµã¼ãã¼ã«ããåæï¼ Dockerfile Oracle Instant Client ããã¦ã³ãã¼ããã ã¾ããOracleå ¬å¼ãããLinuxç¨ã® Instant Clientããã¦ã³ãã¼ãããã ãã¦ã³ãã¼ãããã®ã¯ãinstantclient-basic-linux.x64-12.1.0.2.0.zipãã¨ãinstantclient-sdk-linux.x64-12.1.0.2.0.zipãã®ï¼ã¤ã®ãã¡ã¤ã«ã§ããã ãã¦ã³
ããã§ã¯ãã©ãã¼/ãã©ãã¯ã¼ãå®è£ ããããã«ãusersã¨followersã®2ãã¼ãã«ã使ç¨ãã¦ãã¾ãã ãã¼ãã«çæãã¤ã°ã¬ã¼ã·ã§ã³ åãã¼ãã«ãä½æããããã®ããã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ã <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { public function up() { Schema::create('users', function($table) { $table->increments('id'); $table->string('nickname', 100)->nullable; $table->string('introduction',
以åç´¹ä»ããä¸è¨ã®ææ¸ã§ã¯Queueã®åºæ¬è¨å®ã確èªãã¾ãããä»åã¯ååã®ææ¸ã§åä½ç¢ºèªãè¡ãªã£ã¦ããªãQueueã®è¨å®ã«ã¤ãã¦ããå°ã詳細ã«èª¬æãè¡ãªã£ã¦ãã¾ãã Laravelç°å¢ã¯ä¸è¨ã®æç« ã§æ§ç¯ãããã®ãå©ç¨ãã¦ãã¾ããã¦ã¼ã¶ç»é²å¾ã«éä¿¡ããWelcomeã¡ã¼ã«ã®ã¸ã§ããå©ç¨ãã¦ãã¥ã¼ã®åä½ç¢ºèªãè¡ãªã£ã¦ããã¾ãã§ä¸è¨ã®ææ¸ãå ã«èªããã¨ããå§ããã¾ãã ã¸ã§ãã®å®è¡ãé ããã ãã¥ã¼ã«å ¥ããã¸ã§ãã®å®è¡ãé ããããæãdelayã¡ã½ãããå©ç¨ãããã¨ãã§ãã¾ãã ä¸è¨ã§ã¯ã¸ã§ãããã¥ã¼ã«å ¥ã£ã¦ãã3åå¾ã«å®è¡ã§ããããã«è¨å®ãè¡ãªã£ã¦ãã¾ãã SendWelcomeMail::dispatch($user)->delay(now()->addMinutes(3)); ã¦ã¼ã¶ãã¦ã¼ã¶ãç»é²ãè¡ãªã£ã¦ãã3åå¾ã«ãã¥ã¼ã«å ¥ã£ãã¸ã§ããå¦çããã¾ãããProcessingã®ã¡ãã»ã¼ã¸ã
You already know that OAuth 2.0 protocol is used for authentication and authorization. Laravel has Passport, which is a full Oauth 2.0 server implementation, used for authentication over API. By default, Laravel Passport has 4 types of Grants. Authorization CodeImplicitPasswordClient CredentialsBut unfortunately, for project purposes, we may need custom grants. I had to make a custom grant in my l
åæ NoSQLã®æ¦å¿µèªä½ãRDMSãã触ã£ã¦ããªãã£ãèªåã«ã¨ã£ã¦ã¯å ¨ãç¥ããªãã£ãã®ã§ ã²ã¨ã¾ã触ããªããç解ãã¦ãããã¨ãããã¨ã§Laravelã§DynamoDBãæä½ã§ããLaravel-dynamodbã©ã¤ãã©ãªã«ã¤ãã¦è§£èª¬ãã¦ãããã¨æãã¾ãã ã¤ã³ã¹ãã¼ã«
MaxAttemptsExceededExceptionã¨10æéãããæ¦ã£ã¦æ°ä»ãããã¨ãæ¸ãã¾ãã ç°å¢ PHP 7.4.3 Laravel Framework 6.14.0 ãã®ä¾å¤ is ä½ has been attempted too many times or run too long. The job may have previously timed out. ã¸ã§ãã®ã¿ã¤ã ã¢ã¦ãæããããã¯ã¸ã§ãã®è©¦è¡åæ°ãè¨å®å¤ãè¶ ããå ´åã«çºçããã ãã®ä¾å¤ãçºçããæ¡ä»¶ ãã®ä¾å¤ã«é¢é£ããç»å ´äººç©ï¼è¨å®å¤ï¼ã¯ä»¥ä¸ã®3ã¤ã timeout retry_after tries ãã®ããããã®è¨å®å¤ãééã£ã¦ããã¨ãæå³ãããã®ä¾å¤ãåãããå¯è½æ§ãããã è¨å®å¤ã«ã¤ã㦠ã¸ã§ãèªä½ã«è¨å®ãããã¨ãã§ããããã¸ã§ãå®è¡æã«ãªãã·ã§ã³ã§è¨å®ãããã¨ãã§ããã ã©ã¡ããè¨å®ããå ´åã¯ãã¸ã§
ã¯ããã« Laravel Advent Calendar 2017 22æ¥ç®ã®è¨äºã§ãã Laravelerã«ããªãã¿ï¼ãæåã«ããããã php artisan key:generate ããã㧠.env ã« APP_KEY=base64:xxxxxxx ãåã¾ãã¾ããããèªåã¯Laravel5ããããã使ã£ã¦ãããã§ãããããã£ã¦å ·ä½çã«ä½ã«ä½¿ããã¦ãããã ããã¨æã£ã¦ãä»å調ã¹ã¦ã¿ã¾ããï¼ [注] composer ã§ã¤ã³ã¹ãã¼ã«ããã°èªåçã«å®è¡ããã¦ã¾ããphp artisan key:generateã ã¾ãã¯ããã¥ã¡ã³ã ä½äºãã¾ãã¯ããã¥ã¡ã³ãã確èªãã¦ã¿ã¾ãããã Laravelerã«ã¯ããªãã¿ Readouble ã«ã¯ key:generate ã«é¢ãã¦ä¸»ã« "ã¤ã³ã¹ãã¼ã«"ã¨ã"æå·å"é ç®ã«ã¦è§¦ãããã¦ãã¾ãã ã¤ã³ã¹ãã¼ã« 次ã«ã¤ã³ã¹ãã¼ã«å¾ã«è¡ãã¹ããªã®ã¯ãã¢
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}