Edit the file php.ini (or PHP FPM if on Forge):
memory_limit = 512M
post_max_size = 20M
upload_max_filesize = 20M
| <?php | |
| /** | |
| * Distance between two points | |
| * | |
| * @param float $lat1 Latitude 1 | |
| * @param float $lng1 Longitude 1 | |
| * @param float $lat2 Latitude 2 | |
| * @param float $lng2 Longitude 2 | |
| * @param string $unit [mi|km] miles|kilometers |
| abstract class AbstractPageBuilder { | |
| abstract function getPage(); | |
| } | |
| abstract class AbstractPageDirector { | |
| abstract function __construct(AbstractPageBuilder $builder_in); | |
| abstract function buildPage(); | |
| abstract function getPage(); | |
| } |
| class Book { | |
| private $author; | |
| private $title; | |
| function __construct($title_in, $author_in) { | |
| $this->author = $author_in; | |
| $this->title = $title_in; | |
| } | |
| function getAuthor() { | |
| return $this->author; | |
| } |
| <?php | |
| 'mysql' => [ | |
| 'driver' => 'mysql', | |
| 'host' => env('DB_HOST', 'homestead' == gethostname() ? 'localhost' : '127.0.0.1'), | |
| 'database' => env('DB_DATABASE', 'forge'), | |
| 'username' => env('DB_USERNAME', 'homestead'), | |
| 'password' => env('DB_PASSWORD', 'secret'), | |
| 'port' => env('DB_PORT', 'homestead' == gethostname() ? null : 33060), | |
| 'charset' => 'utf8mb4', |
| class Current extends Model | |
| { | |
| public function final() | |
| { | |
| return $this->hasManyThrough( | |
| 'App\Final', | |
| 'App\Intermediate', | |
| 'intermediate_id', // Foreign key on Intermediate | |
| 'final_id', // Foreign key on Final | |
| 'id', // Local key on Current |
Edit the file php.ini (or PHP FPM if on Forge):
memory_limit = 512M
post_max_size = 20M
upload_max_filesize = 20M
php artisan make:notification MyResetPassword to create a Notification Class MyResetPassword at app/Notificationsuse App\Notifications\MyResetPassword; to the User modelpublic function sendPasswordResetNotification($token)
{
$this->notify(new MyResetPassword($token));
}
| on run {input, parameters} | |
| activate application "Sketch" | |
| repeat 9 times | |
| tell application "System Events" | |
| key code 76 | |
| key code 123 using {command down} | |
| key code 124 using {shift down, option down} | |
| key code 124 using {shift down} |
| sudo lsof -i tcp:8000 | |
| kill -9 PID |
| git update-index --assume-unchanged <file> |