author: Kaka
wechat: fangkangfk
get method returns a list of all the values inside
first acquiring first row of data
Gets the value of a column
If you want to get the array contains a single column value, may be used pluck
a method
May also be in the returned array is a column value to specify custom key (the key must be other custom field column name of the table, otherwise an error):
Of course, we do not always want to get all the columns in the data table, use select
method
Tp5 equivalent to the inside of the field query specified field
These are methods laravel access to data, we look down the additions and deletions to change laravel
adding data
Get auto-incremented id
update data
delete data
tp5.1 the query builder
With laravel is the same, only the query is not the same
tp5.1 select query using () can, laravel using the get ()
tp5.1 acquiring data using a find (), laravel used where conditions are added first
As for the other use at a later stage to use, making supplements a basic look at a document can solve the problem, but we still need to keep that in mind, to lay the foundation