All Projects → DigitalWheat → Multi Domain Laravel

DigitalWheat / Multi Domain Laravel

An example of multi-domain/subdomain app in Laravel.

Projects that are alternatives of or similar to Multi Domain Laravel

Ignition Go
Bootstrap4 /Codeigniter 3 Modular (HMVC) App Building Framework - to build enterprise class web applications... Versions: CodeIgniter 3.1.9 AdminLTE 3.4 Bootstrap 4.5.0
Stars: ✭ 166 (-2.92%)
Mutual labels:  laravel
Breadcrumbs
Laravel Breadcrumbs - An easy way to add breadcrumbs to your @Laravel app.
Stars: ✭ 169 (-1.17%)
Mutual labels:  laravel
Laravel Selfupdater
This package provides some basic methods to implement a self updating functionality for your Laravel application. Already bundled are some methods to provide a self-update mechanism via Github or some private repository via http.
Stars: ✭ 170 (-0.58%)
Mutual labels:  laravel
Themes
🎨 Laravel Themes package with support for the Caffeinated Modules package.
Stars: ✭ 167 (-2.34%)
Mutual labels:  laravel
Imall
基于Laravel5.2,Vue.js1.0的微信商城,用于熟悉 Laravel、Vuejs、Webpack、Gulp 的结合使用,已不维护及更新。(1MB单核基础服务器,浏览请耐心等待图片加载...)
Stars: ✭ 168 (-1.75%)
Mutual labels:  laravel
Lara Head
Easily setup SEO in your laravel project with lara-head ❤️ @code4mk
Stars: ✭ 169 (-1.17%)
Mutual labels:  laravel
Laravel Rate Limited Job Middleware
A job middleware to rate limit jobs
Stars: ✭ 166 (-2.92%)
Mutual labels:  laravel
Laravel Debugbar
Laravel Debugbar (Integrates PHP Debug Bar)
Stars: ✭ 13,485 (+7785.96%)
Mutual labels:  laravel
Laravel Google Captcha
Google captcha for Laravel 5, Laravel 6 and Laravel 7, support multiple captcha on page
Stars: ✭ 168 (-1.75%)
Mutual labels:  laravel
Laravel Nova Nested Form
This package allows you to include your nested relationships' forms into a parent form.
Stars: ✭ 169 (-1.17%)
Mutual labels:  laravel
Logviewer
📃 Provides a log viewer for Laravel
Stars: ✭ 2,098 (+1126.9%)
Mutual labels:  laravel
Partyline
Output to Laravel's console from outside of your Command classes.
Stars: ✭ 168 (-1.75%)
Mutual labels:  laravel
Laravel Bridge
Package to use Laravel on AWS Lambda with Bref
Stars: ✭ 168 (-1.75%)
Mutual labels:  laravel
Awesome Opensource Apps
🏠ℹ️ Curated list of awesome open source crafted web & mobile applications - Learn, Fork, Contribute & Most Importantly Enjoy!
Stars: ✭ 2,199 (+1185.96%)
Mutual labels:  laravel
Laravel Movies Example
Code for YouTube series on building a Laravel Movie Application
Stars: ✭ 171 (+0%)
Mutual labels:  laravel
Laravel Realtime Example
Realtime 🍕 Pizza Order Tracker 🍕 - Laravel, Vue & Pusher
Stars: ✭ 165 (-3.51%)
Mutual labels:  laravel
Fcm
Firebase Cloud Messaging (FCM) notifications channel for Laravel
Stars: ✭ 169 (-1.17%)
Mutual labels:  laravel
Koel
🐦 A personal music streaming server that works.
Stars: ✭ 13,105 (+7563.74%)
Mutual labels:  laravel
Novapackages
Stars: ✭ 169 (-1.17%)
Mutual labels:  laravel
Laravel Translatable
[Deprecated] A Laravel package for multilingual models
Stars: ✭ 1,974 (+1054.39%)
Mutual labels:  laravel

🔥 UPDATE

A better example with online demo: https://github.com/laravel-101/multi-domain-laravel-app

Multi-Domain Laravel App

An example of multi-domain/subdomain app in Laravel. A project allows your users to create their shops (or websites) under your subdomain, like acme.example.com

laravel-multi-domain

What's included?

  • User login and registration
  • Application control panel
  • Sub-domains routes
  • Custom helper functions to work with subdomains
  • Database migrations
  • etc.

Please note: This is a demo project, and a lot of features aren't included, such as billing, user management, etc. The main purpose of this project is to show how to work with wildcard domains/subdomains in Laravel Framework.

Learn more

Read more about this project here: https://maxkostinevich.com/blog/multi-domain-laravel

Deployment

It is supposed that the project is hosted using Laravel Forge and deployed using Envoyer.io

Commands to be added after installing composer dependencies:

cd {{release}}

composer update

npm install
npm run production

php artisan view:clear
php artisan cache:clear
php artisan vendor:publish
php artisan migrate --force

php artisan db:seed --force

php artisan config:cache

Notes

Setting up .env file

Let's assume the app will be running on the app.example.com domain, so your users will be able to create their shops on your sub-domains, like acme.example.com. In this case, your .env file may looks as follow:

APP_URL=http://app.example.com
APP_DOMAIN=app.example.com

SESSION_DOMAIN='.example.com'

ADMIN_FIRST_NAME=John
ADMIN_LAST_NAME=Doe
[email protected]
ADMIN_PASSWORD=my_secure_password

Development on local environment

It is recommended to use tunneling service like ngrok.com, when developing on your local machine. In this case your .env file may looks as follow:

APP_URL=http://app.yourapp.ngrok.io
APP_DOMAIN=yourapp.ngrok.io

SESSION_DOMAIN='.yourapp.ngrok.io'

ADMIN_FIRST_NAME=John
ADMIN_LAST_NAME=Doe
[email protected]
ADMIN_PASSWORD=secure_pa55word

Available NPM commands

npm run watch
npm run dev
npm run production

Changelog

v1.0.0 - May 25, 2018
** Initial release **

Credits

MIT License

(c) 2018 DigitalWheat - All rights reserved.

About

At DigitalWheat we create modern web-applications for small and medium-sized business.

Have a project in mind? Let's talk!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].