No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Laravel + Quasar 1.0 with Quasar CLI

    Starter Kits
    17
    29
    7550
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • reynerhl
      reynerhl last edited by

      I suppose that the original question by @lucasfernog is not answered yet. Many workarounds are provided, because other users stands that having separated projects seems to be a better approach. What if we want to perform tests using laravel-dusk ? Having separated projects will make it work ? Thanks in advance for your time.

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        @reynerhl it was asked many times here if you use search function, you’ll probably find some threads where peeps did manage to use laravel+quasar on same project folder. i myself have tried it, cloning from one of the thread posters here https://github.com/metalsadman/quasar-laravel. it’s on v1-beta, the components are still in old version tho, so check out quasar upgrade guide, and laravel docs respectively since it’s still on 5.7. about tests, no idea about it.

        reynerhl 1 Reply Last reply Reply Quote 0
        • s.molinari
          s.molinari last edited by

          As I see it, and I’ll admit, I’m not an expert, but if you are using Quasar CLI, that means you are building a pure JS frontend app, or rather should be. So, this means nothing is being built using Blade, i.e. no server side rendering via PHP, which means the PHP side is only for an API.

          And with the CLI, you’ll need Node anyway, so to test the frontend code, you need Node based testing tools (see the testing App Extension). I’d suggest avoiding using Dusk for testing the front-end code. And I’d suggest to use other PHP testing methodologies specifically for testing the API code, which you would be writing in Laraval/ PHP.

          Or do like so many other devs have and drop PHP and learn Node outright. I did, and I’ve never looked back. 😁

          Scott

          digiproduct 1 Reply Last reply Reply Quote 1
          • digiproduct
            digiproduct @s.molinari last edited by

            @s-molinari said in Laravel + Quasar 1.0 with Quasar CLI:

            Or do like so many other devs have and drop PHP and learn Node outright. I did, and I’ve never looked back. 😁

            Scott

            I’ve just decided to do just that too … I was planning to use Laravel as my backend API … but I’ve been looking at LoopBack.io and considering using that instead and the whole API creation/authorisation /integration seems so much simpler using LoopBack that I’m now planning on using that instead.

            qyloxe 1 Reply Last reply Reply Quote 0
            • qyloxe
              qyloxe @digiproduct last edited by

              @digiproduct here are quite mind boggling benchmarks about backend API frameworks:

              https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=update

              in “data updates” test, laravel is placed at 186 position 🙂

              let the backend frameworks wars begin ha ha ha (evil laugh)

              digiproduct 1 Reply Last reply Reply Quote 0
              • digiproduct
                digiproduct @qyloxe last edited by

                @qyloxe I’d never heard of most of those frameworks … and I’ve got no idea how to interpret that data.

                I’ll just try and see what happens

                1 Reply Last reply Reply Quote 0
                • reynerhl
                  reynerhl last edited by reynerhl

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • reynerhl
                    reynerhl @metalsadman last edited by

                    @metalsadman thanks so much for upgrading your example. Questions:
                    1.- After launch quasar build, what folder should we use as entry point for our web server ? Here we are trying to keep both project togeter and maybe due to Laravel Views now support html as a file type in v5.8.18 ( https://github.com/laravel/framework/pull/28541 ) we can take advantages from this.

                    2.- In your quasar.conf filee, after detecting we are in prod env, can you please explain why do you use this lines:

                    cfg.plugins.push(new CopyWebpackPlugin([{
                                from: path.resolve(__dirname, 'public_files'),
                                to: ''
                              }]))
                    

                    I know this is not the best example, and again, frontend app (and repo) should be separated from API, but I guess this is the main point for the thread.

                    1 Reply Last reply Reply Quote 0
                    • metalsadman
                      metalsadman last edited by

                      @reynerhl

                      1. not entirely sure bout this but probably related to number 2. just tested this using the api.
                      2. it’s the target public folder using symlink iirc, where your quasar index.html resides.

                      i’ll have to test it more soon, when i’m sort of free.

                      1 Reply Last reply Reply Quote 0
                      • C
                        chankl78 last edited by

                        Finally, I able to create a workable dockerfile for development machine. Took quite a long time.

                        My Humble Dockerfile

                        1 Reply Last reply Reply Quote 0
                        • M
                          modemb last edited by

                          I am trying to do the same thing, if anyone can help, it will be welcome https://github.com/modemb/larasar

                          1 Reply Last reply Reply Quote 0
                          • Castris
                            Castris @stefanvh last edited by

                            @stefanvh A lot of thanks

                            1 Reply Last reply Reply Quote 0
                            • O
                              olidev last edited by

                              I have used Laravel Vue JS before for creating a single page application. What I am wondering is, If I am using Quasar, instead of directly using vue js, then how can i create an SPA?

                              metalsadman 1 Reply Last reply Reply Quote 0
                              • metalsadman
                                metalsadman @olidev last edited by metalsadman

                                @olidev did you mean quasar cli + laravel see https://github.com/metalsadman/quasar-laravel? else you can just use quasar as umd… see the docs for quasar flavors.

                                1 Reply Last reply Reply Quote -1
                                • A
                                  Aziz Khan @lucasfernog last edited by

                                  @lucasfernog you already have what u require…😀

                                  1 Reply Last reply Reply Quote -1
                                  • Hawkeye64
                                    Hawkeye64 last edited by

                                    @Aziz-Khan @lucasfernog picked up the ball and ran so hard, he’s on the core team now 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      modemb last edited by

                                      https://github.com/modemb/larasar

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        modemb @syflex last edited by

                                        @syflex https://github.com/modemb/larasar

                                        1 Reply Last reply Reply Quote 0
                                        • I
                                          ilabutk last edited by

                                          https://github.com/metalsadman/quasar-laravel

                                          Hope more people contribute to this one. Laravel 6 (passport support).

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post