Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block nullproduction

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nullproduction / VKServiceProvider.php
Created May 5, 2015
Пример сервис-провайдера
View VKServiceProvider.php
namespace App\Libs\VK\Laravel;
use Illuminate\Support\ServiceProvider;
class VKServiceProvider extends ServiceProvider
public function register()
nullproduction / CachedEloquentUserProvider.php
Last active Jul 10, 2018
Caching Auth::user() for Laravel5
View CachedEloquentUserProvider.php
<?php namespace App\Providers;
use Illuminate\Contracts\Hashing\Hasher;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Contracts\Auth\Authenticatable;
class CachedEloquentUserProvider implements UserProvider {
protected $hasher;
protected $model;
View gist:3c9a87c4ba71d6eda43f
<?php namespace App\Libs\Helper;
use Jenssegers\Date\Date;
class Helper {
* Get Date
public static function getDate($date)
You can’t perform that action at this time.