I have been learning Laravel for work. I was playing with Laravel back in 2011 but then got distracted with other stuff. In my view, the best way to learn new technologies to create a something with it.
As an indecisive person who rather enjoys collecting data instead of actually making a decision, I decided to build a website that helps with decision making process. I have used different formulas and methods for helping with decision making. When I was buying TV I had stats like pixels per dollar or inches per lb in a spreadsheet. Collecting that data was fun but it was not still clear what each stat really meant.
I have found the best system for me is to rank various pros and cons of each option and use that to assign points to the options. So I wanted to convert this system into a website that can be used by anyone and let me play with Laravel. So here it is: Help Me Decide, Today!
I am not a frontend developer, so UI is simple. It uses jQuery & Bootstrap CSS. There are a few issues with ranking page. I will fix that one day, but for now it should work.
Running unit tests in Laravel, I was getting this error:
ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist
The issue was missing root backslash, make sure you have expected exception like:
After 3 years, I am using Laravel again at work. Laravel has extensive documentation but sometimes it can be a bit verbose. Here are command to get you started as soon as possible. This assumes pretty much fresh install of MacOS.
Check the official site for latest command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install PHP 7.1
brew install homebrew/php/php7
brew install mariadb
Set MariaDB to start as service at the end of installation.
Get Composer from https://getcomposer.org/download/ and make sure to install it globally for easier use.
composer global require "laravel/installer"
Add following line to .bash_profile in home directory
And restart terminal or issue this command:
Valet is very useful for setting up dev environment.
composer global require laravel/valet
Create Projects Directory
Now create a projects directory and let Valet know it should server from that directory.
Test your setup
Now in sites directory, create a new laravel project:
laravel new blog
and load http://blog.dev
If everything went smoothly, you should see a fresh Laravel project.