heykatieben

Experience

1,110

0 Best Reply Awards

  • Member Since 11 Months Ago
  • 3 Lessons Completed
  • 1 Favorite

12th October, 2018

heykatieben left a reply on Logout (site Data Getting Cleared) Right After Login, If User Not A Developer? • 3 days ago

Thanks, Talinon. I found it, in my case it was simple and something I'd done: the pages were using vue components, and those vue components were connecting with controllers that were set to 'dev' auth. Oops! I did also, in the process, change several things about the session data, though I'm pretty sure the actual problem was that simple.

heykatieben started a new conversation Logout (site Data Getting Cleared) Right After Login, If User Not A Developer? • 3 days ago

Hi hi - in Spark, if a user is not a developer (listed in the Spark Service Provider), they are getting logged out as soon as they log in. Any idea why or how I can debug? Thanks.

heykatieben left a reply on Adding Registration Fields For Teams • 3 days ago

Update: I finally got this by doing the above, and also directly updating spark/src/interactions/Auth as follows, below. I tried swapping the function but it didn't work for some reason. I'll update this if I ever figure that out.

public function configureTeamForNewUser(RegisterRequest $request, $user)
    {
        if ($invitation = $request->invitation()) {
            Spark::interact(AddTeamMember::class, [$invitation->team, $user, $invitation->role]);

            self::$team = $invitation->team;

            $invitation->delete();
        } elseif (Spark::onlyTeamPlans()) {
            self::$team = Spark::interact(CreateTeam::class, [
        $user, ['name' => $request->team,
        'slug' => $request->team_slug,
        //my extra data here
            ]);
        } 

        $user->currentTeam();
    }

heykatieben left a reply on Adding Registration Fields For Teams • 3 days ago

Hi there, thanks for this hint, I'm trying to do this now.

I'm still stuck on this. Is this everything you did? Did you update this for the latest Spark?

18th September, 2018

heykatieben left a reply on Axios.get Blocks Page Load? (newbie Question) • 4 weeks ago

Here's my code if it helps:

created() { var self = this; this.checkWorklog(); },

methods: {

async checkWorklog() {
        axios.get('/api/has_worklog')
            .then(response => {
        if(response.data) { 
        this.getWorklog();
        }
        else {
        this.getScheduled();
        }
            });
    },  

async getWorklog() {
        axios.get('/api/current_worklog')
            .then(response => { 
                this.worklog = response.data;
        this.hasWorklog = true;
        this.startTimer();
            });
    },

heykatieben started a new conversation Axios.get Blocks Page Load? (newbie Question) • 4 weeks ago

Hi - this is one of those questions where I don't know exactly what I don't know / what to Google. I'm doing an axios.get call, and you can't interact with the page (what php rendered) until the axios.get call returns / does its thing. I'm wanting to be able to interact with the page before javascript finishes, as the javascript is doing something in the header that I don't necessary need before taking an action on the rest of the page.

I think I'm looking for some kind of asynchronous something, but - what? What am I missing?

Thanks!

13th September, 2018

heykatieben started a new conversation Use Nova With Spark? • 1 month ago

Has anyone used Nova with Spark? I'm not clear on exactly how/if they'd work together since they both have admin panels. Thoughts?

4th September, 2018

heykatieben started a new conversation Vue Component Causing Auto Logout? Session Variable Issue Maybe? • 1 month ago

My vue component is causing an auto logout, only when the user is not an admin specified in the SparkServiceProvider. So what is different about those users?

The CRUD operations my vue component uses have the web middleware, and have been given the user prop. Everything works as expected when logged in as a Spark admin, and when logged in as a non-admin, the session expires as soon as I hit the page with the Vue component.

I tried this, this didn't work: https://github.com/rairlie/laravel-locking-session. Any other ideas?

Thanks!

29th August, 2018

heykatieben left a reply on "Create A Team" Page Blank? • 1 month ago

Solved: it was caused by Spark::noAdditionalTeams();. I had expected this to limit users to one team, instead it apparently meant that nobody could make any new teams at all.

heykatieben started a new conversation "Create A Team" Page Blank? • 1 month ago

Hi all - I just installed a fresh new version of Laravel Spark, and the 'Create a Team' page shows up blank, with no errors. I've tried installing with/without team billing. Any ideas? I'll update as I get clues as well. Thanks!

13th August, 2018

heykatieben started a new conversation Deep Linking To Admin Sections? • 2 months ago

Does anyone know how to deep link to sections - say, the upgrade section? /settings#/payment-method

28th June, 2018

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

Ah, gotcha. I'll take my chances for now & report back when I notice something gone wrong.

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

It's a breaking change? I don't quite understand.

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

^^ I think it needs to be added to Laravel that way due to some kind of incompatibility - I think I ran across that somewhere in my googling, not fully sure. Anyway this hasn't caused problems for me yet, will report back if it does!

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

!!! YAY! Got it! :) Thanks @burlresearch for the step closer!

So once I knew for sure it wasn't included, I added this to composer:

"nesbot/carbon": "1.29.0 as 1.25.0"

(src: https://github.com/laravel/framework/issues/24335)

Then this works in my Blade template:

\Carbon\CarbonInterval::seconds($seconds)->cascade()->forHumans()

Yay! :)

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

Yeah, that's what I ended up with although it's not really what I wanted - I was hoping for the cleaner formatting of forHumans. I could write it though hoping someone knows why this doesn't work first...

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

Thanks, that's not what I'm wanting though. That displays time of day in a certain way - I'm trying to display a time interval. Like 4864 seconds = x hours, y minutes, z seconds.

heykatieben left a reply on CarbonInterval Cascade For Humans Not Working? • 3 months ago

... I suspect cascade isn't implemented in Laravel's Carbon, I'm not finding it when I grep. Not sure why it's not returning an error.

heykatieben started a new conversation CarbonInterval Cascade For Humans Not Working? • 3 months ago

I'm trying to do this:

CarbonInterval::seconds($seconds)->cascade()->forHumans();

This isn't working for whatever reason - it just displays $seconds, unformatted (i.e., 4948 seconds). Any ideas?

31st March, 2018

heykatieben left a reply on Adding CMS Features To Laravel Spark (Voyager, Backpack?) • 6 months ago

Has anyone done this recently? I tried and the composer install runs into issues - I'm not sure what I'm looking at to understand it.

28th March, 2018

heykatieben started a new conversation How Can We Legally Share (git, Sell, Etc) Anything Built On Laravel Spark? • 6 months ago

Hi team - is anyone clear on how this would have to work? Since Laravel Spark is copyrighted, how could I either sell or share (git, etc) any code built on it? My code isn't clearly separated from Spark the way, say, a WordPress plugin would be separated from WordPress, since there's the /vendor directory in /views that I'm updating, etc. Thoughts?

21st March, 2018

heykatieben left a reply on Using Migrations Without Versioning? • 6 months ago

Oops, I meant that I have one migration file per model. Wouldn't migrate:refresh blow away my current data?

heykatieben started a new conversation Using Migrations Without Versioning? • 6 months ago

This might be a silly question (full disclosure: I'm a Laranewbie :).

Anyway: I'd like to use migrations without versioning. I love the versioning for a live project, though when first developing a project it seems nicer to me to be able to see/edit everything on a database in one file. Is there a way to do this that I'm missing, to be able to edit migrations / apply them without blowing away data?

My current solution is to export data, refresh migrations, import data. Is there a better way?

18th March, 2018

heykatieben left a reply on Switch To Zurb/Foundation? • 6 months ago

... My current solution is to use Bootstrap 4 on administrativey looking views, and Zurb on the rest. Probably not a good solution for most though I think will work best for me since the service people are paying for is more like a game. :)

27th February, 2018

heykatieben left a reply on Switch To Zurb/Foundation? • 7 months ago

The switch to Zurb was really easy on virgin Laravel. But I ended up deciding I wanted the app structure of Spark, so went back to that, and now I'm back to Bootstrap, missing Zurb again. Goodness, I'm so torn. Would love to keep this thread open & hear if others have tried Zurb on Spark.

22nd February, 2018

heykatieben left a reply on Switch To Zurb/Foundation? • 7 months ago

Just did this for plain Laravel + auth & it worked well! I'm just letting go of Spark. Thanks for the tip! That's much cleaner than what I found / tried first.

21st February, 2018

heykatieben left a reply on Switch To Zurb/Foundation? • 7 months ago

Cool, okay. Even for Spark, you think?

heykatieben started a new conversation Switch To Zurb/Foundation? • 7 months ago

Has anyone successfully switched to Zurb/Foundation on Laravel Spark? Any tips, or is this ridiculous / just way too much Bootstrap markup going on in Spark?

16th December, 2017

heykatieben left a reply on Dynamically Display Updated User Stats? • 9 months ago

zomg I figured it out!!!

Bus.$emit('updateUser');

heykatieben started a new conversation Dynamically Display Updated User Stats? • 9 months ago

Hi all - I think this is probably simple though I don't know what I'm doing. :)

