I want to create two laravel projects on same server with almost all files common/shared (like symlinks) except resources folder. In simple terms, I just want to create mobile site for existing desktop version. So is there any way to use all files of desktop version except views. If not then atleast controllers, routes and models.
How to create two laravel projects (on same server) with all files shared except resources (views) folder
985 views Asked by Akshay Bokade At
1
There are 1 answers
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in LARAVEL
- Function in anonymous Laravel Blade component
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- Laravel: Using belongsToMany relationship with MongoDB
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
- Resolving ElephantIO ServerConnectionFailureException: Error establishing connection to server
- Undefined function getAdminPanelUrlPrefix()'error in Laravel SaaS project after installing chatmessenger
- PHP Laravel SQLServer could not find driver
- Laravel installation via Composer results in connection timeout error
- Is there a way of showing content in a Statamic antlers template if a user is authenticated?
- Livewire component JS script Uncaught SyntaxError: Unexpected token
- is there a solution to run cron job command in cpanel only from my cPanel host?
- Prevent a webpage from navigating away
- Deploy Flutter and Laravel php mobile app on the host server
- Please how I fetch user account balance, withdrawals, Loans and Transactions to display in the dashboard?
Related Questions in LARAVEL-5.7
- Cross-Origin API calls with Laravel middleware
- Convert Laravel query eloquent to query builder when eloquent using with('relation')
- Laravel Send email using AWS SES
- Select multiple column in groupBy laravel 5.7
- Route not found in Laravel even it exists
- How do you detect which database is being used during a phpunit test?
- Calling Commands From Other Commands, and answer prompts with yes
- Storage::donwload in laravel 5.7 working fine in local for jpg and pdf, but in production(laravel forge+digital ocean ubuntu droplet), only w for pdf
- Getting a "o is not a function" error only when doing a production build in vue 2.7.14
- Laravel model accessor with attribute name containing a number is ignored
- How to run laravel job queue in php-fpm image on docker
- Model create() method is executed twice SOMETIMES and creates duplicated entry for 1:1 relation
- Laravel 5.7 testing with RefreshDatabase trait throws ErrorException: Trying to access array offset on value of type int
- No query results for user model when sending emails with Queue Notifications
- Laravel 5.7: Is it possible to add direct a value in the table?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
One way you could do that is to create APIs say on your main laravel app in your web.php folder like:
so in your other Laravel app, you could call routes to it but have it be a separate view.
However by using the backend of project 1, you really don't need a backend for project 2 unless you want to use the blade templating engine.
I think a better option that would improve the user experience is to just have one laravel project and create a separate view with a separate URL.
I am assuming you need a complete re-write for mobile that can not be reasonably done with a responsive design. If so you redirect on mobile and change relevant links to mobile views.
The downside to reloading the your page is that it will have to load your original page assets and then reload another set of assets when you redirect it.
To get away from this you could write a mobile html in a different blade.php file but have it set to display: none;. then if the javascript sees the device is a mobile device is will toggle the display for the desktop and mobile versions.
However I would question why your mobile site needs to be so different from your desktop environment that a responsive design can't handle it.