-
Dependency Manager for PHP Dependency !== packages ???查看全部
-
Maven : Apache Maven is a software project management and comprehension tool. https://maven.apache.org/ NPM CocoaPods : CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. https://cocoapods.org/ PEAR : PEAR - PHP Extension and Application Repository https://pear.php.net/ Composer查看全部
-
Composer : Dependency Manager for PHP https://getcomposer.org/ https://github.com/composer/composer https://getcomposer.org/doc/查看全部
-
student表查看全部
-
發送模板郵件 Mail::send('郵件模板視圖',['傳遞模板使用的參數'],function($message){ $message->to('[email protected]')->subject('subject'); });查看全部
-
發送純文本郵件 配置mail.php Mail::raw('郵件內容',function($message){ $message->from('[email protected]','郵件標題'); $message->subject('郵件主題'); $message->to('[email protected]');//發送給誰 });查看全部
-
Storage::disk(參數)->put($filename,file_get_contents($realPath)) /* 參數為在config/filesyetems.php中所調用的磁盤; 這樣可以實現在上傳到不同的目錄中 */查看全部
-
debug: abort('404') 系統拋出自定義錯誤頁面:abort('自定頁面文件名'),在errors文件夾下面; 如果是路由沒定義,則自動在errors下找到404頁面代替 日志: single: Log::info('可以是數組和字符串'),數組將按照json寫入日志中 daily : 日志文件命名已日期命名查看全部
-
在config/filesyetems.php設置上傳磁盤 Storage::disk('uploads')->put($filename,file_get_contents($realPath))上傳到指定文件夾查看全部
-
larval查看全部
-
1、php artisan queue:table php artisan migrate 2、php artisan make:jobs 任務類名 3、$this->dispatch(new 任務類對) 4、php artisan queue:listen 5、php artisan queue:failed-table php artisan migrate 查看php artisan queue:failed 再次執行php artisan queue:retry(id) 全部執行 php artisan queue:retry all 刪除某個php artisan queue:forget [id] 刪除全部 phpartisan queue:flush查看全部
-
日志級別:emergency alert critical error warning notice info debug Log::info("User failed to login",["id"=>$user->id])傳遞的變量將序列化成字符串格式存放:User failed to login{id:"number"}查看全部
-
系統拋出自定義錯誤頁面:abort('自定頁面文件名'),在errors文件夾下面; 如果是路由沒定義,則自動在errors下找到404頁面代替查看全部
-
//純文本 Mail::raw('郵件內容",function($message){ $message->from("發件地址","發件人"); $message->subject("郵件主題"); $message->to("收件地址","收件人") }) //自定義視圖 Mail::send("視圖文件",[變量名=>字符/數組/對象],function($m)use(外部變量){ $message->from("發件地址","發件人"); $message->subject("郵件主題"); $message->to("收件地址","收件人"); });查看全部
-
Storage::disk('uploads')->put($filename,file_get_contents($realPath))上傳到指定文件夾查看全部
舉報
0/150
提交
取消