Tinkerwell 4 is out now! Get the most popular PHP Scratchpad application. Tinkerwell 4 is out now: Get the most popular PHP Scratchpad with Detail Dive, AI code generation and more. Learn more
On Laravel Playground, you can toggle the file selection view by clicking the file icon.
In this list, you can swith between different opened files by clicking on them. To create a new file, press the plus button on the upper right. Then you can enter the filename for the newly created file.
If your files end with the .blade.php
extension, Laravel Playground will automatically make them available as views for your executed code.
<?php Route::get('/', function() { return view('embedded'); });
<h1>I got embedded!</h1>
You can create custom environment keys or override existing settings by creating a file named .env
. This file behaves like a regular .env file.
Note: Beware that you should not store any keys that are meant to be secret in your env file. The file content will be visible when shared/embedded.
<?php Route::get('/', function() { dd(env('EXAMPLE_KEY')); });
EXAMPLE_KEY="This is a custom env variable"
Don’t waste time building admin panels for your Laravel applications. Let Invoker do the hard work for you. No coding. No setup. No stress.
Learn more