Evie

Evie

Member Since 2 Years Ago

Experience Points 6,490
Experience Level 2

3,510 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 60
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

16 Sep
4 days ago

Evie started a new conversation Installing And Running Nova On Production

Hi All,

I was trying to install Nova on production for a few days last week with no success...I have googled for instructions with very little information coming back to me! I am following documentation and being met with failed deployments in some cases and when deployments didn't fail I was met with a 403 forbidden error when trying to sign in.

   3522e1e..6a8cce0  master     -> origin/master
error: The following untracked working tree files would be overwritten by merge:
    app/Nova/Resource.php
    app/Nova/User.php
Please move or remove them before you merge.
Aborting

I have installed nova via composer... ran php artisan nova:install added my App\Nova folder (not sure if I was allowed to do this but I couldn't see another way to customise and create relationships with nova user) added migrations and added auth.json and no luck!

Anyone know of a step by step guide for using nova on production as I am getting a little bit impatient at all obstacles I'm meeting here! I am obviously missing some steps along the way!

PLEASE SEND HELP!

11 Sep
1 week ago

Evie left a reply on [RuntimeException] Source Path "./nova" Is Not Found For Package Laravel/nova

ah yes ignore my last response...I'll install via composer! Thanks a million for your advice :)

Evie left a reply on [RuntimeException] Source Path "./nova" Is Not Found For Package Laravel/nova

Thanks for responses....I just checked what was on the server everything was pushed except that nova folder and yip there it is in gitignore as per the installation instructions...so now I'm confused about why adding to gitignore is required? Do I just remove it from gitignore and push to production server or do I need to do something else...it's my first time using nova or any licensed laravel packages for that matter!

10 Sep
1 week ago

Evie started a new conversation [RuntimeException] Source Path "./nova" Is Not Found For Package Laravel/nova

Hi All,

I'm hoping someone can help me out here! I have installed nova and been testing it locally...works perfectly! When I went to deploy it through laravel forge I got this error

[RuntimeException]                                          
Source path "./nova" is not found for package laravel/nova

ssh key is all good, I'm thinking that I might be missing something on my forge script or env file or it might have something to do with nova authorisations? I've been looking around and I can't seem to find the solution.

here is my forge script

cd /home/forge/ninetyfourmagazine.co.uk
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader

php artisan config:cache

echo "" | sudo -S service php7.2-fpm reload

if [ -f artisan ]
then
    php artisan migrate --force
fi

Here is my composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.1.3",
        "ctessier/nova-advanced-image-field": "^1.0",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^6.3",
        "intervention/image": "^2.5",
        "jorenvanhocht/laravel-share": "^3.0",
        "laravel/cashier": "^9.3",
        "laravel/framework": "5.8.*",
        "laravel/nova": "*",
        "laravel/tinker": "^1.0",
        "laravelcollective/html": "^5.8",
        "nesbot/carbon": "^2.17",
        "stripe/stripe-php": "^6.34"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.2",
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "repositories": [
        {
            "type": "path",
            "url": "./nova"
        }
    ],
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

any advice would be much appreciated.

17 Jun
3 months ago

Evie left a reply on Changing Currency On Blade

@DEANSATCH - thanks for taking the time to look at my code reply...I think I tried something similar to that but of course it didn't work as the $ symbol seemed to be actually hard coded as pointed out by @kel_

Evie left a reply on Changing Currency On Blade

@KEL_ - Great catch...thanks a mill :)

Evie left a reply on Changing Currency On Blade

I don't have App\Providers\SparkServiceProvide I have tried that in my App\Providers\AppServiceProvider and it seemed to break the ecommerce side of things completely

Evie started a new conversation Changing Currency On Blade

Hi,

