---
title: "Discussion on \"Laravel tip #2. Создаем тестовые роуты без отправки в GIT\" | Hashnode"
description: "Discussion on \"Laravel tip #2. Создаем тестовые роуты без отправки в GIT\". Создаем файл в папке роутов /routes/test.php\n\nДобавляем этот файл в .gitignore\n\nДобавляем в файл RouteServiceProvider.php в функцию boot следующий код:\n\n\n$this->routes(function () {\n        // ...\n\n        if (file_exists(base_path('routes/test.php')..."
url: "https://hashnode.com/posts/laravel-tip-2-sozdaem-testovye-routy-bez-otpravki-v-git/6512b4160900061c5930ebac"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel tip #2. Создаем тестовые роуты без отправки в GIT](https://blog.l80.ru/laravel-tip-2-sozdaem-testovye-routy-bez-otpravki-v-git?utm_source=hashnode&utm_medium=feed)

Создаем файл в папке роутов /routes/test.php Добавляем этот файл в .gitignore Добавляем в файл RouteServiceProvider.php в функцию boot следующий код: $this->routes(function () { // ... if (file\_exists(base\_path('routes/test.php')...

Sep 26, 2023 · 1 min read · blog.l80.ru  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#laravel-tip](https://hashnode.com/tag/laravel-tip)

## Written by

[Anastas Mironov](https://hashnode.com/@ast21)

@ast21

  
[View profile](https://hashnode.com/@ast21)

Laravel Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
