Ask Question Write Answer
Like


1 Answers

Hi Heidy use this way without error 
<?php

namespace App;

use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Campus extends Model
{
    use HasFactory;

    protected $table = 'campus';
    protected $primaryKey = 'id';
    protected $fillable = ['name', 'address'];

    public function teacher()
    {
        return $this->belongsTo(Models\Teacher::class);
    }

    public function version()
    {
        return $this->belongsTo(Models\Version::class);
    }
}

Write your answer

Rules

  • Minimum 50 words
  • Maximum 2000 words
  • No offensive language allowed
  • Answer shloud be understandable and related to question category and related programming language
  • You only submit one answer

What you Earn by doing this contribution ?

  • Youtube video views and watchtime (If you included on snippets,tutorials,Questions and Answers).
  • Your Profile is always showing with your contribution in great recongnizable size.
  • Social engaging we have our own follow system where interested people can follow you and you earn more traffics more engagement with followers.
  • Ability to create contribution with fully loaded with snipptes and attchements.
  • Your contribution going to serve knowledge for worldwide developers and students.
  • Statics where you can easily track likes,views and click on particular link.
  • If your contribution is good we promoted on our google ads and facebook ads.

Terms and Conditions

  • Contribution can't be removed once approved its always live and along with this showing your contribution profile if you not ban.
  • Our review team can be modify your content on review time removing any kind of thirdparty links or images which are not from trusted source.
  • You only earn traffics from this on your profile,on social media links,and your youtube videos views etc.

You shlould be ban if..

  • Found offensive language
  • Found offensive attchments
  • Found offensive user profile
  • Found sequential content rejection
Laravel