Steady-Entertainment

Steady-Entertainment

Creator at Offline

Member Since 1 Year Ago

Basel

Experience Points
44,980
Total
Experience

20 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
430
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 9
44,980 XP
Mar
28
1 week ago
Activity icon

Started a new Conversation Travis.yml Bug With Php 7.4.x

Hello community,

I have a small problem.

So I wrote an application following the laravel TDD forum series.

Now I run my testsuite with php unit .xml

result = no problem all tests pass

after this I wanted to set up my continuous testing with travis

unfortunately if I run the same tests with travis I am getting the following error

ErrorException: Trying to access array offset on value of type null

/home/travis/build/OfflineONE/Offline/vendor/laravel/telescope/src/Watchers/QueryWatcher.php:46

/home/travis/build/OfflineONE/Offline/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:369

for reference

https://travis-ci.com/github/OfflineONE/Offline/builds/156130895

I tracked the issue down to the following Bug Issue

https://github.com/composer/composer/pull/8296

but a

composer self-update --snapshot 

doesn't help

I really don't know what to do now

Mar
27
1 week ago
Activity icon

Commented on Git Tagging And Releases

@Jeffrey:

What did you mean by we talk about that in the next episode? :D

Mar
18
2 weeks ago
Activity icon

Commented on Custom Checkout

so this course is still good or not?

Activity icon

Commented on Onward

FInished with laravel 7.0 and all features updated to the latest versions

Thank you Jeff

Activity icon

Started a new Conversation Laravel Facades Package Strange Behaviour

Guys ... good morning :)

I have strange behavior

I pulled in

composer require stevebauman/purify

after that I wanted to implement a facade using

use Stevebauman\Purify\Purify;
      public function getBodyAttribute($body)
        {
            return \Purify::clean($body);
        }

the funny thing is when I do

\Purify::clean

it is not referencing the package and it works ...

when i do just

Purify::clean 

(without backslash)

ErrorException : Non-static method Stevebauman\Purify\Purify::clean() should not be called statically
Mar
10
3 weeks ago
Activity icon

Replied to ReCapture Laravel

thank you

Activity icon

Started a new Conversation ReCapture Laravel

Hello guys,

I want to add ReCapture to my site but I dont know how.

If i install the repository with composer i get ...

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install biscolab/laravel-recaptcha v3.6.1
    - Conclusion: don't install biscolab/laravel-recaptcha v3.6.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.5.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.4.2
    - Conclusion: don't install biscolab/laravel-recaptcha v3.4.1
    - Conclusion: don't install biscolab/laravel-recaptcha v3.4.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.3.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.2.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.1.0
    - Conclusion: don't install biscolab/laravel-recaptcha v3.0.2
    - Conclusion: don't install biscolab/laravel-recaptcha v3.0.1
    - Conclusion: remove laravel/framework v7.0.4
    - Installation request for biscolab/laravel-recaptcha ^3.0 -> satisfiable by biscolab/laravel-recaptcha[v3.0.0, v3.0.1, v3.0.2, v3.1.0, v3.2.0, v3.3.0, v3.4.0, v3.4.1, v3.4.2, v3.5.0, v3.6.0, v3.6.1].
    - Conclusion: don't install laravel/framework v7.0.4
    - biscolab/laravel-recaptcha v3.0.0 requires laravel/framework ^5.5 -> satisfiable by laravel/framework[5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev].
    - Can only install one of: laravel/framework[5.5.x-dev, v7.0.4].
    - Can only install one of: laravel/framework[5.6.x-dev, v7.0.4].
    - Can only install one of: laravel/framework[5.7.x-dev, v7.0.4].
    - Can only install one of: laravel/framework[5.8.x-dev, v7.0.4].
    - Installation request for laravel/framework (locked at v7.0.4, required as ^7.0) -> satisfiable by laravel/framework[v7.0.4].


Installation failed, reverting ./composer.json to its original content.

I assume this is becdause this package doe not support laravel 7.x is that right?

