123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace Appaaa;
- use Illuminate\Database\Eloquent\Model;
- $aa = "bb";
- return;
- class Student extends Model
- {
-
- protected $table = 'student';
-
- protected $primaryKey = 'id';
-
- protected $fillable = ['name', 'age'];
-
- protected $guarded = [];
-
-
- public $timestamps = true;
-
- protected function getDateFormat()
- {
- return time();
- }
-
- protected function asDateTime($value)
- {
- return $value;
- }
- }
- $students=Student::all();
- dd($students);
|