4,050 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Started a new Conversation Problem When Provisioning A Custom VPS
I'm trying to provision a Forge server using a custom VPS, using Ubuntu 18.04 LTS. I have a PHP script (using phpseclib) that connects to the server and launch the provision command, so it must be 100% non-interactive.
I have two problems.
The pecl command which install redis can't be run in non-interactive mode, I had to modify the provision command as follow :
wget -O forge.sh https://forge.laravel.com/servers/337750/vps?forge_token=nOFdTasHQj2P8Dmi0RY3oCpc4Ns7OBWaq2DCRjm5; sed s/"pecl install redis"/"yes '' |pecl install redis"/ forge.sh |bash forge.sh
My provision script stops after a while.
I dumped its output to a log file, here are the last lines :
Setting up libhttp-parser2.7.1:amd64 (2.7.1-2) ... Setting up libc-ares2:amd64 (1.14.0-1) ... Setting up nodejs (8.10.0~dfsg-2ubuntu0.4) ... update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Reading package lists... Building dependency tree... Reading state information...
It looks like something is broken when it tries to install node/npm.
The relevant part of the provisioning script is this :
usermod -a -G www-data forge id forge groups forge curl --silent --location https://deb.nodesource.com/setup_10.x | bash - apt-get update sudo apt-get install -y --force-yes nodejs npm install -g pm2 npm install -g gulp npm install -g yarn
On my server, the forge user is correctly added to the www-group, nodejs is installed (v8.10.0), but npm isn't.
I didn't find any error in my syslog.
If someone as a lead on this, it would be greatly appreciated.
Maybe you shoud check if your user is logged in first.
Something like this :
@auth // or @if (auth()->check) @if (auth()->user()->hasVerifiedEmail()) // auth and verified @else // auth but not verified @endif @else // guest (not logged in) @endauth // or @endif
Started a new Conversation Choose Trial Plan
I'm using Spark with Teams. My app has 3 plans : Free, Pro and Agency. When an user signs up, he is placed in a Trial mode for 30 days, on the Free plan.
Instead, I'd like to offer the Pro (paid) plan to my users during their trial period. After this period, IF they didn't sign up for a paid plan, I'd like them to "fallback" to the free plan.
Do you have any idea how to achieve this ?
The Free plan is added using Spark::freeTeamPlan() The other ones with Spark::teamPlan()
Thank you very much !