Brak opisu
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.

Transportation.php 496B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Transportation extends Model
  5. {
  6. //
  7. //protected $connection = 'connection-name'; //jika menggunakan 2 DB modelnya harus dikasih ini
  8. //protected $primaryKey = 'your_key_name'; // set primarykeymu jika bukan ID
  9. protected $table = 'transportation';
  10. protected $fillable = [
  11. 'user_id',
  12. 'transportation_photo',
  13. 'name',
  14. 'transportation_identity',
  15. 'transportation_type'
  16. ];
  17. }