We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532d79a commit 872d007Copy full SHA for 872d007
bootstrap/helpers.php
@@ -10,3 +10,11 @@ function svg($src)
10
{
11
return file_get_contents(public_path('assets/svg/' . $src . '.svg'));
12
}
13
+
14
+/**
15
+ * Convert some text to Markdown...
16
+ */
17
+function markdown($text)
18
+{
19
+ return (new ParsedownExtra)->text($text);
20
+}
routes/web.php
@@ -3,14 +3,8 @@
3
/**
4
* Set the default documentation version...
5
*/
6
-define('DEFAULT_VERSION', '5.5');
7
-
8
-/**
9
- * Convert some text to Markdown...
- */
-function markdown($text)
-{
- return (new ParsedownExtra)->text($text);
+if (! defined('DEFAULT_VERSION')) {
+ define('DEFAULT_VERSION', '5.5');
Route::get('/', function () {
0 commit comments