PHP code example of kyledoesdev / essentials

1. Go to this page and download the library: Download kyledoesdev/essentials 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/ */

    

kyledoesdev / essentials example snippets


timezone() // Returns the timezone of the current request()->ip()

Carbon::parse($created_at)->inUserTimezone() // Converts carbon instance to user's timezone
bash
php artisan make:action CreateUserAction