Host images locally
We don’t need the complexity of S3. Sepcifically the complexity of managing my own AWS account, flysystem made the Laravel side easy. A command is added to copy the the S3 files over to local storage.
This commit is contained in:
parent
d80e8164c8
commit
d7da42b626
47 changed files with 295 additions and 214 deletions
|
@ -71,13 +71,13 @@ class PlacesTest extends TestCase
|
|||
{
|
||||
Place::factory(10)->create();
|
||||
|
||||
$place = new Place();
|
||||
$place = new Place;
|
||||
$place->name = 'Temp Place';
|
||||
$place->latitude = 37.422009;
|
||||
$place->longitude = -122.084047;
|
||||
$place->external_urls = 'https://www.openstreetmap.org/way/1234';
|
||||
$place->save();
|
||||
$service = new PlaceService();
|
||||
$service = new PlaceService;
|
||||
$ret = $service->createPlaceFromCheckin([
|
||||
'properties' => [
|
||||
'url' => ['https://www.openstreetmap.org/way/1234'],
|
||||
|
@ -92,7 +92,7 @@ class PlacesTest extends TestCase
|
|||
$this->expectException(InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Missing required name');
|
||||
|
||||
$service = new PlaceService();
|
||||
$service = new PlaceService;
|
||||
$service->createPlaceFromCheckin(['foo' => 'bar']);
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ class PlacesTest extends TestCase
|
|||
$this->expectException(InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Missing required longitude/latitude');
|
||||
|
||||
$service = new PlaceService();
|
||||
$service = new PlaceService;
|
||||
$service->createPlaceFromCheckin(['properties' => ['name' => 'bar']]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue