Jump to content

Recommended Posts

Hi,
I have an app that is in development phase created using php and javascript. I have a couple of plugins - dataTable and exportTable added in the web app. The app has multiple tabs. So far, I have a fairly simple login page that is not even connected to the database. 

I am thinking about using Laravel framework and build the app on top of it. Will I have to just configure the index.php file in Laravel's public directory and drop all the used files in public directory or I will have to work with each files in Views, Controller, and public? How hard or difficult would that be?

Thanks

  • 2 weeks later...

I have recently been learning Laravel and there is a large change of structure from using a pure PHP app to using the Laravel framework as it's intended.  So the answer is (I think) there will be quite a bit of work to change your app over to using Laravel.  

 

Is it worth it?  Difficult to tell, frameworks offer a lot of features, but if you don't need or use them then they can be overkill.

 

The separation of the views from the controllers and models means that gone are the monolithic pages which handle the display and processing of data.  The end result is a more focused set of scripts which help in development, you know if you want to change the display, you may only have to alter the view.  This can be a bit more of a pain if your used to 'all my processing for page x is in file x', but helps in other ways.

I am thinking about using Laravel framework and build the app on top of it. Will I have to just configure the index.php file in Laravel's public directory and drop all the used files in public directory or I will have to work with each files in Views, Controller, and public? How hard or difficult would that be?

 

Your front controller and assets files (images, JS, CSS) belong in your public directory. That's about it. Just shoving everything into the public directory doesn't seem like a good fit for anything. You could certainly attempt to integrate your existing app into Laravel, though that depends largely on how large the app is, how far along it is, and how it is written. The more your concerns are tangled, the harder it's going to be. If the app is relatively small or is in the early stages of development, and if it's reasonably written, integration shouldn't be too large a hurdle.

You could certainly attempt to integrate your existing app into Laravel, though that depends largely on how large the app is, how far along it is, and how it is written. The more your concerns are tangled, the harder it's going to be. If the app is relatively small or is in the early stages of development, and if it's reasonably written, integration shouldn't be too large a hurdle.

Surely the whole point of moving to Laravel is to integrate with the framework!  If OP isn't going to use even parts of the functionality, then why bother with a framework in the first place?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.