Results 1 to 3 of 3

Thread: Laravel inside Extjs or Extjs inside Laravel ?

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321
    Answers
    5

    Default Laravel inside Extjs or Extjs inside Laravel ?

    I want to use Laravel and Extjs for my app.

    I made some search and now i'm wondering what is the best way.

    //////////////////////////////////////////////////////////////////////////////////////////////////////

    To build the Laravel structure and next the Extjs structure inside Laravel
    (as decribed in these posts
    https://www.sencha.com/forum/showthread.php?308607-Build-ExtJS-app-in-Laravel-structure&p=1137257&viewfull=1#post1137257
    https://stackoverflow.com/questions/52742928/laravel-5-7-and-extjs-5-app-configuration
    )

    myapp_laravel_folder
    -----app (Laravel)
    -----...
    -----public (Laravel)
    ----------app (Extjs)
    ----------...
    ----------ext (Extjs)
    ----------...
    ----------sass (Extjs)
    -----...
    -----vendor (Laravel)

    //////////////////////////////////////////////////////////////////////////////////////////////////////

    OR

    //////////////////////////////////////////////////////////////////////////////////////////////////////

    To build the Extjs structure and next the Laravel structure inside Extjs

    (as answered in this post : https://www.sencha.com/forum/showthread.php?469049
    as described in this tutorial : http://www.extjstips.com/2015/11/03/...cation-part-1/)

    myapp_extjs_folder
    -----app (Extjs)
    -----...
    -----ext (Extjs)
    -----...
    -----laravel (Laravel)
    ----------app (Laravel)
    ----------...
    ----------public (Laravel)
    ----------...
    ----------vendor (Laravel)
    -----...
    -----sass (Extjs)

    //////////////////////////////////////////////////////////////////////////////////////////////////////

    Because the Extjs part is the gateway to the website, i think the second way is better.

    What do you think about this ?

  2. #2

    Default

    Hi,

    Both options have advantages and disadvantages. I would recommend neither, use a third.

    1 repo and folder for Lavarel
    1 repo and folder for ExtJS

    You can maintain both separately each with it's repo, easier for development and if you have two different people or groups for back and front it's better.
    You can have Lavarel only in a server and put ExtJS in Cordova, NWJS, Electron...
    You can build ExtJS and put it on a folder in Lavarel and serve from the same server

    I usually do the server with API, test it run it and then start UI. You make your own API to consume and you version them, so once it's running you can start building UI and now you just need to consume your API.

    Bottom line, the three options are good, what you really need to do is know how are you going to maintain your code, who is it going to do it, if you need different builds, maybe only offer API and some customers can make their own integration... Then choose and commit. If you then have trouble you can easily separate code or reintegrate in one. With git you can separate commits from a folder or merge from two repos.

    Personally after trying the ones you said I went for the third.

    Good Luck!

  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321
    Answers
    5

    Default

    Quote Originally Posted by ogimenezb View Post
    I would recommend neither, use a third.

    1 repo and folder for Lavarel
    1 repo and folder for ExtJS
    I didn't think about this third solution, and it seems better as you explain.
    I will try it and certainly adopt it !

Similar Threads

  1. Configure extjs app to load from laravel
    By josei in forum Ext JS 6.x Q&A
    Replies: 8
    Last Post: 18 Oct 2018, 3:58 AM
  2. Build ExtJS app in Laravel structure
    By miikes in forum Ext 5: Q&A
    Replies: 5
    Last Post: 20 Jun 2016, 4:39 AM
  3. Replies: 6
    Last Post: 9 Mar 2016, 12:25 PM
  4. Laravel 4 direct service provider
    By predator in forum Ext.Direct
    Replies: 2
    Last Post: 18 Dec 2014, 2:30 AM
  5. Replies: 2
    Last Post: 20 Sep 2014, 1:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •