protected function appendRoutes() { $path = app_path('Http/routes.php'); file_put_contents($path, file_get_contents($path) . "\n\n" . file_get_contents(__DIR__ . '/stubs/routes.stub')); }