Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
50.00% covered (danger)
50.00%
1 / 2
CRAP
50.00% covered (danger)
50.00%
1 / 2
Notification
0.00% covered (danger)
0.00%
0 / 1
50.00% covered (danger)
50.00%
1 / 2
2.50
50.00% covered (danger)
50.00%
1 / 2
 proposal
0.00% covered (danger)
0.00%
0 / 1
2.00
0.00% covered (danger)
0.00%
0 / 1
 user
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Notification extends Model
{
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'notification';
    public function proposal()
    {
        return $this->belongsTo('App\Proposal', 'idproposal');
    }
    public function user()
    {
        return $this->belongsTo('App\User', 'idusers');
    }
}