Member Since 5 Years Ago

Kalmar, Sweden

web developer at Lägenheter24

Experience Points 34,290
Experience Level 7

710 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 579
Best Reply Awards 1
Best Reply
  • 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    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.

11 Jul
1 week ago

jimmitjoo left a reply on Double Requests On Every Pageload

Thanks for the tip on network tab. I was requesting an image from the wrong path, and since first level sub-pages that does no longer exists is redirected to the frontpage this was happening for this image url as well.

Thanks again! :)

jimmitjoo started a new conversation Double Requests On Every Pageload

I just noticed something weird in my application. When I was about to implement pageview tracking into my own sourcecode, I noticed that I am getting a double request every single time. It happens so fast that you do not even notice on the pageload. (So this is not happening i Google Analytics, probably because JS has not been executed that quick)

For example I hit page.com/test, then I get 1 request with the correct path and a unique request fingerprint, but I do also get another request to the root path of the site with another request fingerprint.

Googled a bit and saw some folks that had used double $next's in their middleware, but that is not my issue. My issue is still unknown.

I am out of ideas of what this can be. I do the "tracking" in my blade template files, if that can give someone any idea?

11 Apr
3 months ago

jimmitjoo started a new conversation AWS Region Stockholm

I am trying to create a new server in region Stockholm on AWS. I have no problem doing that in Frankfurt, however, as a swede Stockholm is a more logical region.

I tried do it in Virginia as well but that did not work. And I created new credentials to see if that was the problem, but since IAM-credentials are global this should not be he issue, right?

Anyone else with the same problem?

11 Dec
7 months ago

jimmitjoo left a reply on Problem Installing New Repo On Servers

@NORDINZAIDI - Basically it means you'll need to register your packages in the config/app.php the "old way".


22 Nov
8 months ago

jimmitjoo left a reply on Vue Native Vs React Native

As I understand it vue native just compiles to react native.

jimmitjoo started a new conversation Setting Up Auto-scaling With Envoyer Or Forge

Have you managed to set up auto-scaling on AWS with Envoyer or Forge?

I am about to launch a service that is going to need to scale up as CPU increases when there are many users doing heavy tasks, however, how do I manage to deploy to multiple servers when the machines might often change their IP's? When I for example create an AMI we might have one version of the application, but it has to be updated when we make a new launch. Having a hard time getting my head around this.

How do you handle this? Any good articles on the subject?

16 Nov
8 months ago

jimmitjoo left a reply on AWS EC2 Server Disappear After Provisioning

I guess it was a misunderstanding of VPC from me. When I choose "Create New" instead of using the default one forge seems to get access to the server it created and the provisioning went just fine.

jimmitjoo left a reply on AWS EC2 Server Disappear After Provisioning

I gave it a new try with the same result today. It is removed from forge when the "building" is done. But the server is up and running in EC2 so I guess there are no errors on Amazons side.

How do you do when setting up an EC2? I'm using my Access Key ID and the Secret Access Key, obv it is working enough to create the server, but not to keep it in forge?

15 Nov
8 months ago

jimmitjoo started a new conversation AWS EC2 Server Disappear After Provisioning

As my title says, when I am provisioning a new EC2 server through forge it is created and I can access it in my AWS EC2 panel, however the server is no longer listed under servers in Laravel Forge.

Does anyone know what my issue may be?

16 Aug
11 months ago

jimmitjoo left a reply on Manage Versioning In An Api.

I would still probably go that way tho.

