Skip to content

arion85/laravel-backend-frontend

Repository files navigation

Русский English
(Google Translator)
* Назначение папок * About My structure
/Backend папка для админ. части приложения
/Frontend папка для сайта
/Common папка для общих файлов, например, моделей, конфигурации и т.п.
/Backend folder for backend part
/Frontend folder for frontend part
/Common for general files, such as models, etc.
Структура папок в /Frontend и /Backend соответствуют структуре стандартного приложения laravel The structure of folders in /Frontend and /Backend correspond to the structure of the standard applications laravel
* Использование команды ARTISAN * Using the ARTISAN command
Для работы с Backend необходимо запускать admartisan
Для остальных случаев необходимо использовать artisan
To work with Backend you need to run admartisan
For other cases, you must use artisan
* Настройка конфигурации * Configuration setting
1. В папке /Common/config находятся общие настройки для Backend и Frontend частей
2. Что бы разделить настройки, нужно удалить необходимый ключ из /Common/config/*.php и добавить его в /{Frontend или Backend}/config/*.php
1. In the /Common/config folder there are general settings for Backend and Frontend parts
2. To separate the settings, you need to remove the necessary key from /Common/config/*.php and add it to /{Frontend or Backend}/config/*.php
* Настройки сервера * Server settings
1. Основной сайт - site.dom => /Frontend/public/
2. Административная часть - admin.site.dom => /Backend/public/
1. For Frontend part - site.dom => /Frontend/public/
2.For Backend part - admin.site.dom => /Backend/public/
* Использование встроенного сервера Laravel * Using the built-in server Laravel
1. Запустить php artisan serve
2. Добавить в файл /hosts строку "127.0.0.1 admin.127.0.0.1" (без ковычек)
3. URL основного сайта http://127.0.0.1:8000
4. URL Административной части - http://admin.127.0.0.1:8000
1. Run command php artisan serve
2. Add the line "127.0.0.1 admin.127.0.0.1" (without quotes) to the your /hosts file
3. URL for Frontend http://127.0.0.1:8000
4. URL for Backend- http://admin.127.0.0.1:8000

#Установка / INSTALL

  1. git clone https://github.com/arion85/laravel-backend-frontend.git mySite
  2. cd mySite
  3. run -> composer install
  4. run -> php -r "file_exists('.env') || copy('.env.example', 'Frontend/.env');"
  5. run -> php -r "file_exists('.env') || copy('.env.example', 'Backend/.env');"
  6. run -> php artisan key:generate
  7. run -> php admartisan key:generate





##Learning Laravel
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Separate structure for the Frontend and Backend parts of the laravel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published