johnnncodes / laravelsnippets

LaravelSnippets.com website | A repository of useful code snippets for Laravel PHP framework. Submit, grab and share!
http://laravelsnippets.com/
333 stars 97 forks source link

Snippet Copy & Pasta #95

Closed xLink closed 9 years ago

xLink commented 10 years ago

I just copied a part of a snippet into my project, and it came out as such:

 function humanDate($string)
{
// returns string into 01 Dec 2000 for example
return date('m M Y', strtotime($string));
}
- See more at: http://laravelsnippets.com/snippets/helper-for-dates-seo-titles-and-use-of-carbon#sthash.NsXQGTXn.dpuf

problem there, is that line that gets added is more likely to get deleted straight away because it screws with syntax of the code