Member Since 4 Years Ago
3,060 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.
@maverickchan thanks again. tried all of your suggestion without success. I even went through and checked file/folder permissions with no luck.
cannot figure out why some projects, I can run composer install and it works perfectly and the rest nothing happens.
my npm install works perfectly on everything.
I am stumped. Dont know where to turn.
Any suggestions from anyone?
@maverickchan thanks again, so I am trying to move over to Valet but cannot get it to download.
As usually it just sits there and does nothing.
composer global require laravel/valet
nothing will install
somewhat dead in the water on certain projects until I find a fix.
I did confirm that my terminal is using the zprofile and zshrc that I am editing.
Thanks again for all of your help.
@maverickchan thanks for the help. So it seems that with the new Mac updates, they have made zsh the default shell. I already had zsh and oh my zsh installed and working using my older bash_profile script. With this update, it makes the bash_profile to not work. So I moved over my settings from my bash_profile to my zprofile file and of course still does not work.
I have tried everything I could think of. I have uninstalled oh my zsh and using Brew to reinstall zsh, reinstalled ohmyzsh, Brew did a clean up. No luck.
After reinstalling zsh, I try to change my shell using the path where Brew installed the original version that I had working for years, but every time I try to change my shell path, mac will not let me. states Non Standard Shell
I even tried to change it back to bash and the same non standard shell.
I then told my .zprofile file to use my bash_profile and it states this script is deprecated.
Nothing is working, and my Mac forces me to use zsh at bin/zsh
Thanks for all of the help.
Yes official documentation.
composer version 1.10.10
I have been using this macbook and composer without any issues for the past 3 years.
This just started with the update to Catalina 10.15.5.
So yesterday, I went ahead and updated to the most recent ios version 10.15.6. Hoping that would maybe fix any issues.
Again some situations composer works perfectly. Then other situations it does not. See pervious post.
so it appears to be using the same PHP.
MAMP/htdocs/miniblog which php /Applications/MAMP/bin/php/php7.4.2/bin/php MAMP/htdocs/miniblog php -v PHP 7.4.2 (cli) (built: Feb 17 2020 12:56:02) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies
More testing. This is so crazy. So now I already have a Laravel app on my local. So I tried to install Laravel DebugBar. The results nothing happens.
I cannot pin point where the issue is.
This is frustrating.
Still testing. So I went to github found the laravel 5.7 branch. Git cloned to my local. So now I have a copy of Laravel 5.7, I then composer install nothing.
OK. let me adjust my issue. Doing some testing, I git cloned a Laravel repo to my htdocs. Then I composer install and it worked fine.
So it seems when I try to use this composer command to pull a fresh Laravel instance. This does not work.
composer create-project --prefer-dist laravel/laravel blog
I tried older versions the same
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
Started a new Conversation ZSH On Mac, Does Not Install PHP Packages Using Composer Since Update To Catalina 10.15.5
Here is my Mac setup. I am running MAMP 5.7 I also have iTerm 2 w/ zsh installed. Everything was running fine before update.
I had to restart my macbook which then went into a software update. So it updated to 10.15.5 Catalina.
Now, when I am in the terminal, either iTerm 2 zsh, PHP Storm, or Visual Studio Code. my terminal will not run composer install or composer update. It just sits there. No errors. It starts, I get the normal starting line
Loading composer repositories with package information Updating dependencies (including require-dev)
But nothing happens.
In iTerm2 I have the correct PHP path which is /Applications/MAMP/bin/php/php7.4.2/bin/php composer path is correct: /usr/local/bin/composer
I have ran composer clear-cache.
Nothing is working.
Ran composer diagnose. Everything is good. All green OK.
Any help would be greatly appreciated.
I also tried the verbose flag and the same.
Replied to Advanced Query Help
Well it seems everytime I finally break down and post to Laracasts forum. I end up finding my own solution.
So I kept trying to use DB::raw without success, but wrapping it in a DB::select does the job.
Here is my working query for Laravel DB syntax
DB::select(DB::raw('SELECT id,company_name, company_code, company_contact_name, company_contact_email, company_contact_phone, (SELECT COUNT(id) FROM riders WHERE company_id = companies.id) as ridercount FROM companies'));
Started a new Conversation Advanced Query Help
Need some help writing the following mysql working query. Works perfectly in as Normal SQL syntax in mysql workbench into Laravel DB syntax. I am banging my head trying to get this to work using Laravel DB.
SELECT id, company_name, company_contact_name, (SELECT COUNT(id) FROM riders WHERE company_id = companies.id) as ridercount FROM companies
So I query companies table and get what I need, then using that company id, I pass that company id in the second Inner select statement where clause and using Count function, I get the number of riders for that company. here is a brief test example of what is returns
id name company_contact_name ridercount
75 Laravel LLC Taylor Otwell 11
any help would be greatly appreciated.
thanks drewdan for the advice. I will take a look at going this direction.
Started a new Conversation Best Approach For Sending Out Mass Emails & SMS Message
Was wondering the best path forward to sending out mass emails and SMS message. For example, we have a daily message in our Intranet (built using Laravel 6). There is a daily message that needs to go out, using Emails and SMS notifications usually this will contain a link to a document or sometimes just text content.
Doing research since I have never worked with any of Laravels broadcasting, notifications, etc.. what would be the best way to approach this?