gathuku

gathuku

Member Since 1 Year Ago

Thika

Experience Points
2,570
Total
Experience

2,430 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
14
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.

Level 1
2,570 XP
Oct
29
1 month ago
Activity icon

Replied to Laravel Image With Javascript

@sinnbeck Still on this context. I have a nested object where in my data each product has many charges which belong to a charge. I have been able to destruct the object with javascript but now I have a problem with printing the values.

                 <div class="">
                   <h5>Charges</h5>
                   <div id="chargeDiv"> ${
                     
                     data.charges.forEach(chargeObj => {
                      const { name , amount } = chargeObj.charge
                       console.log(name)

                       
                       })
                   }</div>
                 </div>

am able to log the value of name and amount, But on interface i get undefined.

Oct
26
1 month ago
Activity icon

Replied to Laravel Image With Javascript

@sinnbeck It worked thanks.

Activity icon

Replied to Laravel Image With Javascript

No i have it in a .js file name

Activity icon

Replied to Laravel Image With Javascript

No i have it in a .js file name

Activity icon

Started a new Conversation Laravel Image With Javascript

I have a javascript html string that is displaying on my site, but it's unable to resolve a current asset URL to fetch image in laravel.

item: data=>`
             <div class="product-image-div col-md-3">
             <img class="product-image" src="{{asset('uploads/loan_product/${data.image}')}}" alt="">

             </div>

`

When I inspect the html element I get the following.

<div class="product-image-div col-md-3">
             <img class="product-image" src="{{asset('uploads/loan_product/product_image_5da229efe17d8.png')}}" alt="">

             </div>

Please help.

Sep
03
3 months ago
Activity icon

Replied to Vue With Laravel

{data: "<!DOCTYPE html>↵↵<html lang="en">↵<head>↵  <meta c…pp.js" charset="utf-8"></script>↵</body>↵</html>↵", status: 200, statusText: "OK", headers: {…}, config: {…}, …}
config: {adapter: ƒ, transformRequest: {…}, transformResponse: {…}, timeout: 0, xsrfCookieName: "XSRF-TOKEN", …}
data: "<!DOCTYPE html>↵↵<html lang="en">↵<head>↵  <meta c"
headers: {date: "Tue, 03 Sep 2019 07:54:28 GMT", content-encoding: "gzip", server: "Apache/2.4.29 (Ubuntu)", vary: "Accept-Encoding", content-type: "text/html; charset=UTF-8", …}
request: XMLHttpRequest {onreadystatechange: ƒ, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
status: 200
statusText: "OK"
__proto__: Object
Activity icon

Replied to Vue With Laravel

How can i be able to fix this please?

Activity icon

Replied to Vue With Laravel

{data: "<!DOCTYPE html>↵↵<html lang="en">↵<head>↵  <meta c…pp.js" charset="utf-8"></script>↵</body>↵</html>↵", status: 200, statusText: "OK", headers: {…}, config: {…}, …}

Something like this.

Activity icon

Started a new Conversation Vue With Laravel

Hi devs, my vue laravel works well locally but not in production.

The endpoint am loading data from with axios returns html responce, but locally return data.

Jul
25
4 months ago
Activity icon

Started a new Conversation API Request With Guzzle

Am getting this error while trying to make an api request with Guzzle.

{"fault":{"faultstring":"Header {0} contains non ascii character {1}","detail":{"errorcode":"protocol.http.HeaderNameWit (truncated...)
Jun
28
5 months ago
Activity icon

Replied to Vue Components

@MAVERICKCHAN - Let me give it a try

Jun
27
5 months ago
Activity icon

Started a new Conversation Vue Components

Am consuming an Api with a Vue Cli application, I have a Login Component which return authentication token on successful Login , How can i be able to fetch the token from Login component data to my main.js so that i can set it in axios request authorization headers .

import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)
axios.defaults.baseURL = 'http://127.0.0.1:3000/v1/'
axios.defaults.headers.common = {'Authorization': `Bearer ${Token}`}

Vue.use(VueRouter);

const router=new VueRouter({
  routes,
  mode:'history',
});
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,

}).$mount('#app')