Fortune.php 533 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Apps\Models;
  3. use Cygnite\Database\ActiveRecord;
  4. class Fortune extends ActiveRecord
  5. {
  6. //your database connection name
  7. protected $database = 'hello_world';
  8. /*
  9. | By default Every model class name used as table name
  10. | "User" => 'user'
  11. | You can also override the table name here
  12. */
  13. //protected $tableName = 'users';
  14. protected $primaryKey = 'id';
  15. //public $perPage = 5;
  16. public function __construct()
  17. {
  18. parent::__construct();
  19. }
  20. }// End of the User Model