PHP code example of rukhsar / moments
1. Go to this page and download the library: Download rukhsar/moments library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rukhsar / moments example snippets
namespace App;
use Rukhsar\Moments\Moments;
class User extends Model
{
use Moments;
// your remaining model class content
}
$users = User::currentDay()->get();