You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112131415 |
- <?php
-
- namespace App\Model;
-
- use Illuminate\Database\Eloquent\Model;
-
- class NewsLog extends Model
- {
- //protected $connection = 'connection-name'; //jika menggunakan 2 DB modelnya harus dikasih ini
- //protected $primaryKey = 'your_key_name'; // set primarykeymu jika bukan ID
- protected $table = 'news_logs';
- protected $fillable = [];
- //public $incrementing = false; //jika primary keynya string
- //public $timestamps = false; //matiin created_at, updated_at
- }
|