Mar
09
3 weeks ago
Activity icon

Replied to What Is The Meaning Of ! !

thx like always

Activity icon

Started a new Conversation What Is The Meaning Of ! !

$this->assertTrue(! ! $thread->fresh()->locked, 'Failed asserting that the thread was locked.');

I don't understand the meaning of " ! ! "

Activity icon

Replied to Mutating Props Vue.js

That worked really well thank you very much

I understand why now

Mar
08
4 weeks ago
Activity icon

Started a new Conversation Mutating Props Vue.js

Hello,

I am following the Laracast TDD Forum series.

there is a view component for the subscribe-button which is fairly simple.

it works but it uses a prop that is then mutated.

apparently Vue 2.0 doesn't want you to mutate properties.

<template>
    <button :class="classes" @click="subscribe">Subscribe</button>
</template>

<script>
    export default {
        props: ['active'],
        computed: {
            classes() {
                return ['btn', this.active ? 'btn-primary' : 'btn-default'];
            }
        },
        methods: {
            subscribe() {
                axios[
                    (this.active ? 'delete' : 'post')
                ](location.pathname + '/subscriptions');
                this.active = ! this.active;
            }
        }
    }
</script>

but the console says ...

I followed a lot of guides but dont know how i can do this without mutating the prop

vue.common.dev.js?4650:630 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "active"

found in

---> <SubscribeButton> at resources/js/components/SubscribeButton.vue
       <ThreadView> at resources/js/pages/Thread.vue
         <Root>
Mar
06
4 weeks ago
Mar
04
1 month ago
Activity icon

Replied to How Can I Delete A Avatar Using The Avatar_path?

Hey R3n I see you are working through the TDD forum site what aer you working on? I am also about to finish the site lets exchange contacts maybe we can learn from each other cheers

Funny thing is my nickname in real life is ren so amye that means something :D

PS: I apprecaite the time you took to discuss resent topics including changes during your learning process.

Rainer

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

one entire day to upgrade to laravel 7 finally

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

Or just in the ioffical laravel documentation under symphony upgrades :D ... I am so stupid :D

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

The answer is on minute 5:30 in hindi accent :D

www.youtube.com/watch?v=-5QcxlpyA7Y

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

