PHP code example of bantenprov / yankes-info-kamar
1. Go to this page and download the library: Download bantenprov/yankes-info-kamar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Rumahsakit extends Model
{
use SoftDeletes;
protected $table ='rumahsakits';
protected $fillable = ['name','alamat'];
public function kamar()
{
return $this->hasMany('App\Kelasrawat','id');
}
}