diff --git a/app/Http/Controllers/Staff/ForumController.php b/app/Http/Controllers/Staff/ForumController.php index 8a4a4e796..578f425e6 100644 --- a/app/Http/Controllers/Staff/ForumController.php +++ b/app/Http/Controllers/Staff/ForumController.php @@ -56,13 +56,15 @@ class ForumController extends Controller $forum = Forum::create( ['slug' => Str::slug($request->title)] - + $request->safe()->only([ + + $request->safe()->only( + [ 'title', 'position', 'description', 'parent_id' ] - )); + ) + ); // Permissions foreach ($groups as $k => $group) { diff --git a/app/Http/Controllers/Staff/ReportController.php b/app/Http/Controllers/Staff/ReportController.php index 714cb7825..9da7b212f 100644 --- a/app/Http/Controllers/Staff/ReportController.php +++ b/app/Http/Controllers/Staff/ReportController.php @@ -52,7 +52,7 @@ class ReportController extends Controller { $staff = \auth()->user(); $report = Report::findOrFail($id); - + if ($report->solved == 1) { return \to_route('staff.reports.index') ->withErrors('This Report Has Already Been Solved'); diff --git a/app/Http/Requests/Staff/StoreBanRequest.php b/app/Http/Requests/Staff/StoreBanRequest.php index 7240f409d..ed53fdc3a 100644 --- a/app/Http/Requests/Staff/StoreBanRequest.php +++ b/app/Http/Requests/Staff/StoreBanRequest.php @@ -11,7 +11,7 @@ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ - namespace App\Http\Requests\Staff; +namespace App\Http\Requests\Staff; use Illuminate\Foundation\Http\FormRequest; diff --git a/app/Http/Requests/Staff/UpdateBonExchangeRequest.php b/app/Http/Requests/Staff/UpdateBonExchangeRequest.php index 1472ce5a6..83ccac03f 100644 --- a/app/Http/Requests/Staff/UpdateBonExchangeRequest.php +++ b/app/Http/Requests/Staff/UpdateBonExchangeRequest.php @@ -14,7 +14,6 @@ namespace App\Http\Requests\Staff; use Illuminate\Foundation\Http\FormRequest; -use Illuminate\Validation\Rule; class UpdateBonExchangeRequest extends FormRequest { diff --git a/app/Http/Requests/Staff/UpdateRssRequest.php b/app/Http/Requests/Staff/UpdateRssRequest.php index 171e75130..bf197aa46 100644 --- a/app/Http/Requests/Staff/UpdateRssRequest.php +++ b/app/Http/Requests/Staff/UpdateRssRequest.php @@ -58,7 +58,7 @@ class UpdateRssRequest extends FormRequest 'personalrelease' => 'sometimes|boolean', 'bookmark' => 'sometimes|boolean', 'alive' => 'sometimes|boolean', - 'dying' => 'sometimes|boolean', + 'dying' => 'sometimes|boolean', 'dead' => 'sometimes|boolean', ]; } diff --git a/app/Models/Article.php b/app/Models/Article.php index 376275213..93f2fd5e0 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -27,7 +27,7 @@ class Article extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Ban.php b/app/Models/Ban.php index 2c00ca74f..8497a55d3 100644 --- a/app/Models/Ban.php +++ b/app/Models/Ban.php @@ -24,7 +24,7 @@ class Ban extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/BlacklistClient.php b/app/Models/BlacklistClient.php index 4c8edde64..eb66e40ff 100644 --- a/app/Models/BlacklistClient.php +++ b/app/Models/BlacklistClient.php @@ -19,7 +19,7 @@ class BlacklistClient extends Model { /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/BonExchange.php b/app/Models/BonExchange.php index 13914759b..8caade488 100644 --- a/app/Models/BonExchange.php +++ b/app/Models/BonExchange.php @@ -48,7 +48,7 @@ class BonExchange extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id']; diff --git a/app/Models/Bot.php b/app/Models/Bot.php index 498177446..a010e0746 100644 --- a/app/Models/Bot.php +++ b/app/Models/Bot.php @@ -40,7 +40,7 @@ class Bot extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Category.php b/app/Models/Category.php index d3d0ab725..59241eb1a 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -31,7 +31,7 @@ class Category extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id']; diff --git a/app/Models/ChatStatus.php b/app/Models/ChatStatus.php index f31dae56b..eaf910e2f 100644 --- a/app/Models/ChatStatus.php +++ b/app/Models/ChatStatus.php @@ -24,7 +24,7 @@ class ChatStatus extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Distributor.php b/app/Models/Distributor.php index fb827924f..81b662d45 100644 --- a/app/Models/Distributor.php +++ b/app/Models/Distributor.php @@ -31,7 +31,7 @@ class Distributor extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Forum.php b/app/Models/Forum.php index 9113b29ed..b6abff797 100644 --- a/app/Models/Forum.php +++ b/app/Models/Forum.php @@ -25,7 +25,7 @@ class Forum extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Group.php b/app/Models/Group.php index ba2b3085b..01e00fcd5 100644 --- a/app/Models/Group.php +++ b/app/Models/Group.php @@ -24,7 +24,7 @@ class Group extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Internal.php b/app/Models/Internal.php index e72d14d48..852b50a91 100644 --- a/app/Models/Internal.php +++ b/app/Models/Internal.php @@ -24,7 +24,7 @@ class Internal extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/MediaLanguage.php b/app/Models/MediaLanguage.php index 85eda9545..81532d80c 100644 --- a/app/Models/MediaLanguage.php +++ b/app/Models/MediaLanguage.php @@ -22,7 +22,7 @@ class MediaLanguage extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Note.php b/app/Models/Note.php index c144cee9c..3ef61f8c7 100644 --- a/app/Models/Note.php +++ b/app/Models/Note.php @@ -31,7 +31,7 @@ class Note extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Page.php b/app/Models/Page.php index 90c24735d..d2c104160 100644 --- a/app/Models/Page.php +++ b/app/Models/Page.php @@ -26,7 +26,7 @@ class Page extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/PrivateMessage.php b/app/Models/PrivateMessage.php index 06c024a7b..6e4bdfb3f 100644 --- a/app/Models/PrivateMessage.php +++ b/app/Models/PrivateMessage.php @@ -27,7 +27,7 @@ class PrivateMessage extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Region.php b/app/Models/Region.php index 9f95fe051..05191bbb6 100644 --- a/app/Models/Region.php +++ b/app/Models/Region.php @@ -31,7 +31,7 @@ class Region extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Report.php b/app/Models/Report.php index 2c8e72c62..f3f66d388 100644 --- a/app/Models/Report.php +++ b/app/Models/Report.php @@ -24,7 +24,7 @@ class Report extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Resolution.php b/app/Models/Resolution.php index fd8da85b7..a9a8a8643 100644 --- a/app/Models/Resolution.php +++ b/app/Models/Resolution.php @@ -31,7 +31,7 @@ class Resolution extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Rss.php b/app/Models/Rss.php index 354326fe5..cbc31f182 100644 --- a/app/Models/Rss.php +++ b/app/Models/Rss.php @@ -51,7 +51,7 @@ class Rss extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Type.php b/app/Models/Type.php index 4fd2c55e6..a50da5cf9 100644 --- a/app/Models/Type.php +++ b/app/Models/Type.php @@ -31,7 +31,7 @@ class Type extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/User.php b/app/Models/User.php index a46b0d004..218c44e64 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -58,7 +58,7 @@ class User extends Authenticatable /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at']; diff --git a/app/Models/Watchlist.php b/app/Models/Watchlist.php index 91c129bb0..739f9eff9 100644 --- a/app/Models/Watchlist.php +++ b/app/Models/Watchlist.php @@ -13,7 +13,7 @@ class Watchlist extends Model /** * The attributes that aren't mass assignable. - * + * * @var string[] */ protected $guarded = ['id', 'created_at', 'updated_at'];