jelovac / bitly4laravel

Provides a Laravel package to communicate with Bit.ly API
35 stars 18 forks source link

Invalid variable type detected! The variable must be type "String", "NULL" type passed. #26

Closed freel132 closed 7 years ago

freel132 commented 8 years ago

Invalid variable type detected! The variable must be type "String", "NULL" type passed.

any ideas what's the problem?

jelovac commented 8 years ago

Greetings freel132,

Can you provide me with more info so I can identify what the problem is? For example PHP version, Laravel version and the method you used when the error occurred?

rgds, Vladimir

freel132 commented 8 years ago

Hello, Laravel Framework version 5.2.29 PHP Version 5.6.10

I already solving my problem different way. but as I remember I were trying to use this in my view and in controller.

in view: {{\Bitly::shorten('http://google.com/')}}

in controller: $link = Bitly::shorten('http://google.com/');

I hope I remmeber correcly ;) I need this solution when I am sharing my post on fb. As you probably know FB cache all information so all the time I want to provide other url. thx