Giter VIP home page Giter VIP logo

paste.laravel.io's Issues

question:

hi
where is stored data ?
is it purge or autodelete ?

regaeds

Add social links

Add links in the footer of the sidebar to Laravel.io's Twitter & Github.

Add favicon

We don't really have a logo or anything. Eventually the new Laravel.io favicon will be used but in the meantime something else could fill in.

Drag/Drop File Support

Hey guys, I feel really lucky to have found this project. I am looking to use this for some upcoming needs but wondered, can you allow for support to drag/drop or even have a button to "Upload" a text file for people less inclined, or more error prone? Copy/Pasting log files can be tricky to the not-so-inclined user.

Add placeholder

Right now, the textarea screen is a bit empty. Let's set a small placeholder for new snippets so it's clear where a snippet should go and where the textarea is.

Something like:

<?php

echo 'Share your snippet here!';

419 error

You currently have 419 error blowup on paste.laravel.io when creating paste. Please fix csrf :)

Embed pastes

@RobinMalfait commented on Wed Sep 10 2014

It would be nice if you could embed pastes just like gists, but without iframe. I have made this before so I can send you code if you would like to, let me know! :)


@driesvints commented on Wed Sep 10 2014

I've tagged it as a feature request. This isn't a priority for me so don't expect this soon. Feel free to link to a gist with example code that could help.


@rydurham commented on Wed Sep 10 2014

This may or may not be relevant, but I wrote a WordPress plugin to do this: http://wordpress.org/plugins/laravel-paste-embed/


@driesvints commented on Sun Sep 21 2014

@rydurham cool! Can you show an example somewhere?


@rydurham commented on Sun Sep 21 2014

Sure thing. I have a demo here: http://www.ryandurham.com/projects/laravel-paste-embed/

Docker configuration

Is there any plan to also provide Docker configuration additionally to VirtualBox?

I would send a PR, if you'd be ok with this.

Prevent people from entering too much data

Currently the DB column to save the pastes can only handle a max amount of characters. I haven't looked yet what that max is but we should enforce this client-side as well. Add it to the request validation probably.

Calling save method twice in PastesController.

 private static function createNew(self $paste, Request $request): self
    {
        $paste->code = $request->get('code');
        $paste->save();

        $paste->hash = Uuid::uuid4()->toString();
        $paste->save();

        return $paste;
    }

I really don't see the need for calling the save method twice, stand to be corrected.

 private static function createNew(self $paste, Request $request): self
    {
        $paste->code = $request->get('code');
        $paste->hash = Uuid::uuid4()->toString();
 
        $paste->save();

        return $paste;
    }

Because this would still work fine, and the test still passes.

Add a white/clear pastebin theme

A colleague of mine noted that the current pastebin theme is rather dark. It would be cool if people had the chance to choose a white/clear theme as well.

Upgrade to PHP 8.3

We'll need to do this mostly server wise but would be cool to have a passing build on a PR already.

https://paste.laravel.io/ got hacked

Hi,

I just used paste.laravel.io and got redirected to this paste after saving, forking my own paste, and saving again :

https://paste.laravel.io/bkzXL

Tried it on a Windows 10 machine with Chrome, and Debian + Firefox on a VM.
Got redirected once, each time. But once it showed up, it didn't do it anymore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.