Skip to content

Tag: View

Laravel Eloquent Relationship

Model: Record (id,user_id, status_id, date, note, timestamp)

Model: Status(id,name)

If you try to access it directly like this {{$record->status->name }} it will return “Trying…

Continue reading Laravel Eloquent Relationship

How to Pass Multi Array(or Model) To View In Laravel

Kadangkala kita perlu panggil beberapa model dalam satu page First kena panggil model sebelum class controller seperti berikut

Kemudian panggil seperti berikut dalam class controller. Disini…

Continue reading How to Pass Multi Array(or Model) To View In Laravel

Yii Lookup

Yii Framework
Yii Framework

Some function is created to make code easy to read and manageable. The Lookup function is so powerfull to simplified data storage. Usually we store Approve, Not Approved, Qualified, Not Qualified in words for each records, but with Lookup class, we can make it short to an integer for each… Seterusnya

{"value":"\n