mturner20

mturner20

Member Since 2 Years Ago

Experience Points 2,340
Experience Level 1

2,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 21
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.

18 Apr
2 years ago

mturner20 left a reply on Carbon Timeformat

that works!! Instead of getting the current time how would I grab the time they are entering in the form? to time string??

mturner20 started a new conversation Carbon Timeformat

I am using angular js to grab the time the user inputs into a form. And it returns weird like 2017-04-18T16:07:57Z. Now I am trying to use Carbon to put it in the right format of 16:07:57.

Here is my method of saving/posting the form

public function store(Request $request) {

    $event = new Event();
    $event->event_title = $request->input('event_title');
    $event->event_description = $request->input('event_description');
    $event->event_location = $request->input('event_location');
    $event->event_date = $request->input('event_date');

    $event->event_time = Carbon::now();
    $event->save();

    //return response()->json(['event'=>$event, 'user'=>$user], 201);
    return 'Event record successfully created';
}
14 Apr
2 years ago

mturner20 started a new conversation Laravel DB Won;t On Ionic App In Forward App

Forward gives you a link to view on any device. I am getting the following errors;

Failed to load resource: net::ERR_CONNECTION_REFUSED

ionic.bundle.js:25005 Mixed Content: The page at 'https://thislink/events' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'https://thislink/events'. This request has been blocked; the content must be served over HTTPS.

I need help. I am not sure what I should add to fix this error

30 Jan
2 years ago

mturner20 left a reply on Live Search AJAX Without JQUERY

OK i was following it and it didnt work

(function() {
    "use strict";

    var request; 
    var content = document.querySelector("#users");
    var info = document.querySelector("#info");


    function showUsers() {

        request = createRequest();//goes into utils.js to create the subway car
        if (request==null) {
            alert("You are using a outdated browser");
            return;
        }
        var url = "http://localhost:8888/fullstack/public/search";
        //no external procedural php file.
        request.onreadystatechange=stateChangedList;
        request.open("GET", url, true);
        request.send(null);

    }

    function stateChangedList() {
        if(request.readyState===4 || request.readyState=="complete"){
            createList(request);
        }
    }

    function createList(request){
        var jsondoc = JSON.parse(request.responseText);
         //console.log(jsondoc);
        //console.log(jsondoc[0].name);
        for (var i=0; i < jsondoc.length; i++) {
            content.innerHTML += '<li><a href="#" data-charid="'+jsondoc[i].id+'">'+jsondoc[i].name+' </a></li>';
        }
        
        var anchors = content.querySelectorAll("a");
        
        for (var i=0; i < anchors.length; i++) {
            anchors[i].addEventListener("click",charInfo,false);
        }
    }

    function charInfo(e) {
        console.log(e.currentTarget.dataset.charid);

        e.preventDefault();
        
        var id = e.currentTarget.dataset.charid;

        request = createRequest();

        if (request==null) {
            alert("You are using a outdated browser");
            return;
        }

        var url = "http://localhost:8888/fullstack/public/search"+id+"";
        request.onreadystatechange=stateChangedInfo;//function below
        request.open("GET", url, true);
        request.send(null);
    }

    function stateChangedInfo() {
        if(request.readyState===4 || request.readyState=="complete"){
            showInfo(request);
    }
    
    }

    function showInfo(request) {
        var jsondoc = JSON.parse(request.responseText);
        //console.log(jsondoc);

        info.innerHTML=
        '<img src="images/'+jsondoc.avatars+'">'+
        "<h2>"+jsondoc.name+"</h2>";
    }


    showUsers();//need to call the function

})();```
22 Jan
2 years ago

mturner20 started a new conversation Live Search AJAX Without JQUERY

I am trying to do a live search using AJAX, but without JQUERY. I have set up my route, controller, and view. Need some help with the next steps I should be taking. I have it spitting out json data and also have a javascript file calling to the method

    $users = DB::select('SELECT * FROM users');
    return Response::json($users);
 }

Route
Route::get('welcome' ,'[email protected]');

<body>
        <div class="container">
            <div class="content">
                <div class="title">Game of Thrones Directory</div>
                    <h1> Game of Thrones Directory </h1>
                         <form>
                <label for="searchbox">Search:</label>
                <input type="text" name="search" id="searchbox" placeholder="Start your search here">
            </form>
            <div id="txtHint">Search Results here.</div>
            <div id="maindiv"></div>
            </div>
        </div>
    </body>



18 Jan
2 years ago

mturner20 left a reply on Users List From Database Using Query Builder

@cent040 I added that but it didn't seem to do anything

17 Jan
2 years ago

mturner20 started a new conversation Users List From Database Using Query Builder

I have the user list spitting out in an array. I just need help formatting it, so it appears in a list/prettier format.

My code...

My Route Route::get('/users', '[email protected]');

My Controller function

         $users = DB::table('users')->get();
        return view('user.index', ['users' => $users]);
    }

//My Blade file 

```<h1>List of All Users</h1>
     @forelse($users as $user)
     <li>{{ $user->name }}</li>
    @empty
}```

16 Jan
2 years ago

mturner20 left a reply on Laravel Live Search

Did you get your live search working ?