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.
The following tools are required in order to start the installation.
- Clone this repository locally with
git clone git@github.com:laravelio/paste.laravel.io.git paste.laravel.io - Copy the
.env.examplefile to.env - Install the PHP dependencies with
composer install - Generate a new app key with
php artisan key:generate - Install and compile the front-end dependencies with
npm install && npm run dev - 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.
Amp runs .agents/setup when preparing a fresh orb snapshot. It installs PHP 8.4 and Composer, installs locked PHP and Node dependencies using the orb's Node.js and npm, and builds the assets. If .env is missing, setup creates it with a local SQLite database and log-based mail delivery. Existing environment files, app keys, and database records are preserved.
.agents/resume repairs runtime directories and clears cached configuration without reinstalling dependencies. Run amp orb services ensure to start the supervised web server declared in .amp/services.yaml and obtain its preview URL. After front-end changes, run npm run build to refresh the preview's assets.
| 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 |
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.
Please see the contributing guide for details.
Please read our Code of Conduct before contributing or engaging in discussions.
Please review our security policy on how to report security vulnerabilities.
The MIT License. Please see the license file for more information.