Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e90c69

Browse files
committed
Default laravel install/reset
1 parent b112a9c commit 9e90c69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎bin/laravel-coderunner

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/usr/bin/env php
22
<?php
33

4+
/*
5+
* Install or reset default larvel app
6+
*/
7+
if (in_array($argv[1] ?? null, ['default', 'reset'])) {
8+
$command = 'composer run-script install-laravel -d ' . str_replace('/bin', '', __DIR__);
9+
echo 'Installing default laravel app.' . PHP_EOL;
10+
echo "\e[1m> \e[2;32m" . $command . "\e[0m" . PHP_EOL;
11+
shell_exec($command);
12+
die('Done.' . PHP_EOL);
13+
}
14+
415
/*
516
* Path to Laravel application (fallback to default laravel app)
617
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /