Skip to content

Commit

Permalink
Add git pull, volume control
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanRudvin committed Mar 26, 2018
1 parent d538b11 commit ea5618a
Show file tree
Hide file tree
Showing 10 changed files with 1,592 additions and 91 deletions.
18 changes: 18 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Http\Response;

class HomeController extends Controller
{
Expand All @@ -16,6 +17,23 @@ public function __construct()
$this->middleware('auth', ['except' => ['welcome']]);
}

public function admin()
{
return view('admin.index');
}

public function gitPull()
{
echo shell_exec("git pull");
return;
}

public function changeVolume($volume = 100)
{
echo shell_exec("amixer set Master " . $volume . "% --c 1");
return "Volume changed to " . $volume;
}

/**
* Show the application dashboard.
*
Expand Down
5 changes: 0 additions & 5 deletions app/Http/Controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ class UsersController extends Controller
* @return \Illuminate\Http\Response
*/

public function admin()
{
return view('admin.index');
}

public function index()
{
return view('user.index');
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"cross-env": "^5.1.1",
"vue-notification": "^1.3.7",
"webpack": "^3.8.1"
}
}
Loading

0 comments on commit ea5618a

Please sign in to comment.