Commit graph

189 commits

Author SHA1 Message Date
Laravel Shift
dce4ad2a74 Leverage injected request object
Laravel automatically injects the current Http [request object][1] to all Controller actions and Middleware. Leveraging this object improves consistency and testability.

[1]: https://laravel.com/docs/requests#accessing-the-request
2021-02-14 19:46:02 +00:00
Laravel Shift
3c43124446 Streamline calls to orderBy 2021-02-14 19:45:58 +00:00
Laravel Shift
3f85a1ca06 Shift to helper methods
Laravel offers many helper functions, including: `view()`, `response()`, `redirect()`, `config()`, and more.

Review the [Helpers][1] documentation for more details.

[1]: https://laravel.com/docs/5.7/helpers
2021-02-14 19:45:52 +00:00
Laravel Shift
2a62eaa50a Global Facades 2021-02-14 19:45:51 +00:00
Laravel Shift
f87b29d064 Shift to new helper methods
Laravel 5 added several new helper functions, including:

- `view()`
- `response()`
- `redirect()`
- `config()`
- `abort()`

Review the [helpers][1] documentation for more details.

[1]: https://laravel.com/docs/5.0/helpers
2021-02-14 19:38:28 +00:00
Adam Lavin
15e01fcc8d
Updates after 8.0 shift 2021-02-14 19:34:53 +00:00
Laravel Shift
d947e5e069 Shift HTTP kernel and middleware 2021-02-14 19:11:14 +00:00
Laravel Shift
a6f58f867f Shift core files 2021-02-14 18:57:23 +00:00
Adam Lavin
301e6478cb
Updates after 6.0 shift 2021-02-14 18:53:00 +00:00
Laravel Shift
0c6c81bdc6 Shift cleanup 2021-02-14 18:21:58 +00:00
Laravel Shift
0c9447a817 Shift Input to Request facade
Laravel 5.2 no longer registers the `Input` facade by default. While
still available in Laravel 5, the `Input` facade is removed in
Laravel 6.
2021-02-14 18:21:31 +00:00
Laravel Shift
ebac1ac435 Shift core files 2021-02-14 18:21:24 +00:00
Laravel Shift
00e7dcfa3d Shift cleanup 2021-02-14 18:01:59 +00:00
Laravel Shift
392f9ffd69 Shift Cache methods to use seconds
To conform with PSR-16 Laravel 5.8 changed the cache expiration time from minutes to seconds. If you were passing an integer, Shift converted this to its integer equivalent in seconds. If you were passing a "minutes" variable, Shift converted this to the relative date time equivalent for readability.
2021-02-14 18:01:31 +00:00
Laravel Shift
bf34794087 Shift deprecated helpers
Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are [deprecated in Laravel 5.8][1] and will be removed in a future version.

[1]: https://github.com/laravel/framework/pull/26898
2021-02-14 18:01:29 +00:00
Laravel Shift
62e45170c1 Shift middleware 2021-02-14 04:23:11 +00:00
Laravel Shift
3573bed220 Shift bindings
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
2021-02-14 02:39:58 +00:00
Laravel Shift
6720c09a1c Shift middleware 2021-02-14 02:39:20 +00:00
Laravel Shift
263ea48c5b Adopt Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-02-14 02:39:15 +00:00
Adam Lavin
a1522f3cd7
Change namespace to App 2021-02-14 02:34:58 +00:00
Logic
0187f1268e Update copyright (#134) 2018-04-26 19:39:37 +01:00
Feld0
a0c68a9a6f Updating my copyright credits 2018-04-20 21:25:36 -07:00
Adam Lavin
30f3ba952a Laravel 5.5 2017-11-28 07:00:11 +00:00
Peter Deltchev
6aee13a500 Minor fixes 2017-10-28 16:50:15 -07:00
Peter Deltchev
dba9ae1b15 #58: Implemented a more stable and useful track details endpoint. 2017-10-28 16:44:08 -07:00
Josef Citrine
1f46b3a85d Check if user exists before checking redirect 2017-09-28 23:18:38 +01:00
Josef Citrine
c6dc6aae32 EQBeats import script and db migration 2017-09-23 09:20:07 +01:00
Josef Citrine
fc305034f5 Fixed query getting wrong user 2017-09-20 22:32:15 +01:00
Josef Citrine
e844054643 Merging accounts now redirects old URL 2017-09-20 22:02:39 +01:00
Josef Citrine
2de284963e Added support for ponify in classifier 2017-05-18 18:25:07 +01:00
Josef Citrine
afa9e8f50e Added archive filter to tracks page 2017-05-16 21:08:46 +01:00
Josef Citrine
780217183e Using CORS middleware for API requests from supported origins 2017-01-03 17:44:40 +00:00
Josef Citrine
f7bc4f0565 Enabled CORS locally 2017-01-02 19:56:17 +00:00
Josef Citrine
b163d70e9c Added API to get logged in user 2017-01-02 03:33:21 +00:00
Peter Deltchev
8c7fe0ea33 #25: Enable certain email notifications by default for new users.
Also fixes a bug with storing OAuth tokens for new users!
2016-12-30 13:23:52 -08:00
Peter Deltchev
7ebab328d4 #25: Enabled email notifications for all users.
This also includes some fixes to the account merging script.
2016-12-30 12:19:10 -08:00
Peter Deltchev
1e670b673f #25: Implemented a command to ensure all users have valid refresh tokens and email addresses. 2016-12-30 08:13:10 -08:00
Peter Deltchev
d2193954a8 Log attempts to sign into disabled accounts. 2016-12-29 20:28:52 -08:00
Peter Deltchev
0677d93e89 #25: Implemented support for Poniverse email address updates. 2016-12-29 08:46:31 -08:00
Peter Deltchev
ab9dd7a1eb #25: Rewrote authentication to use the Poniverse API PHP library. 2016-12-29 08:07:29 -08:00
Peter Deltchev
b7088ccfb7 #25: Built out email unsubscription UI and further tweaked the email template. 2016-12-28 07:07:28 -08:00
Peter Deltchev
79e77a2da0 #25: Limited notification management to admins. 2016-12-24 18:39:05 -08:00
Peter Deltchev
b401a0ae7e #25: Implemented UI for managing email subscriptions. 2016-12-24 18:11:42 -08:00
Peter Deltchev
ff5d8220ef #25: Implemented all basic notification types.
- blocks off the unfinished URL endpoints for email notifications
2016-12-23 06:44:16 -08:00
Peter Deltchev
78b22cdfd0 #25: Added email templates for all currently implemented notification types. 2016-12-23 06:33:45 -08:00
Peter Deltchev
5822408655 #25: New tracks have working email notifications now! 2016-12-23 06:33:33 -08:00
Josef Citrine
510d0e80ac Simplified playlist 404 if statement 2016-12-21 03:05:58 +00:00
Josef Citrine
25e023ccb7 Let admins download all items in playlists 2016-12-21 02:56:19 +00:00
Josef Citrine
3aacb5f87c ID detection should work better now 2016-11-30 22:08:40 +00:00
Josef Citrine
2dd6c663ff Oembed stuffs 2016-11-30 21:42:45 +00:00