Skip to content

Commit

Permalink
fix: Table dropping order corrected to maintain constraints (#67)
Browse files Browse the repository at this point in the history
* fix: Table dropping order corrected to maintain constraints

* chore: Set default disk as public disk

* docs: Update media_url documentation to reflect its nature as a URI
  • Loading branch information
FarhanShares authored Oct 7, 2023
1 parent 782aca2 commit c7b51a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ An instance of Media has the following attributes:
'mime_type' => string
'size' => int // in bytes
'friendly_size' => string // in human readable format
'media_url' => string // original media url
'media_url' => string // media storage URL for the original media file. Usage in Blade: {{ asset($media->media_url) }}.
'disk' => string
'data' => array // casts as array
'created_at' => string
Expand Down
2 changes: 1 addition & 1 deletion config/mediaman.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|
*/

'disk' => 'local',
'disk' => 'public',

/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/create_mediaman_tables.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class CreateMediaManTables extends Migration
*/
public function down()
{
Schema::dropIfExists(config('mediaman.tables.collections'));
Schema::dropIfExists(config('mediaman.tables.media'));
Schema::dropIfExists(config('mediaman.tables.collection_media'));
Schema::dropIfExists(config('mediaman.tables.mediables'));
Schema::dropIfExists(config('mediaman.tables.collections'));
Schema::dropIfExists(config('mediaman.tables.media'));
}
}

0 comments on commit c7b51a9

Please sign in to comment.