I am using stripe for ecommerce, in my settings I have changed the currency to display GBP instead USD which works great for billing but on the membership page where I am displaying a list of memberships it still displays in dollars.


    <div class="row justify-content-center">
        <div class="col-md-12">
            <div class="card">
               

                  @if(!auth()->user()->subscription('main'))
                    <div class="card-header">Memberships (Your current plan: {{$profile->membership->name}})</div>
                  @else
                      @if(!auth()->user()->subscription('main')->cancelled())
                        <div class="card-header">Memberships (Your are subscribed to {{$profile->membership->name}})</div>
                      @elseif(auth()->user()->subscription('main')->onGracePeriod())
                        <div class="card-header">Memberships (Your have changed your plan from {{$profile->membership->name}} to Free)</div>
                      @elseif(auth()->user()->subscription('main')->ended())
                        <div class="card-header">Memberships (Your current plan: {{$profile->membership->name}}) (it has ENDED)</div>
                      @endif
                  @endif

                <div class="card-body">
                    <ul class="list-group">
                        @foreach($memberships as $membership)
                        <li class="list-group-item clearfix">
                            <div class="pull-left">
                                <h1>{{$membership->name }}</h1>
                                <h1>${{$membership->cost}}</h1>
                                <ul style="padding: 2%;">
                                  @if (!empty($membership->desc_1))<li>{{$membership->desc_1 }}</li> @endif
                                  @if (!empty($membership->desc_2))<li>{{$membership->desc_2 }}</li> @endif
                                  @if (!empty($membership->desc_3))<li>{{$membership->desc_3 }}</li> @endif
                                  @if (!empty($membership->desc_4))<li>{{$membership->desc_4 }}</li> @endif
                                  @if (!empty($membership->desc_5))<li>{{$membership->desc_5 }}</li> @endif
                                  @if (!empty($membership->desc_6))<li>{{$membership->desc_6 }}</li> @endif
                                  @if (!empty($membership->desc_7))<li>{{$membership->desc_7 }}</li> @endif
                                </ul> 

                                @if(!auth()->user()->subscription('main'))

                                  <a href="/membership/{{$membership->slug}}" class="text-capitalize btn btn-primary btn-cta-read rounded-0 btn-lg pull-right">Choose</a>
                                @else
                                  @if(!auth()->user()->subscription('main')->cancelled())
                                      <a href="/membership/{{$membership->slug}}/edit" class="text-capitalize btn btn-primary btn-cta-read rounded-0 btn-lg pull-right">Update Plan</a>
                                  @else
                                    <a href="/membership/{{$membership->slug}}" class="text-capitalize btn btn-primary btn-cta-read rounded-0 btn-lg pull-right">Choose</a>

                                  @endif
                                @endif

                            </div>
                        </li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
    </div>

I have looked into localization for laravel but it only seems to have information about languages I can't seem to find much on currency or at least a solution that works.

Has anyone come across this issue?

24 Apr
2 years ago

Evie left a reply on [Vue Warn]: Error In Created Hook: (found In <CheckoutForm>) TypeError: Cannot Read Property 'email' Of Undefined

@thepassenger Thanks for your insight, I have read the documentation and I am following the laracasts video tutorials as I want to learn from the best but it is my first time integrating stripe payment gateway or any payment or subcription feature into a project ever so it's all pretty new to me. I have also mentioned in my my last two replies that I have rectified this issue:

this.stripe = token.email;

is supposed to be:

this.stripeEmail = token.email;

This did not solve my problem, I know what the warning is telling me but from going through my code and studying other examples that are very similar to mine I cannot find the issue.

Evie left a reply on [Vue Warn]: Error In Created Hook: (found In <CheckoutForm>) TypeError: Cannot Read Property 'email' Of Undefined

@thepassenger hey :) I did post the whole checkoutform, sorry it might not be very clear as I have not yet figured out the code formatting for posting discussions.

I fixed this: this.stripe = token.email;

and replaced it with this:

this.stripeEmail = token.email;

and then I realised when I am configuring my checkout here:

