Steady-Entertainment

Steady-Entertainment

Creater at Offline

Member Since 9 Months Ago

Experience Points
36,240
Total
Experience

3,760 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
352
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 8
36,240 XP
Dec
20
4 weeks ago
Activity icon

Replied to Zurb/tribute

I am really confused right now

so this


Tribute = require('tributejs');

is working

and this


let Tribute = require('tributejs');

is not working ...

Activity icon

Replied to Zurb/tribute

I added it

 // Add support for loading cursor files.
    rules.push({
        test: /\.js$/,
        loader: 'babel',
        exclude: /node_modules\/(?!tributejs)/
    });

to the

C:\Users\Anonymous\Desktop\JS\zurb\test\node_modules\laravel-mix\src\builder\webpack-rules.js

than i removed the window.tribute part and recompiled but it did not work :(

Activity icon

Replied to Zurb/tribute

Hello @sinnbeck do you know where in laravel I can update my babel module loader?

It seems a bit complicated to go though the laravel mix config

Activity icon

Commented on Modules Are Simply Files

one of the most valuable lessons I guess

Dec
13
1 month ago
Activity icon

Replied to Zurb/tribute

what about this?


Webpack

To add Tribute to your webpack build process, start by adding it to your package.json and running npm install.

After installing, you need to update your Babel module loader to not exclude Tribute from being compiled by Webpack:

{
    test: /\.js$/,
    loader: 'babel',
    exclude: /node_modules\/(?!tributejs)/
}

Would this fix my problem?

Activity icon

Replied to Zurb/tribute

WoW what a great answer mate really, even the last sentence was really valuable to me.

I will ask you one last question just to understand it sorry you are the best person that I can ask for help

So this is the example of the package owners.

    <script src="../dist/tribute.js"></script>
    <script>
      // example of alternative callback
      var tribute = new Tribute({
        // menuContainer: document.getElementById('content'),
        values: [
          {
            key: "Jordan Humphreys",
            value: "Jordan Humphreys",
            email: "[email protected]"
          },
          {
            key: "Sir Walter Riley",
            value: "Sir Walter Riley",
            email: "[email protected]"
          }
        ],

as you can see inside their example file they never use the BOM (window.) global and it still works ...

does that mean I have to use webpack somehow if I want to integrate the package without the BOM?

Or would you say it doesn't matter if i use the BOM or not?

In your last message you said:


quote: In their example they never use the js outside of js

But when you look at this example file I mean they do ?! don't they?


https://github.com/zurb/tribute/blob/master/example/index.html
Activity icon

Replied to Zurb/tribute

Hello Sinnbeck,

how did you know that you have to put it on the browser object model?

How did you know to put window.?

In the offical description they say:

https://github.com/zurb/tribute

Import into your ES6 code.

import Tribute from "tributejs"; but that doesnt work ...

where instead what u said window. (BOM) works ....

i dont understand ho wyou knew that?

Dec
09
1 month ago
Activity icon

Replied to Zurb/tribute

okay I will try it out thank you

Activity icon

Started a new Conversation Zurb/tribute

Hello there,

I am having trouble implementing a java script into my laravel app.

I am just learning java script and I never done that sort of thing before.

We are talking about he following script: (I don't know if script is the right word)

https://github.com/zurb/tribute

I need it for auto-completion on my web app.

First I want to test it in an isolated manner.

Therefore I did:

laravel new testApp
npm install tributejs

and now I have still the welcome screen of laravel.

So next I decided to change the welcome screen with the example screen from the repo under example/index.html

I am aware that this will never work.

So I tried to link my script file like this

<script src="..\node_modules\tributejs\src\Tribute.js"></script>

followed by

npm run dev 
php artisan serve

The result was, that I was seeing the example template from zurb, but I was not able to have the desired functionality of auto-completion.

Please help me.

What am I missing and what would be your approach to learn and integrate such a package.

best regards

Rainer

Dec
06
1 month ago
Activity icon

Commented on Mentioned Users Notifications: Part 1

I don't understand why there is a backslash in front of that reg exp I think it is superfluous

Dec
05
1 month ago
Activity icon

Replied to Receving 201 Instead Of 200

I thought so just needed the confirmation from someone to be sure.

Thanks a lot

LIKE ALWAYS :) !!!!!!!!!!!!!!!!!!!!!

Activity icon

Started a new Conversation Receving 201 Instead Of 200

Hello community,

In the following episode

https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/54

at minute 2:47 min

I am getting an 201 instead of 200 in return ....

Can anyone point me in the right direction?

Cheers

Ren

Activity icon

Replied to Why Does Laravel Respond With A 201 Status Code By Default?

passing a fresh user instance to acting ass doesn't work in laravel 6.x

Dec
03
1 month ago
Activity icon

Commented on This Thread Has Been Updated Since You Last Read It

11:52

welcome to PHP 7.4


 /** @test */
    function a_thread_can_check_if_the_authenticated_user_has_read_all_replies()
    {
        $this->signIn();

        $thread = create('App\Thread');

        tap(auth()->user(), fn($user) =>

        [
            $this->assertTrue($thread->hasUpdatesFor($user)),

            cache()->forever($user->visitedThreadCacheKey($thread), \Carbon\Carbon::now()),

            $this->assertFalse($thread->hasUpdatesFor($user)),
        ]

        );
Nov
29
1 month ago
Activity icon

Replied to Confusion / Explanation / Tutorial For JSON In Testing With PHP Unit

this


/** @test */
     function a_user_can_request_all_replies_for_a_given_thread()
     {

         $thread = create('App\Thread');
         create('App\Reply', ['thread_id' => $thread->id], 11);

         $response = $this->get($thread->path() . '/replies');

         $this->assertCount(10, $response->json()['data']);
         $this->assertEquals(11, $response->json()['total']);
}

and this

/** @test */
     function a_user_can_request_all_replies_for_a_given_thread()
     {

         $thread = create('App\Thread');
         create('App\Reply', ['thread_id' => $thread->id], 11);

         $response = $this->getJson($thread->path() . '/replies')->json();

         $this->assertCount(10, $response['data']);
         $this->assertEquals(11, $response['total']);
}

makes no difference to me

Activity icon

Replied to Confusion / Explanation / Tutorial For JSON In Testing With PHP Unit

if($request->wantsJson())
    {
        return response()
            ->json(['user' => $user])
    }

I dont understand this something is blocked in my brain how can a request want JSON?

If i replace getJson with get in my tests it still works the same way ....

I understand how you can convert a collection to JSON

but I cannot understand:

How a response can want or expect JSON

or

How a get request can be a getJson get request ..

I am still confused about this ... really sorry

Activity icon

Replied to Confusion / Explanation / Tutorial For JSON In Testing With PHP Unit

THX for your answer one last question for today.

How do I know if I expect JSON from my endpoint or just a collection?

Activity icon

Started a new Conversation Confusion / Explanation / Tutorial For JSON In Testing With PHP Unit

Hey guys I am a bit confused and cannot really understand the overall concept of the following commands.

When do I use which one and what does it actually do?

I understand what JSON is but I do not understand the concept of the following methods and how and when to use them.

getJson()
expectJson()
json()

Especially when it comes to testing and controllers in laravel.

A brief high level description to grasp my head around the concept should be sufficient for this matter.

A small example would be on top. :D

I searched the internet but there isn't an answer to this specific question.

Sure I can look up the methods in the php doc, but my question is more a general usage question and how it works with laravel testing.

Nov
28
1 month ago
Activity icon

Commented on Test Refactoring

setUp() :void

since php 7.2

you are welcome

Activity icon

Replied to Framework Error After Refactor

return type declaration must be compatible with TestCase->setUp : void

Activity icon

Started a new Conversation Framework Error After Refactor

Hello guys,

I am at

https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/44

on 0:19

Jeff is implementing a setUp function which is throwing a PHP error at my side:

PHP fatal error declaration of tests .... ::setUp() must be compatible with Illuminate/....::setUp: void in NotificationsTest.php on line 10

any ideas are appreciated :) I think it is a question of versioning of the framwork since it is an old episode

something must have changed

Nov
22
1 month ago
Activity icon

Commented on Collections

niiiiiiiice

Nov
18
2 months ago
Activity icon

Replied to Bulid A Forum With TDD / EPISODE: A More Data-centric Approach

Maybe one question: Why can I not add it under app.js?

Activity icon

Replied to Bulid A Forum With TDD / EPISODE: A More Data-centric Approach

Well fuck me ... that worked like a charm.

You are a life safer genius bro :) ....

THX

Activity icon

Replied to Bulid A Forum With TDD / EPISODE: A More Data-centric Approach

sorry the first screenshot was not good so here is a better one

https://imgur.com/kMNi5uv

Activity icon

Replied to Bulid A Forum With TDD / EPISODE: A More Data-centric Approach

Hello Nakov,

Thank you for helping me AGAIN.

I am really appreciating your time you are giving me for asking me nothing in return.

Last time you told me how to upload screenshots.

I hope this works.

This is the bug I am seeing,

https://i.imgur.com/gSq0z2J.png

I see the bug alwys directly after I added the v-if inside the div tag.

https://i.imgur.com/EDUGmQS.png

my computed prop looks like this

https://i.imgur.com/EQtkH5c.png

My script is added correctly

https://i.imgur.com/3AFcfQk.png

I really don know anymore

what is strange is, that the v-if is marked orange and looks different to other v-ifs which are working they are highlighted white instead of orange I am cunfudes I am on this since two days.

Activity icon

Started a new Conversation Bulid A Forum With TDD / EPISODE: A More Data-centric Approach

Hey guys,

I am following the Series:

let's Build A Forum with Laravel and TDD

the series is from 2017

so obviously not everything will work the same anymore.

SO I hit a road block at the 36 Episode: A More Data-centric Approach

At minute 15:00 he is doing some magic with Javascript to hide an unhide the like button when user is logged in or isnt logged in.

But Laravel now handles the X-CSRF-TOKEN differently for axios, using the meta tag: let token = document.head.querySelector('meta[name="csrf-token"]');

window.App = {!! json_encode([ 'signedIn' => Auth::check() ]) !!};

doesn't work for me.

How to I handle this?

Activity icon

Commented on A More Data-centric Approach

I am stuck here as well

Laravel 5.5: It handles the X-CSRF-TOKEN differently for axios, using the meta tag: let token = document.head.querySelector('meta[name="csrf-token"]');

this doesnt work anymore in lkaravel 5.5 + I am using 6.X

Nov
15
2 months ago
Activity icon

Replied to No Highlighting In My Vue Components

Sorry for wasting your time guys

I found my mistake

It was just grayed out because it was unused ...

since I am new to JS I didn't know that ...

all good sorry for being the noob that I am

still love how responsive and competent you are

appreciating your help

Love and Peace

Activity icon

Replied to No Highlighting In My Vue Components

how do you post screenshots here in the forum?

Activity icon

Replied to No Highlighting In My Vue Components

this is installed already

Activity icon

Replied to No Highlighting In My Vue Components

I mean everything works I am just wondering how I can make php storm recognize the right highlighting for Javascript or vue or what ever is missing

I am not so good with JS or vue and just starting

Activity icon

Replied to No Highlighting In My Vue Components

I do not know how to upload pictures in this forum

(this is my first question here)

But in my vue component inside the script tags the following words are just greyed out:

import from

export default

etc.

Activity icon

Started a new Conversation No Highlighting In My Vue Components

Dear community,

in in my vue components I don't have popper highlighting.

Can someone point me in the right direction?

I didn't find anything that would help me so far.

Nov
12
2 months ago
Activity icon

Commented on Live Templates

I prefer the

switcher ctrl + tab

to the

recent used cmd + e

Nov
01
2 months ago
Activity icon

Commented on From 56 Queries Down To 2

I am using laravel 5.8 and telescope and I cannot reconstruct the N+1 problem it is just not showing up instead there is an select count (*) as aggregate from 'replies' query but just one not 50+

Activity icon

Commented on From 56 Queries Down To 2

I am using laravel 5.8 and telescope ... the N+1 problem never appears ... is it automatically taken care of now?

Oct
18
3 months ago
Activity icon

Commented on Job Classes And Daemons

4:15 min how? :)

Aug
13
5 months ago
Activity icon

Commented on Initial Database Setup With Seeding

Does it still make sense to go through this? ... ? hmmmm ... I am a bit afraid of massive differences in the versioning and thus wont be able to follow through properly ... Still I am very interested in advancing my programming skills ....

Aug
12
5 months ago
Activity icon

Commented on Onward

Is this still state of the art to get started in this course?

Aug
11
5 months ago
Activity icon

Commented on Wrap It Up

Thanks Jeff amazing series the java script brainf.... me a little bit but I guess I can work on that ... EPIC series 10/10 love and peace which is the next best series to follow?

Build a forum with TDD?

Or should I improve my JS skills? hmmmm?? ....

Aug
04
5 months ago
Activity icon

Commented on Inviting Users As A Feature Test

Ahhhhh I see @Jeff you implemented your own comment section to get rid of the disqus adds?

->refering to my complaint in the DISQUS app regarding the advertisment

But please consider my suggestion to remove the bugs from your HTML5 player java script controlls:

I work on ESXi VM Server and when ever I switch from the VM to Laracastvideos I cannot hit the SPACE button anymore to play the video instead I need to click with the mouse somewhere on the video

it used to work since a few weeks ago ... first I considered it to be a misconfiguration on my side but it seems to be the same on different systems

Also when I hover over the video the status bar is not showing and I need to press left or right error before I can watch the video.

This also means that it is really difficult to get into full screen mode:

My workflow takes like 10 times as long as before

This was not like this before and just changed recently.

I consider this a bug in your backend (especially in the video controlls java script) or a change on purpose that I cannot understand :D or some browser version discrepancies

It is affecting all browsers (chrome, safari and firefox developer)

sorry I do not know where to address this better than here ...

cheers

Rainer