Giter VIP home page Giter VIP logo

paste.laravel.io's Introduction

Tests Coding Standards

Laravel.io Pastebin

This is the repository for the Laravel.io pastebin. The code is entirely open source and licensed under the MIT license. We welcome your contributions but we encourage you to read the the contributing guide before creating an issue or sending in a pull request. Read the installation guide below to get started with setting up the app on your machine.

Requirements

The following tools are required in order to start the installation.

Installation

  1. Clone this repository locally with git clone [email protected]:laravelio/paste.laravel.io.git paste.laravel.io
  2. Copy the .env.example file to .env
  3. Install the PHP dependencies with composer install
  4. Generate a new app key with php artisan key:generate
  5. Install and compile the front-end dependencies with npm install && npm run dev
  6. Serve the website locally by running php artisan serve

You can now visit the app in your browser by visiting http://127.0.0.1:8000.

Commands

Command Description
php artisan test Run the tests
php artisan migrate:fresh --seed Reset the database
npm run dev Watch for changes in CSS and JS files

Maintainers

The Laravel.io pastebin is currently maintained by Dries Vints and Joe Dixon. If you have any questions please don't hesitate to create an issue on this repo.

Contributing

Please see the contributing guide for details.

Code of Conduct

Please read our Code of Conduct before contributing or engaging in discussions.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The MIT License. Please see the license file for more information.

paste.laravel.io's People

Contributors

bbashy avatar bvipul avatar dependabot[bot] avatar driesvints avatar edcs avatar faissaloux avatar introwit avatar joedixon avatar juanabascal avatar malohtie avatar mrassili avatar osaigbovoemmanuel1 avatar svpernova09 avatar thinkverse avatar tvbeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

paste.laravel.io's Issues

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.

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.

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.

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.

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 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!';

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.

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.

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.

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.

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/

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.