close
  • 在這邊整理成自己容易解讀的方式,並做個學習備忘錄! 引用文章連結在最下方。
  •  
  • 紅色字體+底線的文是連結,點即可看更詳細的內容!
  •  
  •  
  •  
  • Introduction (介紹)
  • Laravel 的 Eloquent ORM 提供了漂亮、簡潔的 ActiveRecord 實作來和資料庫互動。
  • 每個資料庫表有一個對應的「Model」可以用來跟資料表互動。
  • 你可以透過 Model 查詢以及新增紀錄資料表內的資料。
  •  
  • Defining Models (定義Model)
  • Retrieving Models
    • Collections (集合)
    • Chunking Results (區塊)
  • Retrieving Single Models / Aggregates
    • Retriving Aggregates
  • Inserting & Updating Models (新增或更新 Model)
    • Inserts (新增)
    • Updates (更新)
    • Mass Assignment
    • Other Creation Methods
  • Deleting Models (刪除 Model)
    • Soft Deleting (軟刪除)
    • Querying Soft Deleted Models (查詢被刪除的 Model)
  •  

  •  

  •  

  • 未完成部分...

  • Query Scopes (查詢範圍)

    Events (事件)

文章引用: 

https://laravel.com/docs/5.3/eloquent#soft-deleting

https://laravel.tw/docs/5.2/eloquent#events

arrow
arrow
    全站熱搜

    Mayuge 發表在 痞客邦 留言(0) 人氣()