I'm getting mixed signals, do you want to format your code properly here on the laracasts forum or in your project(s)?
You can click the link below the reply form here to view the "Github Flavoured" markdown code to see how to format your code.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to write code that cleanly. So nice views. How can I do that?
I'm getting mixed signals, do you want to format your code properly here on the laracasts forum or in your project(s)?
You can click the link below the reply form here to view the "Github Flavoured" markdown code to see how to format your code.
@moses test
how????
use 3 backticks to start and 3 backticks when done. anything in between will be formatted. you should be able to use the tab key inside this textarea. if you don't know what the backticks are, it's the same key as the tilde. https://i.stack.imgur.com/TOn1U.png
This is wrapped using 3 backticks `
```
Code goes in here..
```
``` Test
```
@getvma test
test
@Prido ``` Test
```
thank you
Test
sorry, i am new, i want to test backticks
@stephen_mm test
@getvma doesn't work
@sampang test
public store function {
dd('test');
}
... public function index () { // } ...
Test
@getvma [test]
@getvma Hi Guys, just testing
test
@moses ``` asdas
@all, Great. It works. Thanks
You can use the tilde (~~~) character for code blocks too - useful if you've bound your backtick character to the terminal :P
test
Sorry guyz, only testing
You can cheat a little using this, https://stackedit.io/editor
Not sure if 100% ( hehehe )
test :D
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function __construct()
{
//this is a comment
}
}
you can also indent code by 4 spaces
You can use the tilde (~~~) character for code blocks too - useful if you've bound your backtick character to the terminal :P
or if using a mobile device where the backtick is some painful hold-for-obscure-character type of thing
@Snapey I love this thread. For mobile I created a autocorrect for the painful-to-get-to. I didn’t know about the alternates. So when I type codee it autocorrects to the backticks.
Is it working?
Yes!!!
@Snapey testing~~~ {
if ($request->query('model')) {
$ads = Ad::where('car_make', 'like', '%' . $request->query('model') . '%')->paginate(5);
return view('tailwind.search', [
'ads' => $ads
]);
}
My code
my code test
wow test
test code
testing
wow
Testing :p
code test
<template>
</template>
test
test
hello
`` test
Testing....
$result = $result->newQuery();
testing...
public function show($id)
{
$work = Work::find($id);
return view ('works.show')->with('work', $work);
}
public function show($id)
{
$work = Work::find($id);
return view ('works.show')->with('work', $work);
}
test
class Another extends Model { //
public function user(){
return $this->belongsTo('App\User');
}
demo
test
<?php
echo "Hello world!";
@pedro-teste
Test
Please or to participate in this conversation.