this.stripe = stripeCheckout.configure({

I was using a lowercase s so I fixed this:

this.stripe = StripeCheckout.configure({

and now I am back to my first error:

TypeError: Cannot read property 'email' of undefined

Evie left a reply on [Vue Warn]: Error In Created Hook: (found In <CheckoutForm>) TypeError: Cannot Read Property 'email' Of Undefined

spotted an error in created this.stripe = token.email;

fixed this and now I have this error

[Vue warn]: Error in created hook: (found in ) ReferenceError: StripeCheckout is not defined

checked this a few times and I can't seem to find why I am getting this error.

Any ideas?

Thanks :)

Evie started a new conversation [Vue Warn]: Error In Created Hook: (found In <CheckoutForm>) TypeError: Cannot Read Property 'email' Of Undefined

Hey :)

I am currently working on a subscriptions feature on my project and I am following the laracasts payments series https://laracasts.com/series/how-to-accept-payments-with-stripe

I am using: laravel 5.2 vue 2.0.1

I am recieving the above error when I am trying to load my stripe checkout form, when I remove all references to email t debug the issue, I get a different error:

Uncaught ReferenceError: StripeCheckout is not defined

CheckoutForm.vue

    <option v-for="plan in plans" :value="plan.id">

        {{ plan.name }} &mdash; ${{ plan.price /100 }}
    </option>

Subscribe

{{ status }}

export default {
    props:['plans'],


    data(){

        return {

            stripeEmail: '',
            stripeToken: '',
            plan: 1,
            status: false

        };

    },

created() {

    this.stripe = stripeCheckout.configure({
    key: configs.stripeKey,
    image: "{!! URL::to('/img/icons/passport.128.png') !!}",
    locale: 'auto',
        panelLabel: "Subscribe For",
        token: (token) => {
           this.stripeToken = token.id;
           this.stripe = token.email;
    
    this.$http.post('/subscriptions', this.$data)

   .then(
    response => alert('complete! Thanks for your payment'),
    response => this.status = response.body.status

    )


  }

}); },

methods: {

subscribe(){

    let plan = this.findPlanById(this.plan);

    this.stripe.open({
        name: 'Site Passport',
        description: 'plan.name',
        currency: 'eur',
        amount: plan.price
            
     });

}, findPlanById(id){

            return this.plans.find(plan => plan.id == id);
        }
    }
   

}

snippet from my subscribe.blade.php

var configs = {

csrfToken: "{{ csrf_token() }}",
stripeKey: "{{ config('services.stripe.secret') }}"

}

<checkout-form :plans="{{ $plans  }}"></checkout-form>

package.json { "private": true, "devDependencies": { "gulp": "^3.8.8", "gulp-bower": "0.0.10", "laravel-elixir-vue": "^0.1.8", "laravel-elixir-vueify": "^1.0.6", "vue": "^2.0.1", "vue-resource": "^1.0.3"

}, "dependencies": { "laravel-elixir": "^3.0.0", "bootstrap-sass": "^3.0.0"

},

"browser": { "vue": "vue/dist/vue.common.js" }

}

app.js

require('./bootstrap');

import Vue from 'vue/dist/vue.common.js'

import CheckoutForm from './components/CheckoutForm.vue'

Vue.component('CheckoutForm',CheckoutForm)

new Vue({ el: '#app' });

Has anyone come across this Also anyone have any good tips for debugging vue, errors are quiet vague

Thanks :)

13 Apr
2 years ago

Evie started a new conversation Vuejs2 Installation: Runtime Vs Standalone --[Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. (found In <CheckoutForm>)

Hi,

I have read the documentation https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only

I understand it but I cannot fix this issue and I am unsure of what may be causing it, any help or advice would be greatly appreciated.

My setup is as follows: Laravel 5.2 vue 2.0.1 browserify

Here is my error

[Vue warn]: Failed to mount component: template or render function not defined. (found in )

I have tried a number of solutions with no luck, I will post as much code as possible so that hopefully someone may spot a mistake or a step I may have missed.

bootstrap.js

window.Vue = require('vue'); require('vue-resource');

/**

  • We'll register a HTTP interceptor to attach the "CSRF" header to each of
  • the outgoing requests issued by this application. The CSRF middleware
  • included with Laravel will automatically verify the header's value. */

Vue.http.interceptors.push((request, next) => { request.headers.set('X-CSRF-TOKEN', configs.csrfToken);

next();

});

app.js

require('./bootstrap');

import Vue from 'vue/dist/vue.common.js'

import CheckoutForm from './components/CheckoutForm.vue'

Vue.component('CheckoutForm',CheckoutForm)

new Vue({ el: '#app' });

package.json

{ "private": true, "devDependencies": { "gulp": "^3.8.8", "gulp-bower": "0.0.10", "laravel-elixir-vue": "^0.1.8", "laravel-elixir-vueify": "^1.0.6", "vue": "^2.0.1", "vue-resource": "^1.0.3"

}, "dependencies": { "laravel-elixir": "^3.0.0", "bootstrap-sass": "^3.0.0"

},

"browser": { "vue": "vue/dist/vue.common.js" }

}

gulpfile.js

var elixir = require('laravel-elixir'); elixir(function(mix) { mix.browserify('app.js');

});

Thanks :)

12 Apr
2 years ago

Evie started a new conversation [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined. (found In <CheckoutForm>)

Hi I had to create a new discussion for some reason I wasn't able to reply in my last one.

https://laracasts.com/discuss/channels/vue/vue-warn-vue-warning-vue-is-a-constructor-and-should-be-called-with-the-new-keyword

App.js file

import Vue from 'vue/dist/vue.common.js'

Vue.component('checkout-form', require('./components/CheckoutForm.vue'));

const app = new Vue({ el: '#app' });

Anyone have any idea what may be causing this issue?

Thanks :)

@Hawkleaf Thanks for your response in my earlier discussion, I wasn't left reply for some reason so I started a new one, I tried your solution(above) along with others that used render() and mount() functions but no luck at all :(

Evie left a reply on [Vue Warn]: Vue Warning: Vue Is A Constructor And Should Be Called With The `new` Keyword

Ok So I have this fixed, no idea how I fixed it. I just ran gulp again for good measure and voila..its fixed but now I am having a problem with compiling my template.

Errors I am recieving are related to compiling and mounting the template:

[Vue warn]: Error compiling template:

app.js:2414 [Vue warn]: Failed to mount component: template or render function not defined. (found in )

I updated my app.js

import Vue from 'vue/dist/vue.common.js' import CheckoutForm from './components/CheckoutForm.vue'

Vue.component('checkout-form', require('./components/CheckoutForm.vue'));

new Vue({ el: '#app', components: { CheckoutForm } });

I have looked at rendering & mounting but there are so many different solutions, any advice on best practices would be very much appreciated.

Thanks again :)

