Tinkerwell 4 is out now! Get the most popular PHP Scratchpad application. Learn more

Laravel Playground

FAQ

Can I add custom composer packages?#

No, right now Laravel Playground only allows you to work with a basic Laravel application, as well as a number of pre-installed packages, such as the Laravel Debugbar or Livewire.

Can I make use of authentication / users?#

The default Laravel user table is always migrated in your playgrounds and contains a user that you can use.

The users credentials are:

ID: 1
Email: [email protected]
Password: secret

Can I persist data to the database?#

Every Playground comes with a built-in SQLite database that you can use and write data to. Due to the way that Laravel Playground is built, there is no guarantee that persisted data will always be available between HTTP requests, unless it gets created at runtime. The best way to ensure that your database gets populated at runtime is by using the LaravelPlayground::loaded callback.

LaravelPlayground::loaded(function() {
    // Create your database models in here
});

Build desktop applications as a web developer

Our course teaches you how to build, publish, and distribute desktop applications with HTML, JavaScript and CSS.

Learn more
Desktop Apps With Electron course