Silber\Bouncer\Factory::withUser PHP Method

withUser() public method

Set the user model to use for the gate.
public withUser ( Model $user )
$user Illuminate\Database\Eloquent\Model
    public function withUser(Model $user)
    {
        $this->user = $user;
        return $this;
    }