Commit graph

1083 commits

Author SHA1 Message Date
Laravel Shift
3b2d58b77f Remove unnecessary table name property
By convention, Laravel uses the "snake case", plural name of the class as the table name.
2021-02-14 19:46:04 +00:00
Laravel Shift
9374905d7b Shift options array to fluent route methods 2021-02-14 19:46:03 +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
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
8225ff5b92 Streamline Blade directives
Laravel offers many built-in Blade directives, including: `@auth`, `@guest` ,`@csrf`, `@method`, `@json`, and more.

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

[1]: https://laravel.com/docs/5.7/blade
2021-02-14 19:45:51 +00:00
Laravel Shift
2a62eaa50a Global Facades 2021-02-14 19:45:51 +00:00
Laravel Shift
b8fa6cb1f7 Modernize PHP syntax
PHP 7 adopts a short array syntax as well as prefers single quoted
string were possible.
2021-02-14 19:45:36 +00:00
Adam Lavin
e030bf2591
Upgrade Checker (#151)
Upgrade Checker
2021-02-14 19:44:17 +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
3d511c42e8
Merge pull request #150 from Poniverse/shift-40782
Co-authored-by: Laravel Shift <shift@laravelshift.com>
2021-02-14 19:35:55 +00:00
Adam Lavin
0af1dfa71d
Add missing migration 2021-02-14 19:35:26 +00:00
Adam Lavin
15e01fcc8d
Updates after 8.0 shift 2021-02-14 19:34:53 +00:00
Laravel Shift
4a37c63876 Shift cleanup 2021-02-14 19:11:44 +00:00
Laravel Shift
a7e6e56356 Shift Laravel dependencies 2021-02-14 19:11:18 +00:00
Laravel Shift
ef0ff90938 Default config files
In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
2021-02-14 19:11:18 +00:00
Laravel Shift
cc27d6b410 Shift config files 2021-02-14 19:11:18 +00:00
Laravel Shift
8890012fec Shift PSR-4 autoloading 2021-02-14 19:11:17 +00:00
Laravel Shift
bf00a958cc Namespace seeders 2021-02-14 19:11:17 +00:00
Laravel Shift
635b39d109 Shift to class based factories 2021-02-14 19:11:17 +00:00
Laravel Shift
75cf92eeaf Ignore temporary framework files 2021-02-14 19:11:16 +00:00
Laravel Shift
675ecd5de9 Shift console routes 2021-02-14 19:11:15 +00:00
Laravel Shift
f2dc11ea5c Shift service providers 2021-02-14 19:11:15 +00:00
Laravel Shift
d947e5e069 Shift HTTP kernel and middleware 2021-02-14 19:11:14 +00:00
Laravel Shift
0098ac397c Shift core files 2021-02-14 19:11:13 +00:00
Adam Lavin
ccbf61f7b8
Merge pull request #149 from Poniverse/shift-40781 2021-02-14 19:10:13 +00:00
Adam Lavin
7b64f5b1a7
Updates after 7.0 shift 2021-02-14 19:09:50 +00:00
Laravel Shift
3cac627f82 Shift cleanup 2021-02-14 18:57:52 +00:00
Laravel Shift
a4ad8768d8 Shift Laravel dependencies 2021-02-14 18:57:25 +00:00
Laravel Shift
6dd0eaa33a Default config files
In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
2021-02-14 18:57:25 +00:00
Laravel Shift
7a5c230fc2 Shift config files 2021-02-14 18:57:25 +00:00
Laravel Shift
f639c5653e Shift to Throwable 2021-02-14 18:57:24 +00:00
Laravel Shift
a6f58f867f Shift core files 2021-02-14 18:57:23 +00:00
Adam Lavin
8a6be4ea47
Merge pull request #148 from Poniverse/shift-40779 2021-02-14 18:54:59 +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
840d4ce093 Shift Laravel dependencies 2021-02-14 18:21:31 +00:00
Laravel Shift
e140dd8895 Default config files
In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
2021-02-14 18:21:31 +00:00
Laravel Shift
78d50ddc51 Shift config files 2021-02-14 18:21:31 +00:00
Laravel Shift
cd5e3e9030 Leverage HOME constant 2021-02-14 18:21:25 +00:00
Laravel Shift
ebac1ac435 Shift core files 2021-02-14 18:21:24 +00:00
Adam Lavin
bcc42c397b
Merge pull request #147 from Poniverse/shift-40778 2021-02-14 18:20:20 +00:00
Adam Lavin
07f9f89cff
Update pheanstalk to v4 2021-02-14 18:19:22 +00:00
Adam Lavin
f50be2eb89
package updates 2021-02-14 18:17:50 +00:00
Adam Lavin
66af34ab54
Updates following 5.8 shift 2021-02-14 18:15:52 +00:00
Laravel Shift
00e7dcfa3d Shift cleanup 2021-02-14 18:01:59 +00:00
Laravel Shift
795f314d1a Shift return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
2021-02-14 18:01:31 +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