#TIL : realpath function

If you pass a non-exists path to function realpath, it returns empty string. So please don’t do something like :

1
2
3
function storage_path($folder) {
return realpath(__DIR__.'/storage/'.$folder);
}

if you expect it return full path of new folder !

#TIL : Random quote 23 Feb 2017

A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. - Mitch Ratcliffe

Haha, it’s totally true ! And it makes me remember this meme when I was little bit drunk !

Tequila