Created
September 21, 2017 17:39
-
-
Save deleugpn/9af65b02abec2fb59eb5df845709d4cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use Facades\App\Process; | |
| class WebServerController extends Controller | |
| { | |
| public function restart() | |
| { | |
| $output = Process::run('service httpd restart'); | |
| return redirect('/webserver')->with('output', $output); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment