diff --git a/composer.json b/composer.json index ffb6ea6..f4a7208 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,8 @@ "swiftmailer/swiftmailer": "^5.4", "corneltek/cliframework": "^3.0", "illuminate/filesystem": "^5.2", - "erusev/parsedown": "^1.6" + "erusev/parsedown": "^1.6", + "matto1990/lastfm-api": "^1.5" }, "autoload": { "classmap": [ diff --git a/composer.lock b/composer.lock index 97e1a61..473081f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "b52ed9a48bc73bde0940da07200c9f92", - "content-hash": "ee30eebf11e0d54fe7b19abbd4f134ea", + "hash": "13c2ef04ff1ab1ec56de6ba0e0b6d618", + "content-hash": "0271a89a85f0cb235b06b4473e71a45c", "packages": [ { "name": "corneltek/class-template", @@ -1018,6 +1018,58 @@ "homepage": "http://laravel.com", "time": "2016-08-05 14:49:58" }, + { + "name": "matto1990/lastfm-api", + "version": "v1.5", + "source": { + "type": "git", + "url": "https://github.com/matto1990/PHP-Last.fm-API.git", + "reference": "a02fadc09ebb6cfedc4236b622b02c254247a94e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/matto1990/PHP-Last.fm-API/zipball/a02fadc09ebb6cfedc4236b622b02c254247a94e", + "reference": "a02fadc09ebb6cfedc4236b622b02c254247a94e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "php": ">=5.3.3", + "phpunit/phpunit": "~4.8", + "vlucas/phpdotenv": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "LastFmApi\\": "src/lastfmapi/", + "Tests\\": "tests" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marcos", + "email": "devilcius@gmail.com" + }, + { + "name": "Matt", + "email": "matt@oakes.ws" + } + ], + "description": "Last.fm webservice client", + "homepage": "https://github.com/matto1990/PHP-Last.fm-API", + "keywords": [ + "api", + "last.fm", + "webservice client" + ], + "time": "2016-07-22 13:10:12" + }, { "name": "nesbot/carbon", "version": "1.21.0", diff --git a/database/2013_01_27_221444_base_tables.php b/database/2013_01_27_221444_base_tables.php index 1a7a526..e4505f9 100644 --- a/database/2013_01_27_221444_base_tables.php +++ b/database/2013_01_27_221444_base_tables.php @@ -48,7 +48,7 @@ class BaseTables extends Migration ->unsigned() ->default(0); - $table->text('comment_text', 255); + $table->text('comment_text'); }); $schema->create('emoticons', function (Blueprint $table) { diff --git a/database/2016_09_19_114415_last_listened_music.php b/database/2016_09_19_114415_last_listened_music.php new file mode 100644 index 0000000..0f73f72 --- /dev/null +++ b/database/2016_09_19_114415_last_listened_music.php @@ -0,0 +1,55 @@ +table('users', function (Blueprint $table) { + $table->text('user_last_track') + ->nullable(); + + $table->string('user_last_track_url', 255) + ->nullable() + ->default(null); + + $table->text('user_last_artist') + ->nullable(); + + $table->string('user_last_artist_url', 255) + ->nullable() + ->default(null); + + $table->string('user_last_cover', 255) + ->nullable() + ->default(null); + }); + } + + /** + * Reverse the migrations. + * @return void + */ + public function down() + { + $schema = DB::getSchemaBuilder(); + + $schema->table('users', function (Blueprint $table) { + $table->dropColumn([ + 'user_last_track', + 'user_last_track_url', + 'user_last_artist', + 'user_last_artist_url', + 'user_last_cover', + ]); + }); + } +}