repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateUserRequest.php
app/Http/Requests/UpdateUserRequest.php
<?php namespace App\Http\Requests; use Auth; use Illuminate\Foundation\Http\FormRequest; class UpdateUserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return Auth::check(); } /** * Get t...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateLessonRequest.php
app/Http/Requests/UpdateLessonRequest.php
<?php namespace App\Http\Requests; use Auth; use Illuminate\Foundation\Http\FormRequest; class UpdateLessonRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::user()->is_ad...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateConfigRequest.php
app/Http/Requests/UpdateConfigRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateConfigRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rul...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateCommentRequest.php
app/Http/Requests/UpdateCommentRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateCommentRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return false; } /** *...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateQuestionRequest.php
app/Http/Requests/UpdateQuestionRequest.php
<?php namespace App\Http\Requests; use Auth; use Illuminate\Foundation\Http\FormRequest; class UpdateQuestionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::check(); ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateModuleRequest.php
app/Http/Requests/UpdateModuleRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; class UpdateModuleRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return Auth::check()...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/StoreSoftSecretRequest.php
app/Http/Requests/StoreSoftSecretRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreSoftSecretRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return false; } /** * Get the validation...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateSignCountRequest.php
app/Http/Requests/UpdateSignCountRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateSignCountRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return false; } /** ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/StoreLessonRequest.php
app/Http/Requests/StoreLessonRequest.php
<?php namespace App\Http\Requests; use Auth; use Illuminate\Foundation\Http\FormRequest; class StoreLessonRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::user()->is_adm...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/StorePackageRequest.php
app/Http/Requests/StorePackageRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StorePackageRequest extends FormRequest { public function authorize(): bool { return isAdministrator(); } public function rules(): array { return [ 'title' => ['required'], ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/StoreShortVideoRequest.php
app/Http/Requests/StoreShortVideoRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreShortVideoRequest extends FormRequest { public function authorize() { return isAdministrator(); } public function rules() { return []; } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Requests/UpdateVideoPlayHistoryRequest.php
app/Http/Requests/UpdateVideoPlayHistoryRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateVideoPlayHistoryRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return false; } /...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/TopicController.php
app/Http/Controllers/TopicController.php
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Models\User; use DB; use Illuminate\Support\Facades\Auth; use App\Models\Topic; use App\Http\Requests\StoreTopicRequest; use App\Http\Requests\UpdateTopicRequest; use App\Http\Resources\TopicResource; class TopicController extends Con...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WepayController.php
app/Http/Controllers/WepayController.php
<?php namespace App\Http\Controllers; use App\Models\Order; use Yansongda\Pay\Pay; use App\Services\OrderService; use App\Services\SoftSecretService; use App\Services\SubscribeService; use Endroid\QrCode\Builder\Builder; use Houdunwang\Wechat\User; //微信支付 class WepayController extends Controller { public functio...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SoftSecretController.php
app/Http/Controllers/SoftSecretController.php
<?php namespace App\Http\Controllers; use App\Models\SoftSecret; use App\Rules\CheckSoftSecret; use App\Services\SoftSecretService; use Auth; use Closure; use Exception; use Illuminate\Http\Request; class SoftSecretController extends Controller { public function __construct() { $this->middleware("aut...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SoftController.php
app/Http/Controllers/SoftController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreSoftRequest; use App\Http\Requests\UpdateSoftRequest; use App\Http\Resources\SoftResource; use App\Http\Resources\TopicResource; use App\Models\Soft; use Illuminate\Http\Request; class SoftController extends Controller { function __construct() ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/FollowerController.php
app/Http/Controllers/FollowerController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\UserResource; use App\Models\User; use Auth; use Illuminate\Http\Request; class FollowerController extends Controller { public function __construct() { $this->middleware('auth:sanctum')->only(['make']); } //关注列表 public function...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/ConfigController.php
app/Http/Controllers/ConfigController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Config; class ConfigController extends Controller { public function __construct() { $this->middleware(['auth:sanctum'])->only(['all', 'update']); } public function all() ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WechatMenuController.php
app/Http/Controllers/WechatMenuController.php
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Houdunwang\Wechat\Button; use App\Http\Requests\StoreWechatMenuRequest; use Log; class WechatMenuController extends Controller { protected $button; public function __construct() { $this->middleware('auth:sanctum')->on...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/LearnHistoryController.php
app/Http/Controllers/LearnHistoryController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use App\Models\Lesson; use App\Models\User; use App\Models\VideoPlayHistory; use App\Http\Resources\VideoResource; //学习历史 class LearnHistoryController extends Controller { ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WechatController.php
app/Http/Controllers/WechatController.php
<?php namespace App\Http\Controllers; use App\Models\Module; use App\Services\WechatService; use Cache; use Houdunwang\Wechat\Message; use Log; use App\Models\Morning; use App\Wechat\Process; //与微信服务器通信接口 class WechatController extends Controller { protected $msg; public function __construct() { ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SubscribeController.php
app/Http/Controllers/SubscribeController.php
<?php namespace App\Http\Controllers; use App\Models\User; use Hash; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use App\Services\OrderService; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use App\Models\Subscribe; use App\Services\SubscribeService; use App\Http\Resources...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/CodeController.php
app/Http/Controllers/CodeController.php
<?php namespace App\Http\Controllers; use App\Models\User; use App\Rules\PhoneRule; use App\Services\CodeService; use Auth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\RateLimiter; /** * 发送验证码 * @package App\Http\Controllers */ class CodeController extends...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WallpaperController.php
app/Http/Controllers/WallpaperController.php
<?php namespace App\Http\Controllers; use App\Services\ImageService; use Illuminate\Http\Request; class WallpaperController extends Controller { //压缩壁纸图片 public function zip() { $files = collect(glob(base_path('wallpaper/*'))); if (!is_dir(base_path('wallpaper/thumb'))) mkdir(base_path('w...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/ShortVideoController.php
app/Http/Controllers/ShortVideoController.php
<?php namespace App\Http\Controllers; use App\Services\AliyunService; use App\Http\Controllers\Controller; use App\Models\ShortVideo; use App\Http\Requests\StoreShortVideoRequest; use App\Http\Requests\UpdateShortVideoRequest; use App\Http\Resources\ShortVideoResource; class ShortVideoController extends Controller {...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SignController.php
app/Http/Controllers/SignController.php
<?php namespace App\Http\Controllers; use Auth; use App\Http\Controllers\Controller; use App\Models\Sign; use App\Models\User; use App\Http\Requests\StoreSignRequest; use App\Http\Resources\SignResource; class SignController extends Controller { public function __construct() { $this->middleware(['aut...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/Controller.php
app/Http/Controllers/Controller.php
<?php namespace App\Http\Controllers; use F9Web\ApiResponseHelpers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesRequests, ValidatesReq...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/QuestionAnswerController.php
app/Http/Controllers/QuestionAnswerController.php
<?php namespace App\Http\Controllers; use Auth; use App\Http\Controllers\Controller; use App\Models\Question; use App\Models\QuestionAnswer; use App\Http\Requests\StoreQuestionAnswerRequest; use App\Http\Resources\QuestionAnswerResource; //考试答题 class QuestionAnswerController extends Controller { public function ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/OrderController.php
app/Http/Controllers/OrderController.php
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Models\Package; use App\Services\OrderService; class OrderController extends Controller { public function __construct() { $this->middleware(['auth:sanctum']); } //创建定单 public function create(Package $packa...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/CommentController.php
app/Http/Controllers/CommentController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreCommentRequest; use App\Http\Requests\UpdateCommentRequest; use App\Http\Resources\CommentResource; use App\Models\Comment; use Auth; use Request; class CommentController extends Controller { public function __construct() { $this->middl...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/VideoController.php
app/Http/Controllers/VideoController.php
<?php namespace App\Http\Controllers; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Services\AliyunService; use App\Http\Controllers\Controller; use App\Models\Lesson; use App\Models\Video; use App\Models\VideoPlayHistory; use App\Http\Req...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/FavoriteController.php
app/Http/Controllers/FavoriteController.php
<?php namespace App\Http\Controllers; use App\Models\User; use Auth; use Illuminate\Http\Request; //收藏 class FavoriteController extends Controller { public function __construct() { $this->middleware('auth:sanctum')->except(['getUserFavoriteList']); } //收藏列表 public function getUserFavorit...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/HdcmsController.php
app/Http/Controllers/HdcmsController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\UserResource; use App\Models\User; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; //对接HDCMS.COM网站 class HdcmsController extends Controller { public function login(Request $reques...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/ActivityController.php
app/Http/Controllers/ActivityController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\ActivityResource; use App\Models\Activity; use Illuminate\Http\Request; //全站动态 class ActivityController extends Controller { public function index() { return ActivityResource::collection(Activity::latest('id')->paginate(15)); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/UserController.php
app/Http/Controllers/UserController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\UpdateUserRequest; use App\Http\Resources\UserResource; use App\Models\Activity; use App\Models\Comment; use App\Models\Favorite; use App\Models\Favour; use App\Models\Morning; use App\Models\Notification; use App\Models\Question; use App\Models\QuestionAnsw...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/QuestionController.php
app/Http/Controllers/QuestionController.php
<?php namespace App\Http\Controllers; use App\Models\User; use Auth; use App\Http\Controllers\Controller; use App\Models\Question; use App\Http\Requests\StoreQuestionRequest; use App\Http\Requests\UpdateQuestionRequest; use App\Http\Resources\QuestionResource; class QuestionController extends Controller { public...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/FavourController.php
app/Http/Controllers/FavourController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\UserResource; use Auth; use Illuminate\Http\Request; //点赞 class FavourController extends Controller { public function __construct() { $this->middleware('auth:sanctum'); } public function make() { $model = modelInstance(...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/AuthController.php
app/Http/Controllers/AuthController.php
<?php namespace App\Http\Controllers; use App\Models\User; use App\Rules\CodeRule; use Auth; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; use Illuminate\Validation\ValidationException; class AuthController ext...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/MorningController.php
app/Http/Controllers/MorningController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\UserResource; use Auth; use DB; use App\Http\Controllers\Controller; use App\Models\Morning; use App\Models\User; use App\Http\Requests\StoreMorningRequest; use App\Http\Requests\UpdateMorningRequest; use App\Http\Resources\MorningResource; class MorningC...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/NotificationController.php
app/Http/Controllers/NotificationController.php
<?php namespace App\Http\Controllers; use App\Http\Resources\NotificationResource; use App\Models\Notification as ModelsNotification; use Auth; use Illuminate\Http\Request; class NotificationController extends Controller { public function __construct() { $this->middleware(['auth:sanctum']); } ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/AlipayController.php
app/Http/Controllers/AlipayController.php
<?php namespace App\Http\Controllers; use App\Models\Order; use App\Services\OrderService; use App\Services\SoftSecretService; use App\Services\SubscribeService; use Illuminate\Http\Request; use Yansongda\Pay\Pay; class AlipayController extends Controller { public function __construct() { $this->midd...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/ShotController.php
app/Http/Controllers/ShotController.php
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; //评论或直播截图 class ShotController extends Controller { public function comment() { $files = collect(glob(public_path('assets/shot/comment/*'))); return $files->map( fn ($file) => ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/PackageController.php
app/Http/Controllers/PackageController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\StorePackageRequest; use App\Http\Requests\UpdatePackageRequest; use App\Http\Resources\PackageResource; use App\Models\Package; class PackageController extends Controller { public function __construct() { $this->middleware('auth:sanctum')->...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SystemController.php
app/Http/Controllers/SystemController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Lesson; use App\Models\System; use App\Models\Video; use App\Http\Requests\StoreSystemRequest; use App\Http\Requests\UpdateSystemRequest; use App\Http\Resources\SystemResource; class SystemControlle...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/LessonController.php
app/Http/Controllers/LessonController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Lesson; use App\Models\Video; use App\Http\Requests\StoreLessonRequest; use App\Http\Requests\UpdateLessonRequest; use App\Http\Resources\LessonResource; class LessonController extends Controller { ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/SignCountController.php
app/Http/Controllers/SignCountController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreSignCountRequest; use App\Http\Requests\UpdateSignCountRequest; use App\Http\Resources\SignCountResource; use App\Models\SignCount; use Auth; use App\Http\Controllers\Controller; class SignCountController extends Controller { public function __cons...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WechatLoginController.php
app/Http/Controllers/WechatLoginController.php
<?php namespace App\Http\Controllers; use App\Services\WechatService; use Illuminate\Support\Facades\Cache; use Request; use Houdunwang\Wechat\User as WechatUser; use Houdunwang\Wechat\Qrcode; use Route; use URL; //微信登录 class WechatLoginController extends Controller { protected $qr; public function __constr...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/WechatBindController.php
app/Http/Controllers/WechatBindController.php
<?php namespace App\Http\Controllers; use App\Models\User; use Auth; use Cache; use Log; use Houdunwang\Wechat\User as WechatUser; //微信绑定 class WechatBindController extends Controller { public function __construct() { $this->middleware(['auth:sanctum']); } //PC扫码绑定微信 public function bind...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Controllers/UploadController.php
app/Http/Controllers/UploadController.php
<?php namespace App\Http\Controllers; use App\Services\OssService; use App\Services\UploadService; use Auth; use Exception; use Illuminate\Http\Request; use RateLimiter; use Spatie\Image\Manipulations; use Validator; //上传 class UploadController extends Controller { public function __construct() { $th...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/SiteMiddleware.php
app/Http/Middleware/SiteMiddleware.php
<?php namespace App\Http\Middleware; use App\Models\Config; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\URL; use Route; use Symfony\Component\HttpFoundation\Response; class SiteMiddleware { public function handle(Request $request, Closure $next): Response { $this->load();...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/Authenticate.php
app/Http/Middleware/Authenticate.php
<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Http\Request; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. */ protected function redirectTo(Request $request...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/RedirectIfAuthenticated.php
app/Http/Middleware/RedirectIfAuthenticated.php
<?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Symfony\Component\HttpFoundation\Response; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Closure(\Illumin...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/TrustProxies.php
app/Http/Middleware/TrustProxies.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustProxies as Middleware; use Illuminate\Http\Request; class TrustProxies extends Middleware { /** * The trusted proxies for this application. * * @var array<int, string>|string|null */ protected $proxies; /** ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/ValidateSignature.php
app/Http/Middleware/ValidateSignature.php
<?php namespace App\Http\Middleware; use Illuminate\Routing\Middleware\ValidateSignature as Middleware; class ValidateSignature extends Middleware { /** * The names of the query string parameters that should be ignored. * * @var array<int, string> */ protected $except = [ // 'fbcl...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/PreventRequestsDuringMaintenance.php
app/Http/Middleware/PreventRequestsDuringMaintenance.php
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware; class PreventRequestsDuringMaintenance extends Middleware { /** * The URIs that should be reachable while maintenance mode is enabled. * * @var array<int, string> */ ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/TrimStrings.php
app/Http/Middleware/TrimStrings.php
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; class TrimStrings extends Middleware { /** * The names of the attributes that should not be trimmed. * * @var array<int, string> */ protected $except = [ 'current_password', ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/TrustHosts.php
app/Http/Middleware/TrustHosts.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustHosts as Middleware; class TrustHosts extends Middleware { /** * Get the host patterns that should be trusted. * * @return array<int, string|null> */ public function hosts(): array { return [ ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/EncryptCookies.php
app/Http/Middleware/EncryptCookies.php
<?php namespace App\Http\Middleware; use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; class EncryptCookies extends Middleware { /** * The names of the cookies that should not be encrypted. * * @var array<int, string> */ protected $except = [ // ]; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Middleware/VerifyCsrfToken.php
app/Http/Middleware/VerifyCsrfToken.php
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; class VerifyCsrfToken extends Middleware { /** * The URIs that should be excluded from CSRF verification. * * @var array<int, string> */ protected $except = [ // ]; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/SignResource.php
app/Http/Resources/SignResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use Illuminate\Http\Resources\Json\JsonResource; // use overtrue\ class SignResource extends JsonResource { public function toArray($request) { return [ "user" => $this->whenLoaded("user", new UserResource($this->use...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/ShortVideoResource.php
app/Http/Resources/ShortVideoResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class ShortVideoResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/SoftResource.php
app/Http/Resources/SoftResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class SoftResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/UserResource.php
app/Http/Resources/UserResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class UserResource extends JsonResource { public function toArray(Request $request): array { return [ 'avatar' => $this->avatar ?: url('assets/avatar/' . ($this->sex == 1 ? 'b...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/ConfigResource.php
app/Http/Resources/ConfigResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class ConfigResource extends JsonResource { public function toArray($request) { return parent::toArray($request); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/VideoResource.php
app/Http/Resources/VideoResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use Illuminate\Http\Resources\Json\JsonResource; class VideoResource extends JsonResource { public function toArray($request) { $data = parent::toArray($request); return [ "user" => $this->whenLoaded("user",...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/ActivityResource.php
app/Http/Resources/ActivityResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class ActivityResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializab...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/MorningResource.php
app/Http/Resources/MorningResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use Illuminate\Http\Resources\Json\JsonResource; use App\Services\AliyunService; class MorningResource extends JsonResource { public function toArray($request) { return [ 'video_cdn' => $this->when(isset($this->video...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/SubscribeResource.php
app/Http/Resources/SubscribeResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; use Auth; class SubscribeResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\Jso...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/PackageResource.php
app/Http/Resources/PackageResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class PackageResource extends JsonResource { /** * Transform the resource into an array. * * @return array<string, mixed> */ public function toArray(Request $request): array ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/QuestionAnswerResource.php
app/Http/Resources/QuestionAnswerResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use Illuminate\Http\Resources\Json\JsonResource; class QuestionAnswerResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/TopicResource.php
app/Http/Resources/TopicResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use Illuminate\Http\Resources\Json\JsonResource; class TopicResource extends JsonResource { public function toArray($request) { return [ 'user' => $this->whenLoaded('user', new UserResource($this->user)) ] + ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/CommentResource.php
app/Http/Resources/CommentResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; use GrahamCampbell\Markdown\Facades\Markdown; class CommentResource extends JsonResource { public function toArray($request) { return [ 'replys' => $this->when('replys', self::collection($this->replys)), ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/NotificationResource.php
app/Http/Resources/NotificationResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class NotificationResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerial...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/QuestionResource.php
app/Http/Resources/QuestionResource.php
<?php namespace App\Http\Resources; use App\Http\Resources\UserResource; use App\Models\Question; use Illuminate\Http\Resources\Json\JsonResource; use GrahamCampbell\Markdown\Facades\Markdown; use Illuminate\Support\Facades\Route; class QuestionResource extends JsonResource { /** * Transform the resource in...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/LessonResource.php
app/Http/Resources/LessonResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; use App\Services\AliyunService; class LessonResource extends JsonResource { public function toArray($request) { return [ 'videos' => VideoResource::collection($this->whenLoaded('videos')), 'sy...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/SystemResource.php
app/Http/Resources/SystemResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class SystemResource extends JsonResource { public function toArray($request) { return [ 'download_address' => $this->when(isSubscribe() || isAdministrator(), function () { return $this->d...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Http/Resources/SignCountResource.php
app/Http/Resources/SignCountResource.php
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class SignCountResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializa...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Wechat/Process.php
app/Wechat/Process.php
<?php namespace App\Wechat; use App\Services\WechatService; use Houdunwang\Wechat\Message; class Process { public function handle(Message $message) { return $this->sign($message); } //签到 protected function sign(Message $message) { if (!preg_match('/^\s*签到/', $message->Content...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/QuestionObserver.php
app/Observers/QuestionObserver.php
<?php namespace App\Observers; use App\Models\Question; class QuestionObserver { /** * Handle the Question "created" event. * * @param \App\Models\Question $question * @return void */ public function created(Question $question) { // } /** * Handle the Ques...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/SignObserver.php
app/Observers/SignObserver.php
<?php namespace App\Observers; use App\Models\Activity; use Illuminate\Support\Facades\Auth; use App\Models\Sign; use App\Models\SignCount; class SignObserver { public function created(Sign $sign) { $this->updateSignCount(); // activityLog( // $sign, // $sign->content...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/LessonObserver.php
app/Observers/LessonObserver.php
<?php namespace App\Observers; use App\Models\Lesson; class LessonObserver { /** * Handle the Lesson "created" event. * * @param \App\Models\Lesson $lesson * @return void */ public function created(Lesson $lesson) { } /** * Handle the Lesson "updated" event. ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/SystemObserver.php
app/Observers/SystemObserver.php
<?php namespace App\Observers; use App\Models\System; class SystemObserver { /** * Handle the System "created" event. * * @param \App\Models\System $system * @return void */ public function created(System $system) { } /** * Handle the System "updated" event. ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/TopicObserver.php
app/Observers/TopicObserver.php
<?php namespace App\Observers; use App\Models\Topic; class TopicObserver { public function created(Topic $topic) { // activityLog( // $topic, // $topic->title, // ['model' => 'topic', 'id' => $topic->id] // ); } public function deleted(Topic $topic...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/VideoObserver.php
app/Observers/VideoObserver.php
<?php namespace App\Observers; use App\Models\Video; class VideoObserver { public function retrived(Video $video) { } /** * Handle the Video "created" event. * * @param \App\Models\Video $video * @return void */ public function created(Video $video) { // ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Observers/CommentObserver.php
app/Observers/CommentObserver.php
<?php namespace App\Observers; use App\Models\Activity; use App\Models\Comment; use App\Models\User; use App\Notifications\CommentNotification; use Illuminate\Support\Facades\Notification; class CommentObserver { public function created(Comment $comment) { activityLog( $comment, ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Rules/CodeRule.php
app/Rules/CodeRule.php
<?php namespace App\Rules; use Closure; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Support\Facades\Cache; class CodeRule implements ValidationRule { /** * Run the validation rule. * * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Rules/PhoneRule.php
app/Rules/PhoneRule.php
<?php namespace App\Rules; use Closure; use Illuminate\Contracts\Validation\ValidationRule; class PhoneRule implements ValidationRule { /** * Run the validation rule. * * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail */ public function validate(strin...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Rules/checkSoftSecret.php
app/Rules/checkSoftSecret.php
<?php namespace App\Rules; use App\Models\SoftSecret; use App\Services\SoftSecretService; use Closure; use Illuminate\Contracts\Validation\ValidationRule; class CheckSoftSecret implements ValidationRule { /** * Run the validation rule. * * @param \Closure(string): \Illuminate\Translation\Potentia...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Rules/CheckSoftSecret.php
app/Rules/CheckSoftSecret.php
<?php namespace App\Rules; use App\Models\SoftSecret; use App\Services\SoftSecretService; use Closure; use Illuminate\Contracts\Validation\ValidationRule; class CheckSoftSecret implements ValidationRule { /** * Run the validation rule. * * @param \Closure(string): \Illuminate\Translation\Potentia...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/SoftSecretService.php
app/Services/SoftSecretService.php
<?php namespace App\Services; use App\Models\Order; use App\Models\SoftSecret; use App\Models\User; //软件服务 class SoftSecretService { /** * 创建软件密钥 * * @param Order $order */ public function addSoftSecret(User $user) { $user->softSecret()->updateOrCreate( ["user_id" ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/SubscribeService.php
app/Services/SubscribeService.php
<?php namespace App\Services; use App\Models\User; use App\Models\Subscribe; //订阅服务 class SubscribeService { /** * 设置订阅资料 * * @param User $user * @param integer $months */ public function addSubscribe(User $user, int $months): Subscribe { $end_time = now()->addMonths($mon...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/OrderService.php
app/Services/OrderService.php
<?php namespace App\Services; use App\Models\Order; use App\Models\Package; use App\Models\User; use Auth; //订单服务 class OrderService { /** * 创建定单 * * @param string $subject 订单描述 * @param Package $package 套餐 * @param string $payType 支付方式 * @param array $data 额外数据 * @param User|n...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/WechatService.php
app/Services/WechatService.php
<?php namespace App\Services; use App\Models\User; use Auth; use Houdunwang\Wechat\User as WechatUser; use Http; use Log; //微信服务 class WechatService { //根据 OPENID 创建用户 public function registerByOpenid(string $openId) { $userWechat = app(WechatUser::class)->config(config('hd.wechat')); $in...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/UploadService.php
app/Services/UploadService.php
<?php namespace App\Services; use App\Models\Upload; use Auth; use Illuminate\Http\UploadedFile; use Spatie\Image\Image; use Spatie\Image\Manipulations; class UploadService { //图片上传 public function image(UploadedFile $file, $width = 1024, $height = 768, $fit = Manipulations::FIT_MAX) { $localFile...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/CodeService.php
app/Services/CodeService.php
<?php namespace App\Services; use App\Models\User; use App\Notifications\EmailCodeNotification; use Cache; use Exception; use PhpParser\Node\Stmt\TryCatch; //发送短信或邮件验证码 class CodeService { public function send($account) { $code = $this->code($account); filter_var($account, FILTER_VALIDATE_EMA...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/DouyinService.php
app/Services/DouyinService.php
<?php namespace App\Services; class DouyinService { // 支付 public function pay($data) { $url = 'https://developer.toutiao.com/api/apps/ecpay/v1/create_order'; $params['app_id'] = 'ttb71fc1a22820f2a401'; $params['out_order_no'] = (string)$data['no']; $params['total_amount'] =...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/UserService.php
app/Services/UserService.php
<?php namespace App\Services; use App\Models\User; use Spatie\Image\Manipulations; use App\Services\OssService; use Auth; class UserService { public function isSubscribe(User $user = null) { $user = $user ?? Auth::user(); $duration = $user->duration; return $duration && (now()->diffIn...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/AliyunStsService.php
app/Services/AliyunStsService.php
<?php namespace App\Services; use AlibabaCloud\SDK\Sts\V20150401\Sts; use \Exception; use AlibabaCloud\Tea\Exception\TeaError; use AlibabaCloud\Tea\Utils\Utils; use Darabonba\OpenApi\Models\Config; use AlibabaCloud\SDK\Sts\V20150401\Models\AssumeRoleRequest; use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions; class Ali...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/OssService.php
app/Services/OssService.php
<?php namespace App\Services; use OSS\OssClient; //阿里OSS上传服务 class OssService { public function ossClient() { $accessKeyId = config('hd.aliyun.aliyun_key'); $accessKeySecret = config('hd.aliyun.aliyun_secret'); $endpoint = config('hd.aliyun.aliyun_oss_endpoint'); return new Os...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Services/AliyunService.php
app/Services/AliyunService.php
<?php namespace App\Services; use Darabonba\OpenApi\Models\Config; use AlibabaCloud\SDK\Dysmsapi\V20170525\Dysmsapi; use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendSmsRequest; use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions; use Exception; class AliyunService { /** * 使用AK&SK初始化账号Client * @param str...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false