Commit graph

23 commits

Author SHA1 Message Date
Laravel Shift
8411287d95 Shift cleanup 2021-02-14 19:46:41 +00:00
Laravel Shift
a526f2c3f8 Shift to consistent, fluent response chains 2021-02-14 19:46:03 +00:00
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
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
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
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
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
Josef Citrine
abc521bb2f #109: Open Graph and Twitter cards for tracks 2016-10-30 19:02:14 +00:00
Josef Citrine
e5c9ff3e71 Added dialog for track load errors 2016-10-01 18:20:49 +01:00
Laravel Shift
00f24a5c12 Laravel 5.2 Update (#106)
* Adopt PSR-2 coding style

The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer

* Adopt PHP short array syntax

Laravel 5 adopted the short array syntax which became available in
PHP 5.4.

* Remove SelfHandling from Jobs

Jobs are self handling by default in Laravel 5.2.

* Add new exceptions to `$dontReport` property

* Shift core files

* Shift Middleware

Laravel 5.2 adjusts the `Guard` object used within middleware. In
addition, new `can` and `throttles` middleware were added.

* Shift Input to Request facade

Laravel 5.2 no longer registers the `Input` facade by default. Laravel
now prefers using the `Request` facade or the `$request` object within
*Controllers* instead. Review the [HTTP Requests][1] documentation for
more details.

[1]: https://laravel.com/docs/5.2/requests

* Shift configuration

Laravel 5.2 introduces the `env` app configuration option and removes
the `pretend` mail configuration option. In addition, a few of the
default `providers` and `aliases` bindings were removed.

* Shift Laravel dependencies

* Shift cleanup

* Updated composer.lock

* Updated Middleware to 5.2

* Config update for Laravel 5.2

* [Laravel 5.2] Updated validation strings

* Updated auth config

* Updated to use middleware groups

* Added laravel 5.2 sessions migration
2016-09-29 23:26:31 +01:00
Peter Deltchev
185ead4ed0 Improved a bunch of use statements. 2016-06-12 04:49:24 -07:00
Scrutinizer Auto-Fixer
3b1b03e12b Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 06:29:37 +00:00
Peter Deltchev
7176fb2bca #2: Implemented the inline track editor on track pages.
Also includes a fix for lyrics on track pages.
2016-02-15 23:50:36 -08:00
Peter Deltchev
5ff04ff08d Moved all database models into their own namespace. 2015-12-31 16:24:33 -08:00
Peter Deltchev
ed0a5fb8ac Licensed Pony.fm under the GNU Affero General Public License (AGPL). 2015-10-24 22:17:45 -07:00
Peter Deltchev
a4c24a7d64 Updated Pony.fm's PHP namespace to Poniverse\Ponyfm. 2015-10-23 18:22:14 -07:00
Kelvin
b33dcfd8c6 Update namespaces 2015-09-06 18:21:11 +01:00
Kelvin Zhang
1b30b0cf53 Add controllers 2015-08-31 15:30:02 +01:00