-
Notifications
You must be signed in to change notification settings - Fork 180
Is the idea to eschew blade templates? #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You're right. This repo shows how to completely replace Laravel's frontend with Vue. You could change the build process and write your Vue frontent to https://github.com/yyx990803/laravel-vue-cli-3/blob/master/frontend/vue.config.js#L13-L15 And don't forget to apply the |
Hi, any tips on how I can add Update: Silly me. Just had to add it to public/index.html. |
None. We couldn't figure out a way around it without greatly altering our authentication so we didn't upgrade to vue-cli 3. |
After banging my head against it the whole of yesterday and today, I got figured out how to still use it with a blade file. This is more a hack/workaround until it is better supported, but works at my end. The goal is to still use my index.blade.html which has the So without further ado: We need to create 2 new files:
helper.php:
after we have to also add our new "helpers.php" to
with that out of the way, in your
with
you can do the same with your css files, it will then load app.js for it, since VERY IMPORTANT one detailed which took me forever: if you are coming from Almost done. package.json:
pay attention to hot on the build line, it looks almost the same then the original line. now create
now
you can also edit
And with this it should now be possible to use |
I ended up modifying laravel-vue-cli-3 example project like this
|
what is whos package.json file did you modify? Vue's or Laravel's? EDIT never got mine working.. thank you by the way 😄 |
it's a text file we created, no extension
yes
because:
vue. laravel is php
sorry, still works here |
GREAT.. got it working finally .. thank you sooo much 💋 I love you man.. |
anytime! |
I changed laravel-mix to laravel-vue-cli-3 in order to solver hot loading issue, but seems complicated here too. Plus I need to keep |
@JoeSchr Did you mean index.blade.php? I kinda want to set this up, are you still using your imp? Looks cool. Laravel-mix is just not working for us on a real app right now w/ vue. |
sorry, I don't know anymore. I switched away from laravel/php, didn't get
the performance I hoped
…On Tue, Oct 6, 2020 at 5:43 AM beams ***@***.***> wrote:
@JoeSchr <https://github.com/JoeSchr> Did you mean index.blade.php?
I kinda want to set this up, are you still using your imp? Looks cool.
Laravel-mix is just not working for us on a real app right now w/ vue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6WSHTKNRS7N7S25CWTC73SJKG4JANCNFSM4FUIGZ7A>
.
|
We have a landing page that is a blade template(
landing.blade.php
) so we can use Laravel directives to handle authentication. Once authorized we send the user to an authorized page(spa.blade.php
) with a Laravel$user
object being passed in as a prop to the top level Vue component. Working with the instructions on this repo's README I got the feeling that this is not the workflow Evan You had in mind.Should we instead switch to only using API calls to handle authentication?
The text was updated successfully, but these errors were encountered: