Skip to content

jigsawsoul/nova-spotify-auth-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova Spotify Auth Tool

Latest Version on Packagist Build Status Quality Score Total Downloads

This Nova tool adds a Spotify auth section to the Nova Sidebar. Under the hood it uses the mgoigfer/laravel-spotify-wrapper package.

You can authenticate yourself through Spotify API and store a refresh token to your database.

Laravel Nova Spotify Auth Tool

Installation

  1. You must install mgoigfer/laravel-spotify-wrapper into your Laravel app.

  2. You can install this package via Composer:

composer require mgoigfer/nova-spotify-auth-tool
  1. Register the tool in app/Providers/NovaServiceProvider:
public function tools()
{
    return [
        new \Mgoigfer\SpotifyAuthTool\SpotifyAuthTool,
    ];
}
  1. Publish and run the application migrations:
php artisan vendor:publish --provider="Mgoigfer\SpotifyAuthTool\SpotifyAuthToolServiceProvider"

php artisan migrate
  1. Register the following redirect URI in your Spotify app:
<APP_URL>/nova-vendor/nova-spotify-auth-tool/auth

Usage

To get the Spotify user ID and the refresh token stored in the database:

use Mgoigfer\SpotifyAuthTool\Facades\Spotify;

$userId = Spotify::userId();
$refreshToken = Spotify::refreshToken();

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A Spotify auth tool to use in your Laravel Nova apps 🚀

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 76.0%
  • Vue 10.8%
  • HTML 10.1%
  • JavaScript 3.0%
  • CSS 0.1%