| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * @property int $id
- * @property int $student_id
- * @property int $user_id
- * @property string $event_type
- * @property string $description
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property \Illuminate\Support\Carbon|null $deleted_at
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory onlyTrashed()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory query()
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereDescription($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereEventType($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereStudentId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory whereUserId($value)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory withTrashed(bool $withTrashed = true)
- * @method static \Illuminate\Database\Eloquent\Builder<static>|StudentHistory withoutTrashed()
- * @mixin \Eloquent
- */
- class StudentHistory extends Model
- {
- use HasFactory, SoftDeletes;
- protected $table = 'student_histories';
- protected $guarded = [
- 'id', // Add more fields that shouldn't be edited here
- ];
- protected $casts = [
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- 'deleted_at' => 'datetime',
- // Add your casts here (e.g., 'is_active' => 'boolean')
- ];
- // Relationships
- // Business Logic Methods
- // Custom Finders
- // Query Scopes
- }
|