mykelcodex

mykelcodex

Web Developer at Twingle Inc

Member Since 2 Years Ago

Lagos

Experience Points
10,340
Total
Experience

4,660 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
77
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 3
10,340 XP
May
03
4 months ago
Activity icon

Replied to Access Value From A Data

Thanks @michaloravec , i have tried that as well....it didn't work, i was getting an error

Activity icon

Started a new Conversation Access Value From A Data

I have this data,

array:1 [▼
  "response" => "{"id":265342816,"txRef":"IOL03gJT","orderRef":"URF_1588508322568_3915635",,"redirectUrl":"https://5bivepayment","device_fingerprint":"N/A","settlement_token":null,"cycle":"one-time",,"charged_amount":10,"appfee":0.14,"merchantfee":0,"merchantbearsfee":1,"chargeResponseCode":"02","raveRef":"RV31588508322324A954475448","chargeResponseMessage":"Pending, Validation","","currency":"NGN","IP":"::ffff:127.0.0.1","narration":"CARD Transaction ","status":"failed","modalauditid":"9f365cbecebc63875b05895cf454eec0","vbvrespmessage":"FAILURE-INSUFFICIENT_FUNDS (Not sufficient funds)","authurl","vbvrespcode":"RR-51","acctvalrespmsg":null,"acctvalrespcode":"012412268231","paymentType":"card","paymentPlan":3249,"paymentPage":null,"paymentId":"6327543","fraud_status":"ok","charge_type":"normal","is_live":0,"retry_attempt":null,"getpaidBatchId":null,"createdAt":"2020-05-03T12:18:42.000Z","updatedAt":"2020-05-03T12:22:10.000Z","deletedAt":null,"customerId":200466612,"AccountId":75511,"chargeToken":{"user_token":"b0739",}} ◀"

How can i access id, i have tried this $data['response']['id'], it didn't work. I tried converting it using json_decode(). It didn't work as well.

Activity icon

Replied to Php Artisan Queue:failed-table Not Working

It obvious that you already have Laravel CreateFailedJobsTable dedicated class name in your project, Search your project to find where the class name is used.

May
01
4 months ago
Activity icon

Replied to Pass Data To Frontend

thanks @zylwin , i mean to my vue

Activity icon

Started a new Conversation Pass Data To Frontend

Please, how can i pass the response below to my frontend, here is an iframe that displays the response from another route.

https://ibb.co/ydwrjXr

Thanks

Apr
04
5 months ago
Activity icon

Replied to Response Returning <pre>

@parthjani7 , thanks.. i have not given a try

Activity icon

Replied to Response Returning <pre>

Yes @snapey , trying to send it to from end

Activity icon

Replied to Response Returning <pre>

hi @snapey ,

this is the dd(response)

array:3 [
  "status" => "success"
  "message" => "V-COMP"
  "data" => array:42 [
    "id" => 
    "txRef" => ""
    "orderRef" => ""
    "flwRef" => "FLW228868228"
    "redirectUrl" => ""
    "device_fingerprint" => "N/A"
    "settlement_token" => null
    "cycle" => "one-time"
    "amount" => 10
    "charged_amount" => 10
    "appfee" => 0.14
    "merchantfee" => 0
    "merchantbearsfee" => 1
    "chargeResponseCode" => "02"
    "raveRef" => ""
    "chargeResponseMessage" => "Pending, Validation"
    "authModelUsed" => ""
    "currency" => ""
    "IP" => "::ffff:127.0.0.1"
    "narration" => "CARD Transaction "
    "status" => "success-pending-validation"
    "modalauditid" => "fhdjhjdffdj"
    "vbvrespmessage" => "N/A"
    "authurl" => "jhdvjvjdvjhdvjhd"
    "vbvrespcode" => "N/A"
    "acctvalrespmsg" => null
    "acctvalrespcode" => null
    "paymentType" => "card"
    "paymentPlan" => null
    "paymentPage" => null
    "paymentId" => "5400666666734764376247247750"
    "fraud_status" => "ok"
    "charge_type" => "normal"
    "is_live" => 0
    "retry_attempt" => null
    "getpaidBatchId" => null
    "createdAt" => "2020-04-04T16:24:38.000Z"
    "updatedAt" => "2020-04-04T16:24:40.000Z"
    "deletedAt" => null
    "customerId" => 193027524
    "AccountId" => 22773
    "customercandosubsequentnoauth" => false
  ]
]
Activity icon

Started a new Conversation Response Returning <pre>

Hi guys,

I am using this http client called Zttp but i keep getting <pre> as response but when i dd($response->json()) the response shows but when i return response()->($response->json(), 200) i get <pre>

Below is what it looks like

$response = Zttp::withHeaders(['Content-Type' => 'application/json'])->post($url, $postdata);
 return response()->json($response->json(), 200);

Please help.

Mar
31
5 months ago
Activity icon

Replied to Use Vue In Laravel Blade

@ksandar Thanks man

Mar
30
5 months ago
Activity icon

Replied to Use Vue In Laravel Blade

@ksandar @teos_97 @usmanbasharmal , Thanks guys

check https://ibb.co/42HyVxC

I have the content section and the sidebar section, all wrapped in a container. The <router-view></router-view> display the content of the components. How do i display my login/register components? I tried it, but it displayed in the <router-view/> showing the sidebar which i don't want. Any help will be appreciated

Activity icon

Replied to Use Vue In Laravel Blade

one more thing @ksandar

How do i display guest route like signin, signup because everything is displaying in

Lets say i have something like this

<body class="font-sans">
      <div id="app">
          <div>
            <div class="container">
              <div class="sidebar">
                //sidebar
              </div>
              <router-view></router-view>
            </div>
         </div>
       </div>
   </div>
   </body>
Activity icon

Replied to Use Vue In Laravel Blade

Thanks man @ksandar

Activity icon

Started a new Conversation Use Vue In Laravel Blade

Hi guys,

I configured my laravel app as an spa using vuejs and vue router. How can i use vue in app.blade.php because i need to toogle my navbar on small screen. I have exhausted all options. Check below

app.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Text</title>
	<link rel="stylesheet" href="{{ asset('css/app.css') }}">
    </head>
    <body class="font-sans">
      <div id="app">
          <div>
            <div v-show="message"></div>
         </div>
        </div>
        <router-view></router-view>
   </div>
    <script src="{{ asset('js/app.js') }}" async defer></script>
    <script>
      var app = new Vue({
        el: '#app',
        data: {
          message: 'You loaded this page on ' + new Date().toLocaleString()
        }
      })
    </script>
    </body>
</html>

` app.js

import Vue from 'vue';
import VueRouter from 'vue-router'

import routes from './routes'

window.Vue = require('vue');
Vue.use(VueRouter)

const app = new Vue({
    el: '#app',
    router: new VueRouter(routes)
});

i get this in my console.log

(index):21 Uncaught ReferenceError: Vue is not defined
    at (index):21
(anonymous) 

 [Vue warn]: Property or method "message" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in <Root>)

Please what am i doing wrong?