| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * @property int $id
- * @property int $student_id
- * @property string $name
- * @property \Illuminate\Support\Carbon $birth_date
- * @property string $cpf
- * @property string|null $gender
- * @property string $degree
- * @property string $email
- * @property string $phone
- * @property string $street
- * @property string|null $address_number
- * @property string $postal_code
- * @property string $neighborhood
- * @property int $city_id
- * @property int $state_id
- * @property string|null $complement
- * @property string|null $notes
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property \Illuminate\Support\Carbon|null $deleted_at
- * @property-read \App\Models\City $city
- * @property-read \App\Models\State $state
- * @property-read \App\Models\Student $student
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible onlyTrashed()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible query()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereAddressNumber($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereBirthDate($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereCityId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereComplement($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereCpf($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereDegree($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereEmail($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereGender($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereName($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereNeighborhood($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereNotes($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible wherePhone($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible wherePostalCode($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereStateId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereStreet($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereStudentId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible withTrashed(bool $withTrashed = true)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentResponsible withoutTrashed()
- * @mixin \Eloquent
- */
- class StudentResponsible extends Model
- {
- use HasFactory, SoftDeletes;
- protected $table = 'student_responsibles';
- protected $guarded = ['id'];
- protected $casts = [
- 'birth_date' => 'date',
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- 'deleted_at' => 'datetime',
- ];
- public function student(): BelongsTo
- {
- return $this->belongsTo(Student::class);
- }
- public function city(): BelongsTo
- {
- return $this->belongsTo(City::class);
- }
- public function state(): BelongsTo
- {
- return $this->belongsTo(State::class);
- }
- }
|