I added some custom user stats to <spark-navbar>, that display using vue, like this: @{{ user.money }})

How do I get that display to update when the user object is updated? Things happen in new custom vue components outside this one, and I want to update the user object here so these values will update. How do I do that?

I've tried adding user to mounted() in spark-navbar like this:

Vue.component('spark-navbar', { mixins: [base],

mounted() {
    console.log(Spark.state.user);
}

});

Thanks!

27th November, 2017

heykatieben left a reply on Updates To The Mobile App Framework Discussion • 10 months ago

How's Phonegap/Cordova these days? I used it years ago and thought it was neat though noticeably slower.

heykatieben started a new conversation Updates To The Mobile App Framework Discussion • 10 months ago

Hi all - I'm working out what I'm going to use for mobile app development. Something like Weex? React Native and try to get Laravel (Spark) using React? Just develop in both React and Vue with Laravel as-is + React Native?

So here's another discussion of mobile for November 2017 - what are you all using now? New thoughts/ideas?

26th October, 2017

heykatieben left a reply on "No Such File Or Directory" When Running Spark? • 11 months ago

Zomg finally figured it out, it was line endings in the spark executable. dos2unix fixed it:

https://stackoverflow.com/questions/531382/adding-a-shebang-causes-no-such-file-or-directory-error-when-running-my-python-s

heykatieben started a new conversation "No Such File Or Directory" When Running Spark? • 11 months ago

When I try to run spark, even though it's in my path variable and seems to be running (whereis spark returns the location), I get this error:

: No such file or directory

Any ideas?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.