Evie started a new conversation [Vue Warn]: Vue Warning: Vue Is A Constructor And Should Be Called With The `new` Keyword

Hey I'm a newbie with Vue2 but I seem to be running into problems a lot with this integration into laravel 5.2 for my current project. So far I've been able to get through most of the issues but I am now stuck on this one at the moment I am following along to this tutorial

https://laracasts.com/series/how-to-accept-payments-with-stripe/episodes/3 as I am setting up payments for a current project.

Here is my package.json: { "private": true, "devDependencies": { "gulp": "^3.8.8", "gulp-bower": "0.0.10", "laravel-elixir-vue": "^0.1.8", "laravel-elixir-vueify": "^1.0.6", "vue": "^2.0.1", "vue-resource": "^1.0.3" }, "dependencies": { "laravel-elixir": "^3.0.0", "bootstrap-sass": "^3.0.0" },

"browser": { "vue": "vue/dist/vue.common.js" } }

app.js

import Vue from 'vue/dist/vue.common.js' import CheckoutForm from './components/CheckoutForm.vue'

new Vue({ el: '#app', components: { CheckoutForm } });

snippet from my gulpfile.js

require('laravel-elixir-vueify');

elixir(function(mix) {
    mix.browserify('app.js');
});

I have searched alot so I am hoping someone might have dealt with this.

and as it it states in the title this is the error: [Vue warn]: Vue Warning: Vue is a constructor and should be called with the new keyword Uncaught TypeError: Cannot read property '_init' of null

Thanks :)