:(

php artisan config:clear PHP Fatal error: Declaration of App\Exceptions\Handler::report(Exception $exception) must be compatible with Illuminate\Foundation\Exceptions\Handler::report(Throwable $e) in /Users/anonymous/code/OfflineForum/app/Exceptions/Handler.php on line 37 PHP Fatal error: Uncaught ReflectionException: Class App\Exceptions\Handler does not exist in /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php:803 Stack trace: #0 /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct('App\Exceptions\...') #1 /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build('App\Exceptions\...') #2 /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(787): Illuminate\Container\Container->resolve('App\Exceptions\...', Array, false) #3 /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php(265): Illuminate\Foundation\Application->resolve('App\Exceptions\...', Array, false) #4 /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\Con in /Users/anonymous/code/OfflineForum/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 805

any ideas? :D

I get this when i composer update or php artisan config:clear

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

I dont even remember what it does

Activity icon

Replied to Upgrading Existing Application From 6.x To 7.0 PROBLEMS

Thx why is that package so "dump" then? :D

Activity icon

Started a new Conversation Upgrading Existing Application From 6.x To 7.0 PROBLEMS

Hello community,

I want to upgrade my existing application to laravel 7.0 from 6.0.

When I adjust my composer.json to laravel 7.0

and press

composer update

I get the following message and I dont know what to do

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/framework v7.0.2
    - Conclusion: don't install laravel/framework v7.0.1
    - Conclusion: don't install laravel/framework v7.0.0
    - beyondcode/laravel-dump-server 1.2.2 requires illuminate/support 5.6.*|5.7.*|5.8.* -> satisfiable by laravel/framework[5.8.x-dev], illuminate/support[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - beyondcode/laravel-dump-server 1.3.0 requires illuminate/support 5.6.*|5.7.*|5.8.*|^6.0 -> satisfiable by laravel/framework[v6.0.4, 5.8.x-dev, 6.x-dev], illuminate/support[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, 6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.10.0, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0].
    - beyondcode/laravel-dump-server 1.3.0 requires illuminate/support 5.6.*|5.7.*|5.8.*|^6.0 -> satisfiable by laravel/framework[v6.0.4, 5.8.x-dev, 6.x-dev], illuminate/support[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, 6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.10.0, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6.5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0].
    - beyondcode/laravel-dump-server 1.0.0 requires illuminate/console 5.6.* -> satisfiable by illuminate/console[5.6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - beyondcode/laravel-dump-server 1.1.0 requires illuminate/console 5.6.* -> satisfiable by illuminate/console[5.6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - beyondcode/laravel-dump-server 1.1.1 requires illuminate/console 5.6.* -> satisfiable by illuminate/console[5.6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - beyondcode/laravel-dump-server 1.1.2 requires illuminate/console 5.6.* -> satisfiable by illuminate/console[5.6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - beyondcode/laravel-dump-server 1.1.3 requires illuminate/console 5.6.* -> satisfiable by illuminate/console[5.6.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - beyondcode/laravel-dump-server 1.2.0 requires illuminate/console 5.6.*|5.7.* -> satisfiable by illuminate/console[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
    - beyondcode/laravel-dump-server 1.2.1 requires illuminate/console 5.6.*|5.7.* -> satisfiable by illuminate/console[5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
    - Can only install one of: laravel/framework[7.x-dev, 5.8.x-dev].
    - Can only install one of: laravel/framework[7.x-dev, 6.x-dev].
    - Can only install one of: laravel/framework[7.x-dev, v6.0.4].
    - don't install illuminate/support 5.6.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 5.7.17|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 5.7.18|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 5.7.19|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 5.7.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 5.8.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/support 6.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.10|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.11|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.12|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.13|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.14|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.15|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.16|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.17|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.19|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.20|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.21|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.22|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.23|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.24|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.25|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.26|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.27|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.28|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.29|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.30|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.31|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.32|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.33|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.34|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.35|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.36|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.37|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.38|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.39|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.5|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.6|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.7|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.8|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.6.9|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.10|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.11|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.15|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.20|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.21|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.22|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.23|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.26|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.27|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.28|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.5|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.6|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.7|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.8|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.7.9|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.11|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.12|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.14|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.15|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.17|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.18|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.19|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.20|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.22|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.24|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.27|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.28|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.29|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.30|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.31|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.32|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.33|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.34|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.35|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.36|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.8|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v5.8.9|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.0.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.0.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.0.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.0.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.0.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.1.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.10.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.11.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.12.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.13.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.13.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.14.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.15.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.15.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.16.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.17.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.17.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.18.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.2.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.3.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.4.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.5.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.5.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.5.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.6.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.6.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.6.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.7.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/support v6.8.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/console 5.6.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/console 5.7.17|don't install laravel/framework 7.x-dev
    - don't install illuminate/console 5.7.18|don't install laravel/framework 7.x-dev
    - don't install illuminate/console 5.7.19|don't install laravel/framework 7.x-dev
    - don't install illuminate/console 5.7.x-dev|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.10|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.11|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.12|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.13|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.14|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.15|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.16|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.17|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.19|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.20|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.21|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.22|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.23|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.24|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.26|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.27|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.28|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.29|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.30|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.31|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.32|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.33|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.34|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.35|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.36|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.37|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.38|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.39|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.5|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.6|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.7|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.8|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.6.9|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.0|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.1|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.10|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.11|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.15|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.2|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.20|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.21|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.22|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.23|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.26|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.27|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.28|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.3|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.4|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.5|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.6|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.7|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.8|don't install laravel/framework 7.x-dev
    - don't install illuminate/console v5.7.9|don't install laravel/framework 7.x-dev
    - Installation request for laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev, v7.0.0, v7.0.1, v7.0.2].
    - Installation request for beyondcode/laravel-dump-server ^1.0 -> satisfiable by beyondcode/laravel-dump-server[1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.2.1, 1.2.2, 1.3.0].
Feb
29
1 month ago
Activity icon

Started a new Conversation Laravel / Nodejs

Dear all,

As part of the project I programmed a forum from the laracast series “let’s build a forum with TDD”

The problem:

The forum is just one part of the application.

The landing page is written in JavaScript and nodejs as the backend.

Now my question is how do we manage two projects in a different backend language under the same domain?

We were discussing nginx and then play around with the available and enabled sites and let both apps live on one Webserver

If you hit

example.com/

you get redirected to the landing page written in Nodejs as backend

If you hit

example.com/forum

you get redirected to the Laravel app including the forum

//I would like to use forge to deploy the Laravel app//

I would be really happy to get some fresh ideas :-)

High level picture from some experienced developers would be cool.

Feb
20
1 month ago
Feb
14
1 month ago
Activity icon

Started a new Conversation REDIS

It is very confusing I have REDIS installed gloablly in my development environment

it is booted up and running.

I have the following test which runns successfully ... easy no problem

namespace Tests\Feature;

use Illuminate\Support\Facades\Redis;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;

class TrendingThreadsTest extends TestCase {

    use DatabaseMigrations;

    protected function setUp(): void
    {
        parent::setUp();

        Redis::del('trending_threads');
    }

    /** @test */
    public function it_increments_a_threads_score_each_time_it_is_read()
    {
        $this->assertEmpty(Redis::zrevrange('trending_threads', 0, -1));
        $thread = create('App\Thread');
        $this->call('GET', $thread->path());
        $trending = Redis::zrevrange('trending_threads', 0, -1);
        $this->assertCount(1, $trending);
        $this->assertEquals($thread->title, json_decode($trending[0])->title);
    }
}

the controller is very simpe as well

public function show($channel, Thread $thread)
    {
        if (auth()->check()) {
            auth()->user()->read($thread);
        }

        Redis::zincrby('trending_threads', 1, json_encode([
            'title' => $thread->title,
            'path' => $thread->path()
        ]));

        return view('threads.show', compact('thread'));
    }

so in the end I am just increasing redis 'trending_threads' zsorted list whenever I visit my thread.

no problem so far ....

but when I hit the url for threads controller @ show a few times I have no entries in the zrange 'trending_threads' list .... it returns

127.0.0.1:6379> zrevrange trending_threads 0 -1
(empty list or set)

this makes absolutley no sence since the test is returning green

Feb
09
1 month ago
Activity icon

Replied to SVG Problem

sorry but this answer is not helping me

Activity icon

Started a new Conversation SVG Problem

hello guys I have an SVG directory under rewsources where i have my svgs inside in this case logo.svg.

so in my blade files i can reference it like {{ svg_icon('logo') }} no problem so far

but now I want to change the viewbox of that SVG how do i do this when I dont want to change the actual logo svg it self?

Any help is highly appreciated.

PS I installed the page underneath but I dont understand hwo to use it correctly since it will not work if I do something like

@svg('cog', 'icon-lg') Settings

it just works with {{ svg_logo('logo') }} where the methode is crossed through ... I am confused

https://github.com/adamwathan/blade-svg

Feb
06
1 month ago
Activity icon

Replied to WHat Is He Doing?

thanks I did not know about annonymous objects ... I do now

Activity icon

Started a new Conversation WHat Is He Doing?

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

22:25

I don't understand the curly braces around src and file

{src, file}

is this object de-structuring or what is this ?

It looks like he is making a new object but there is no key word like

let or const or var

I am confused

Dec
20
3 months 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
3 months 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
3 months 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
3 months 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
4 months 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
4 months 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
4 months 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
4 months ago
Activity icon

Commented on Test Refactoring

setUp() :void

since php 7.2

you are welcome