碎片

  • safari 經常自動將電話加上`tel:` 但可以加上鏈結後,會與網頁原本想顯示的配色有出入 所以可在`` 加入這句 ```html ```

  • ```json { "tailwindCSS.files.exclude": [ "**/.git/**", "**/node_modules/**", "**/.hg/**", "**/resources/views/admin/**" ], "html-css-class-completion.includeGlobPattern": "**/res...

  • https://www.youtube.com/watch?v=ES8vJcUqE7s

  • a base and simple js onclick confirm box `` Tag with Form ```html Delete ``` `` Tag ```html Delete ```

  • `App\Providers\AppServiceProvider `,添加以下兩項設定 ```php use Illuminate\Pagination\Paginator; public function boot() { Paginator::useBootstrap(); } ``` https://laravel.com/docs/8.x/pagination...

  • ```php $module_data = array(); foreach ($course_module as $k => $v) { $module_data[] = [ 'user_course_id' => $orm->id, 'course_id' => $reque...

  • select + where + with + orderBy + paginate ```php Post::select('title', 'id') ->orderBy('updated_at', 'desc') ->with('user') ->paginate(20); ``` 注意 ##### 1. order 是用orderBy, ##### 2....

  • https://stackoverflow.com/questions/54510043/bootstrap-and-select2-form-validation?answertab=votes#tab-top

  • 前往 `/Users/****/ ` 應該會看到`圖片`這目錄 進入後會看到`照片圖庫` 按右鍵`顯示套裝內容`,進入就會看到名為`originals`的目錄 這個目錄就是平時iPhone等等輸入相片至mac時會保存到此 打開後就是目錄式的方法...

  • https://merakiui.com/ free Tailwindcss UI

  • https://heroicons.com/

  • https://hackmd.io/@monkenWu/S14j-NqsU

  • https://pqina.nl/filepond/ 這個drag & drop 的上傳套件,是免費的 但你安裝完會有作者版權顯示,作者也開放給你在設定中輕鬆移除 可用來批量上傳/上傳頭像時使用 作者有收費版插件,他的「頭像上傳」是我至今...

  • 根目錄的中的.htaccess設定為 ```php DirectoryIndex index.php RewriteEngine On RewriteRule ^$ public/index.php [L] RewriteRule ^((?!public/).*)$ public/$1 [L,NC] ``` 至於`public/.htaccess` 則不要做...

  • 部分不太完整的date picker 套件,用戶無法快速選擇年份,所以會喜歡手動輸入 但手動輸入又可能會出錯,所以做了個很簡單的防呆設定,所以把26個英文字也加入也可,但其實大部分再差的date picker也防止了你輸入數...

  • ```php //app/Providers/FortifyServiceProvider.php

  • ```js $('.catalog').select2({ placeholder: "--- Selected ---", ajax: { //for laravel csrf headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') },...

  • ```php function getRouteGroup() { $route = Route::currentRouteName(); $arr = explode(".", $route); return $arr['0']; } ``` you can use to... ```php function createLink() { $route = Ro...

  • ```php Route::resource('faq', 'ProductFaqController', [ 'names' => [ 'index' => 'faq', 'store' => 'faq.new', // etc... ] ]); ```

  • ```bash composer create-project laravel/laravel test01 ```