johnnncodes / laravelsnippets

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

Clone snippet (fork/quote etc..) #99

Closed mayoz closed 2 years ago

mayoz commented 10 years ago

I think it would be interesting. A simple algorithm can be. Let's extend the current snippet. By copying the contents of wanting to change a new one should be able to create content.

Step step; 1 - click on the Copy button 2 - The original snippet will be loaded textarea. 3 - Apply changes and share. 4 - Original snippet associated with the content you copy. (relation by hasMany) 5 - Show copy snippet on original snippet detail page.

johnnncodes commented 10 years ago

I think this is an interesting feature. Can you kindly implement this and send a pull request? Then if everything is good, we will be happy to merge it :)

mayoz commented 10 years ago

This is just an idea, not develop yet. Maybe one of them can be helpful, develops :)

One other shortcomings, according the to comments from the old version should be kept snippets organized.