But if you don't want that, this is a pretty hacky, but potential, solution?

    $app = app();
    $controller = $app->make('\App\Http\Controllers\'.$version.'\UsersController');
    return $controller->callAction('index', $parameters = []);


jimmitjoo left a reply on Problem Installing New Repo On Servers

@click yes it is still there when the initial deployment succeeds. If the initial deployment fails everything is swapped from the directory.

01 Aug
11 months ago

jimmitjoo left a reply on Problem Installing New Repo On Servers

When I removed the "php artisan package:discover" from the post-autoload-dump in composer.json the deployment succeeded.

jimmitjoo left a reply on Problem Installing New Repo On Servers

@click I do it through the forge web interface, and that will place it in the root of the project as standard.

jimmitjoo left a reply on Problem Installing New Repo On Servers

@click if I add the .env and then trying to install the repo the .env is cleared afterwards, and I get the error message above. Forge is probably clearing everything from that folder on the server when error occurs on install.

jimmitjoo left a reply on Problem Installing New Repo On Servers

@click @pardeepkumar I cannot do anything of that since the website is not installed on forge. This is on first installation.

@ronmaxweb it is the original AppServiceProvider, only thing in there is Config::load() in the boot method. It is almost just a fresh installation of Laravel.

31 Jul
11 months ago

jimmitjoo started a new conversation Problem Installing New Repo On Servers

Hi! I am working at an agency where we have used forge for a couple of years now. Today when I am back from my vacation forge does not work at all. I can not install a new website through my git repo. Seems to be some problem with the package discovery and then it says it has no connection to the database. And it should not have since I haven't created the .env file before setting up the website.

Below is the full log I get when trying to deploy a new website.

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 82 installs, 0 updates, 0 removals
  - Installing doctrine/inflector (v1.3.0): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (70%)Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing dragonmantank/cron-expression (v2.2.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (65%)Downloading (100%)
  - Installing erusev/parsedown (1.7.1): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (100%)
  - Installing vlucas/phpdotenv (v2.5.1): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (100%)
  - Installing symfony/css-selector (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (100%)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (connecting...)Downloading (0%)           Downloading (40%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing symfony/polyfill-php72 (v1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (40%)Downloading (45%)Downloading (65%)Downloading (85%)Downloading (90%)Downloading (100%)
  - Installing symfony/var-dumper (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing symfony/routing (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/process (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (25%)Downloading (40%)Downloading (50%)Downloading (75%)Downloading (85%)Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (100%)
  - Installing symfony/http-foundation (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/event-dispatcher (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (100%)
  - Installing psr/log (1.0.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (100%)
  - Installing symfony/debug (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (25%)Downloading (40%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (80%)Downloading (95%)Downloading (100%)
  - Installing symfony/http-kernel (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/finder (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/console (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing egulias/email-validator (2.1.4): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (55%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing swiftmailer/swiftmailer (v6.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (100%)
  - Installing ramsey/uuid (3.8.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (35%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (60%)Downloading (90%)Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (connecting...)Downloading (0%)           Downloading (75%)Downloading (100%)
  - Installing symfony/translation (v4.1.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing nesbot/carbon (1.25.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (25%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing monolog/monolog (1.23.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing league/flysystem (1.0.45): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing laravel/framework (v5.6.29): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing fideloper/proxy (4.0.0): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing guzzlehttp/promises (v1.3.1): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (60%)Downloading (80%)Downloading (100%)
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (45%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing jakub-onderka/php-console-color (0.1): Downloading (connecting...)Downloading (0%)           Downloading (50%)Downloading (100%)
  - Installing symfony/dom-crawler (v3.4.13): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (25%)Downloading (30%)Downloading (45%)Downloading (50%)Downloading (70%)Downloading (75%)Downloading (100%)
  - Installing encore/laravel-admin (v1.5.15): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing laravel-admin-ext/api-tester (v1.0.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (100%)
  - Installing laravel-admin-ext/config (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing laravel-admin-ext/log-viewer (v1.0.2): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing laravel-admin-ext/media-manager (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (75%)Downloading (85%)Downloading (100%)
  - Installing laravel-admin-ext/reporter (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (40%)Downloading (60%)Downloading (100%)
  - Installing laravel-admin-ext/scheduling (v1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (40%)Downloading (85%)Downloading (100%)
  - Installing nikic/php-parser (v4.0.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (80%)Downloading (100%)
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing psy/psysh (v0.9.6): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing laravel/tinker (v1.0.7): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing fzaninotto/faker (v1.8.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing hamcrest/hamcrest-php (v2.0.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing mockery/mockery (1.1.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing filp/whoops (2.2.0): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (65%)Downloading (75%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing nunomaduro/collision (v2.0.3): Downloading (connecting...)Downloading (0%)           Downloading (70%)Downloading (95%)Downloading (100%)
  - Installing webmozart/assert (1.3.0): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (80%)Downloading (100%)
  - Installing phpdocumentor/reflection-common (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing phpdocumentor/type-resolver (0.4.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (100%)
  - Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (100%)
  - Installing phpunit/php-token-stream (3.0.0): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (100%)
  - Installing sebastian/version (2.0.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing sebastian/resource-operations (1.0.0): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing sebastian/recursion-context (3.0.0): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (70%)Downloading (100%)
  - Installing sebastian/object-reflector (1.1.1): Downloading (connecting...)Downloading (0%)           Downloading (65%)Downloading (100%)
  - Installing sebastian/object-enumerator (3.0.3): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing sebastian/global-state (2.0.0): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (75%)Downloading (95%)Downloading (100%)
  - Installing sebastian/exporter (3.1.0): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing sebastian/environment (3.1.0): Downloading (connecting...)Downloading (0%)           Downloading (45%)Downloading (75%)Downloading (100%)
  - Installing sebastian/diff (3.0.1): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (40%)Downloading (45%)Downloading (60%)Downloading (75%)Downloading (80%)Downloading (95%)Downloading (100%)
  - Installing sebastian/comparator (3.0.2): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (50%)Downloading (60%)Downloading (75%)Downloading (85%)Downloading (100%)
  - Installing phpunit/php-timer (2.0.0): Downloading (connecting...)Downloading (0%)           Downloading (70%)Downloading (100%)
  - Installing phpunit/php-text-template (1.2.1): Downloading (connecting...)Downloading (0%)           Downloading (35%)Downloading (100%)
  - Installing phpunit/php-file-iterator (2.0.1): Downloading (connecting...)Downloading (0%)           Downloading (95%)Downloading (100%)
  - Installing theseer/tokenizer (1.1.0): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (connecting...)Downloading (0%)           Downloading (55%)Downloading (100%)
  - Installing phpunit/php-code-coverage (6.0.7): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing doctrine/instantiator (1.1.0): Downloading (connecting...)Downloading (0%)           Downloading (25%)Downloading (50%)Downloading (100%)
  - Installing phpspec/prophecy (1.7.6): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (25%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (100%)
  - Installing phar-io/version (2.0.1): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (100%)
  - Installing phar-io/manifest (1.0.3): Downloading (connecting...)Downloading (0%)           Downloading (10%)Downloading (15%)Downloading (25%)Downloading (35%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (95%)Downloading (100%)
  - Installing myclabs/deep-copy (1.8.1): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (20%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (70%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing phpunit/phpunit (7.2.7): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
symfony/console suggests installing symfony/lock ()
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
symfony/translation suggests installing symfony/config ()
symfony/translation suggests installing symfony/yaml ()
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (~3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.6).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (~1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (~1.0).)
laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (~1.0).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~3.0).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (~1.0).)
encore/laravel-admin suggests installing intervention/image (Required to handling and manipulation upload images (~2.3).)
encore/laravel-admin suggests installing spatie/eloquent-sortable (Required to built orderable gird.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In Connection.php line 664:
  SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using pa  
  ssword: NO) (SQL: select `name`, `value` from `admin_config`)                

In Connector.php line 68:
  SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using pa  
  ssword: NO)                                                                  

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1```
07 Feb
1 year ago

jimmitjoo left a reply on OrderByRaw Is Removing Results In Union Query

This is really interesting! When I instead moved and used it as a custom column in the results everything is working. Is this possibly a bug in Laravels orderByRaw?

When I removed the orderByRaw and instead used it in a selectRaw that looked like this, it works as expected! Why is it different at all?

$metaCompetitions = DB::table('meta_competitions')
            ->select('meta_competitions.name as name', 'sports.name as sport', 'meta_competitions.id', 'meta_competitions.country')
                    WHEN meta_competitions.name = ? THEN 1
                    WHEN meta_competitions.name LIKE ? THEN 2
                    WHEN meta_competitions.name LIKE ? THEN 4
                    ELSE 3
                  END AS order_col', [$string, "$string%", "%$string"] )
            ->selectRaw("'meta_competition' AS type")
            ->where('meta_competitions.name', 'LIKE', "%{$string}%")
            ->whereIn('meta_competitions.sport_id', [1, 3, 4, 9])
            ->join('sports', 'sports.id', '=', 'meta_competitions.sport_id');
06 Feb
1 year ago

jimmitjoo started a new conversation OrderByRaw Is Removing Results In Union Query

I am running this query in a project where I am having "meta_competitions" and "primary_events" that is going to merge together into a result where they do not overlap by primary_event_meta_competitions having the primary_event_id of the current primary_event.

Everything is working as exprected in the query itself, we are getting the results we want. But when we add the orderByRaw() everything except one result is removed of the meta_competitions.

            ->select('meta_competitions.name as name', 'sports.name as sport', 'meta_competitions.id', 'meta_competitions.country')
            ->where('meta_competitions.name', 'LIKE', "%{$string}%")
            ->whereIn('meta_competitions.sport_id', [1, 3, 4, 9])
            ->join('sports', 'sports.id', '=', 'meta_competitions.sport_id');

        $leagues = DB::table('primary_events')

            ->select('primary_events.name as name', 'sports.name as sport', 'primary_events.id', 'primary_events.country')
            ->where('primary_events.name', 'LIKE', "%{$string}%")
            ->whereIn('primary_events.sport_id', [1, 3, 4, 9])
            ->leftJoin('primary_event_meta_competitions', 'primary_event_meta_competitions.primary_event_id', '=', 'primary_events.id')
            ->leftJoin('sports', 'sports.id', '=', 'primary_events.sport_id')


                    WHEN name = ? THEN 1
                    WHEN name LIKE ? THEN 2
                    WHEN name LIKE ? THEN 4
                    ELSE 3
                  END', [$string, "{$string}%", "%{$string}"]

05 Jan
1 year ago

jimmitjoo started a new conversation Change Collation Not Working? Am I Doing Something Wrong Or Is This A Bug?

We are trying to change collation on a table, and the migration are returning green so we thought everything worked. Except nothing happened in the database.

Schema::table('teams', function (Blueprint $table) {

This does however work.

DB::statement("ALTER TABLE `teams` CHANGE COLUMN `name` `name` VARCHAR(191) CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_swedish_ci' NOT NULL ;");

Any ideas?

16 Nov
1 year ago

jimmitjoo started a new conversation Forge Own Certificate Has Problem On Install

Hi, anyone that have experienced the problem of a server not accepting forge certificate when trying to install a new server?

I am getting these error messages: Connecting to forge.laravel.com (forge.laravel.com)|2400:cb00:2048:1::6814:95e|:443... connected. ERROR: The certificate of ‘forge.laravel.com’ is not trusted. ERROR: The certificate of ‘forge.laravel.com’ hasn't got a known issuer.

What can I do about it? Try with a new server or is there some temporary problem with forge?

05 Sep
1 year ago
04 Sep
1 year ago

jimmitjoo started a new conversation Laravel Valet [DomainException] Unable To Determine Linked PHP

I am having a wierd issue. A week ago when I was working on this machine everything with Laravel Valet worked like a charm. Today I cannot even start it.

I've tried to reinstall both Valet, PHP, nginx and dnsmasq. I have tried to switch between PHP versions as well, but no. I just get the DomainException described in the title.

which valet

which php

php -v
PHP 7.1.8 (cli) (built: Aug  7 2017 15:02:45) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Everything above seems ok to me?

But then when I want to install valet:

valet install

Stopping nginx....
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...
  Unable to determine linked PHP.

Have anyone else experienced this issue? I cannot find anything valet specific about it when googling, just found a lot of people having this trouble with homebrew.

30 Aug
1 year ago

jimmitjoo left a reply on Two Similar Relationships On The Same Model

Oh I sorted it out myself :)

    public function hometeam()
        return $this->belongsToMany(Team::class, 'event_teams', 'event_id', 'hometeam_id');

    public function awayteam()
        return $this->belongsToMany(Team::class, 'event_teams', 'event_id', 'awayteam_id');

jimmitjoo started a new conversation Two Similar Relationships On The Same Model


I have a model called Event, which can be a soccer, tennis or formula1 event. When it for example is a soccer event I'd like to attach 2 teams to this event, one hometeam and one awayteam.

I am not sure how I should structure this. Have tried it out with belongsToMany relationship that references the Team model, event_teams table, the event_id and team_id in the table. But how would this relationship know if it is the home or awayteam?

I need some guidance. Big thanks in advance!

17 Aug
1 year ago

jimmitjoo left a reply on Something Odd Going On With Factory.

Are you trying it in tinker or something? Then you'll need to restart the tinker process.

15 Aug
1 year ago

jimmitjoo left a reply on How Many Of You Are Agree With The Idea That We Need Laracast Mobile App ?

One idea would be to open up Laracasts API and let people build upon it. Then we may get a mobile app from someone here? :)

14 Aug
1 year ago

jimmitjoo left a reply on Newbie Need Some Help Using Auth

The checkmark below the correct answerers avatar.

jimmitjoo left a reply on Ads Make Site Slow

Sorry guys, I meant this as feedback, not as a threat. Just got annoyed over why I could not watch the videos. Figured out it must be the ads, tried adblock, and it solved the issue. Whatever Jeffrey gonna do with the information, I'll have to use adblock (altho I am not a supporter of it) until this issue is solved otherwise I cannot watch the screencasts.

13 Aug
1 year ago

jimmitjoo left a reply on Ads Make Site Slow

I can't find any malware on my system.

Oh he have implemented ads on the video page? That's where I see it, but I get a video ad and I am very much logged in.

Screenshot: http://imgur.com/a/Q78EJ

jimmitjoo left a reply on Search On Pace Of A Run

Went for that and it still seems to be the best alternative. Thanks!

jimmitjoo started a new conversation Ads Make Site Slow

As it is right now the site isn't usable without adblock. It is some ad that is loading a ton and then the video gets laggy and plays maybe 5s per minute.

With adblock everything works fine.

Btw, is it meant to display ads for logged in paying members?

28 Apr
2 years ago

jimmitjoo started a new conversation Hash To Hashbang Url


I am about to use prerender.io on my website which is a SPA built on Vue and Laravel. By default vue seems to use hash (domain.com/#/page) instead of hashbang (domain.com/#!/page) which seems to be what prerender is requiring.

I have googled a ton on "Change hash to hashbang vue 2" and stuff, but I can not find any help. Does anyone here know where I can tweak vue to use hashbang?

Thanks in advance!

// Jimmie

14 Apr
2 years ago

jimmitjoo started a new conversation Search On Pace Of A Run

Hi! I am about to build an application for us who runs a lot and want to find friends on the same level to train together with.

But to do this I would really need to be able to search on runners who are running in about the same pace as me.

The problem I have is that I have stored the kilometer pace like 3:35 (min:sec). How would you go about to make it searchable to for example find a run that are within 10 sec from this. I want to find runs that are at max pace 3:25 and minimum pace 3:45/km. And then if you are running in 4:59 pace we would like to search for 4:49 and 5:09.

Do you think it is better to just store seconds per kilometer so that 3:35 is transformed to 215?

Would like to have some suggestions on how to think about this problem.

This is pseudocode of what I would like:

Run::where('pace', '<', '3:35 + 10 seconds')->where('pace', '>', '3:35 - 10 seconds')->get();

04 Oct
2 years ago

jimmitjoo left a reply on Caddy CPU MacOS Sierra

Seems to be the valet version 1.1.19 that is the problem, when I updated it to 1.1.22 it works just fine!

Thank you, you rule! :)

jimmitjoo started a new conversation Caddy CPU MacOS Sierra

I am using Laravel Valet on my MacBook Pro 15" mid 2015. It was working really well until I upgraded to MacOS Sierra, since then the CPU blows through the roof after a few pageloads, the requests freezes and then I have to close Caddy to be able to use the computer. Anyone else with these issues?

07 Sep
2 years ago

jimmitjoo left a reply on Laravel Choose Wrong Table For Auth

@tomi you are awesome! =)

jimmitjoo started a new conversation Laravel Choose Wrong Table For Auth

I have changed my users table name to 'bostad_members' (bostad_ is a prefix), it works with registration, login with socialite and such. BUT, when I try to register a new user it tries to add the user to the old table 'bostad_users' which now is containing something else.

My config/auth.php is changed to 'members', as well as the protected $table in User.php.

I get 2 errors in the log:

"[2016-09-07 11:02:13] production.ERROR: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause' in /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:319"

"Next Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause' (SQL: select count(*) as aggregate from bostad_users where email = [email protected]) in /var/www/24bostad.se/vendor/laravel/framework/src/Illuminate/Database/Connection.php:662"

Why is this happening? Can't find out where I should change anything else?

17 Feb
3 years ago

jimmitjoo left a reply on PDO Exception On Php Artisan Clear-compiled In Laravel 5

I do get this as well, very wierd. And it gets even more wierd since it works when I run php artisan clear-compiled manually.

jimmitjoo left a reply on Cloning Git Repo Times Out After 2 Minutes

No, for me it is the same problem both with github and a self hosted gitlab.

07 Sep
3 years ago

jimmitjoo left a reply on Cloning Git Repo Times Out After 2 Minutes

I tried to ping @TaylorOtwell about this at Twitter a few days ago, but did not get any response. Currently I still have to set the hook up manually, a bit bothered about this right now, why should I continue to pay for forge if it does not work for me?

02 Sep
3 years ago

jimmitjoo left a reply on Sudden Error Messages

Have you got any help on this yet? Experience the same issue about not being able to deploy due to time out.

jimmitjoo left a reply on Cloning Git Repo Times Out After 2 Minutes

In Forge I get an red error message that says: The project installation process on server (customer4) took longer than 2 minutes and timed out.

But when I pull the repo in from terminal on server it works just fine. Is it forge that have a limit of 2 minutes? And why in that case? Any way to change it?

01 Sep
3 years ago

jimmitjoo started a new conversation Cloning Git Repo Times Out After 2 Minutes

# git.ournetwork.se SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
# git.ournetwork.se SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
Cloning into 'stage.sitename.se'...

This is what I get when I try to clone down a git repo from our GitLab through Forge. Not sure why since this is the only error I get from Forge.

Does anyone else experience this issue?

11 May
4 years ago

jimmitjoo left a reply on Laravel Elixir: Gulp Task Sequence

@JeffreyWay is this something you are working on right now? Have found myself in the same trouble with font-awesome. My current team is still using oldschool CSS.

07 Dec
4 years ago

jimmitjoo left a reply on Building A Heavy Js Dependent Application

Yes, you will win big time in the long run if you use a framework. There are a ton of them out there, Angular has quite a high step to get into in my opinion tho. I have started to like to use backbone instead. But no matter what framework you choose, you will most likely benefit from it.

jimmitjoo left a reply on Laracasts Update Bugs

When I visit another members profile, that members nickname is shown beside my avatar in the upper right of the site.

18 Nov
4 years ago

jimmitjoo left a reply on Session Problems On Forge

No, sadly, did not change anything about that.

17 Nov
4 years ago

jimmitjoo left a reply on Session Problems On Forge

This is the part I changed:

        # Gzip Settings

        gzip on;
        gzip_disable "msie6";

        gzip_vary on;
        gzip_proxied any;
        gzip_comp_level 6;
        gzip_buffers 16 8k;
        gzip_http_version 1.1;
        gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

jimmitjoo left a reply on Session Problems On Forge

I surely didn't change anything in there. I just uncommented the gzip-stuff that was commented out in /etc/nginx/nginx.conf. Nothing that should break this I think?

jimmitjoo started a new conversation Session Problems On Forge

Ok, I can start by saying that I am not great on this server config stuff. I have had the social logins working with sessions and all that before, but then I edited the config file because I wanted to gzip the content that was sent to the browser. Now I am getting this.

ErrorException (E_UNKNOWN) open(/var/lib/php5/sess_2fde40503711502d2a6fe148dfcee783, O_RDWR) failed: Permission denied (13)

Open: /home/forge/default/vendor/lusitanian/oauth/src/OAuth/Common/Storage/Session.php

public function __construct( $startSession = true, $sessionVariableName = 'lusitanian_oauth_token', $stateVariableName = 'lusitanian_oauth_state' ) { if ($startSession && !isset($_SESSION)) { session_start(); }

session_start(); has red background in the error. I am not sure what the reason is for this error? Have anybody else got the same thing? It started happening after I added gzip to the config, but even if I remove it it won't go back to working for some reason.

Worth to note is that the usual email + password login works fine. But not this OAuth stuff.

Using Laravel 4.2.

Please help me out :)

// Jimmie