Jump to content

Bonanza123d

Members
  • Posts

    4
  • Joined

  • Last visited

Bonanza123d's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The best method I have found was to move the index.php file to wherever you need to move it and edit the 2 important directories it calls. Here's the index.php file default for Laravel: /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader for | our application. We just need to utilize it! We'll simply require it | into the script here so that we don't have to worry about manual | loading any of our classes later on. It feels nice to relax. | */ require __DIR__.'/../bootstrap/autoload.php'; /* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight our users. | */ $app = require_once __DIR__.'/../bootstrap/app.php'; This is the index.php file I am implementing for TFDi's Shared Hosting system. Works like a charm inside the public_html folder: // Notice the VAOS directory change require __DIR__.'/../VAOS/bootstrap/autoload.php'; $app = require_once __DIR__.'/../VAOS/bootstrap/app.php'; What you need to do is change the directories to make sure they hit those bootstrap files and you're completely home free. That's how I got VAOS (aka Laravel) to work on even free hosting. The only thing you would need to then worry about is security. Laravel having it's own public folder is very smart as you cannot directly access any critical files by playing with the URL unlike other CMS systems. This of course as you have experienced first hand can be a pretty daunting problem. The other issue that would need to be considered is storage. Laravel runs all it's storage through the /storage/app directory however with Artisan you would need to create a symlink for VAs to have a "File Manager" built into the system. This opens up a separate can of worms for another post. Long story short is that there are many ways to slice the cake. If you want to chat more, hit me up on my Discord server. Would love to talk about unifying the VA in a way which will allow everyone to benefit from our two systems. https://discord.gg/xWFPf4W
  2. As for forums, it can be pretty lucrative to just code them in Laravel. That's what I have been looking at doing at least for some of my stuff.
  3. Hey Nabeel, Salutations from the Virtual Airline Operations System project. How far off are you on this project? Maybe we can make our systems compatible. Just a developer note from us. We have had issues with supporting Laravel on Shared Hosting. That will need to be something to be considered.
×
×
  • Create New...