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/Services/ImageService.php
app/Services/ImageService.php
<?php namespace App\Services; use Spatie\Image\Image; use Spatie\Image\Manipulations; class ImageService { //压缩图片 public function zip(string|null $file, $width = 800, $height = 800, $fit = Manipulations::FIT_MAX) { Image::load($file)->fit($fit, $width, $height)->optimize()->save(); ret...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Notifications/CommentNotification.php
app/Notifications/CommentNotification.php
<?php namespace App\Notifications; use App\Models\Comment; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Log; class CommentNotification extends Notification { use Queueable; protected...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Notifications/EmailCodeNotification.php
app/Notifications/EmailCodeNotification.php
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class EmailCodeNotification extends Notification { use Queueable; protected $code; /** * Create a...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Console/Kernel.php
app/Console/Kernel.php
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. */ protected function schedule(Schedule $schedule): void { // $schedu...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Order.php
app/Models/Order.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Order extends Model { use HasFactory; protected $fillable = ['sn', 'subject', 'price', 'trade_no', 'pay_type', 'pay_state', 'data', 'package_id']; protected $casts = [ ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/VideoPlayHistory.php
app/Models/VideoPlayHistory.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class VideoPlayHistory extends Model { use HasFactory; protected $table = 'video_play_histories'; protected $fillable = ['user_id', 'video_id', 'lesson_id']; public function vi...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Lesson.php
app/Models/Lesson.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; class Lesson extends Model { use HasFactory, LogsActivity; protected $fillable = [ 'title', 'descr...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Video.php
app/Models/Video.php
<?php namespace App\Models; use App\Models\BaseModel; use App\Models\Comment; use Illuminate\Database\Eloquent\Factories\HasFactory; class Video extends BaseModel { use HasFactory; protected $table = 'videos'; protected $fillable = ['title', 'path', 'order', 'lesson_id', 'id']; protected $hidden =...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/SignCount.php
app/Models/SignCount.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SignCount extends Model { use HasFactory; protected $table = 'sign_counts'; protected $fillable = ['user_id', 'month', 'year', 'total']; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/User.php
app/Models/User.php
<?php namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; class User ex...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Notification.php
app/Models/Notification.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\DatabaseNotification; class Notification extends DatabaseNotification { use HasFactory; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Upload.php
app/Models/Upload.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Upload extends Model { use HasFactory; protected $fillable = ['url', 'name', 'extension', 'size', 'mime']; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Soft.php
app/Models/Soft.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Soft extends BaseModel { use HasFactory; protected $fillable = [ "title", 'description', 'content', 'preview', 'tags', 'github', 'gitee', 'download', 'version', 'free', 'le...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Comment.php
app/Models/Comment.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use GrahamCampbell\Markdown\Facades\Markdown; class Comment extends Model { use HasFactory; protected $fillable = ['user_id', 'reply_us...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/QuestionAnswer.php
app/Models/QuestionAnswer.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; //考试答题结果 class QuestionAnswer extends Model { use HasFactory; protected $table = 'question_answers'; protected $fillable = ['answers', 'answer', 'mark']; protected $casts = ['a...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Sign.php
app/Models/Sign.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; class Sign extends Model { use HasFactory, LogsActivity; protected $table = 'signs'; protected $filla...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/ShortVideo.php
app/Models/ShortVideo.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ShortVideo extends Model { use HasFactory; protected $table = 'short_videos'; protected $fillable = ['title', 'path', 'preview']; protected $hidden = ['path']; publi...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Subscribe.php
app/Models/Subscribe.php
<?php namespace App\Models; use DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Subscribe extends Model { use HasFactory; protected $table = 'subscribes'; protected $fillable = ['end_time', 'user_id']; protected $casts = ['end...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Config.php
app/Models/Config.php
<?php namespace App\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; //模块配置 class Config extends BaseModel { use HasFactory; protected $table = 'configs'; protected $fillable = ['id', 'data']; protected $casts = ['data...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/BaseModel.php
app/Models/BaseModel.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; //模型基础类 abstract class BaseModel extends Model { //用户关联 public function user() { return $this->belongsTo(User::class); } //点赞 public function favours() { ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/System.php
app/Models/System.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\LogOptions; use Spatie\Activitylog\Traits\LogsActivity; class System extends Model { use HasFactory, LogsActivity; protected $fillable = ['title', 'preview', 'des...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Favorite.php
app/Models/Favorite.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Favorite extends Model { use HasFactory; protected $fillable = ['user_id']; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Activity.php
app/Models/Activity.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Models\Activity as ModelsActivity; class Activity extends ModelsActivity { use HasFactory; protected $with = ['user']; public function user() { r...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Favour.php
app/Models/Favour.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Favour extends Model { use HasFactory; protected $fillable = ['user_id']; public function topics() { $this->morphedByMany(Topic::class, 'favour'); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Morning.php
app/Models/Morning.php
<?php namespace App\Models; use DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Morning extends Model { use HasFactory; protected $table = 'mornings'; protected $fillable = ['url', 'image', 'end_time', 'state', 'video']; protec...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/SoftSecret.php
app/Models/SoftSecret.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SoftSecret extends Model { use HasFactory; protected $fillable = ['secret', 'end_time']; protected $casts = ['end_time' => 'datetime']; public function user() { ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Topic.php
app/Models/Topic.php
<?php namespace App\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; use GrahamCampbell\Markdown\Facades\Markdown; class Topic extends BaseModel { use HasFactory, LogsActivity; protected $t...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Question.php
app/Models/Question.php
<?php namespace App\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use GrahamCampbell\Markdown\Facades\Markdown; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Activitylog\LogOptions; class Question extends BaseModel { use ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Models/Package.php
app/Models/Package.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Package extends Model { use HasFactory; protected $fillable = ['title', 'ad', 'price', 'icon', 'original_price', 'style', 'months', 'state']; protected $casts = ["state" => "...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/BroadcastServiceProvider.php
app/Providers/BroadcastServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Broadcast; use Illuminate\Support\ServiceProvider; class BroadcastServiceProvider extends ServiceProvider { /** * Bootstrap any application services. */ public function boot(): void { Broadcast::routes(); require bas...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/TelescopeServiceProvider.php
app/Providers/TelescopeServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Gate; use Laravel\Telescope\IncomingEntry; use Laravel\Telescope\Telescope; use Laravel\Telescope\TelescopeApplicationServiceProvider; class TelescopeServiceProvider extends TelescopeApplicationServiceProvider { /** * Register any application ser...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
<?php namespace App\Providers; use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvide...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/EventServiceProvider.php
app/Providers/EventServiceProvider.php
<?php namespace App\Providers; use App\Models\Comment; use App\Models\Lesson; use App\Models\Sign; use App\Models\System; use App\Models\Topic; use App\Observers\CommentObserver; use App\Observers\LessonObserver; use App\Observers\SignObserver; use App\Observers\SystemObserver; use App\Observers\TopicObserver; use Il...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/AppServiceProvider.php
app/Providers/AppServiceProvider.php
<?php namespace App\Providers; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; use Illuminate\Support\Facades\Request; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Providers/AuthServiceProvider.php
app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; // use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Gate; class AuthServiceProvider extends ServiceProvider { /** * The model to policy mappings for the application. * ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/ConfigPolicy.php
app/Policies/ConfigPolicy.php
<?php namespace App\Policies; use App\Models\Config; use App\Models\User; use Illuminate\Auth\Access\Response; class ConfigPolicy { public function all(): bool { return isAdministrator(); } public function viewAny(User $user): bool { return isAdministrator(); } public fu...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/VideoPlayHistoryPolicy.php
app/Policies/VideoPlayHistoryPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\VideoPlayHistory; class VideoPlayHistoryPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @retur...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/VideoPolicy.php
app/Policies/VideoPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Video; class VideoPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminate\Auth\Acc...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SoftSecretPolicy.php
app/Policies/SoftSecretPolicy.php
<?php namespace App\Policies; use App\Models\SoftSecret; use App\Models\User; use Illuminate\Auth\Access\Response; class SoftSecretPolicy { public function before(User $user) { // if ($user->softSecret && $user->softSecret->end_time < now()) return false; } public function refresh(User $use...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/UploadPolicy.php
app/Policies/UploadPolicy.php
<?php namespace App\Policies; use App\Models\Upload; use App\Models\User; use Illuminate\Auth\Access\Response; class UploadPolicy { /** * Determine whether the user can view any models. */ public function viewAny(User $user): bool { // } /** * Determine whether the user ca...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/LessonPolicy.php
app/Policies/LessonPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Lesson; class LessonPolicy { use HandlesAuthorization; public function before(User $user) { return $user->is_administrator; } /** * Determine whether the user can view...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SignCountPolicy.php
app/Policies/SignCountPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\SignCount; class SignCountPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminate\...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/QuestionAnswerPolicy.php
app/Policies/QuestionAnswerPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\QuestionAnswer; class QuestionAnswerPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \I...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SystemPolicy.php
app/Policies/SystemPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\System; class SystemPolicy { use HandlesAuthorization; public function before(User $user) { return $user->is_administrator; } /** * Determine whether the user can view ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SignPolicy.php
app/Policies/SignPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Sign; class SignPolicy { use HandlesAuthorization; public function create(User $user) { $isSign = $user->signs()->whereDate('created_at', now())->exists(); if ($isSign) abor...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/FavourPolicy.php
app/Policies/FavourPolicy.php
<?php namespace App\Policies; use App\Models\User; use App\Models\favour; use Illuminate\Auth\Access\HandlesAuthorization; class FavourPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminate\Auth\A...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/QuestionPolicy.php
app/Policies/QuestionPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Question; class QuestionPolicy { use HandlesAuthorization; public function before() { if (isAdministrator()) return true; } /** * Determine whether the user can view an...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/UserPolicy.php
app/Policies/UserPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\Response; class UserPolicy { /** * Determine whether the user can view any models. */ public function info(User $user): bool { return isAdministrator(); } /** * Determine whether the user can vie...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/CommentPolicy.php
app/Policies/CommentPolicy.php
<?php namespace App\Policies; use App\Models\Comment; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class CommentPolicy { use HandlesAuthorization; public function before(User $user) { if ($user->isAdministrator) return true; if ($user->is_lock) return false; ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SubscribePolicy.php
app/Policies/SubscribePolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class SubscribePolicy { use HandlesAuthorization; public function douyin() { return isAdministrator(); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/FavoritePolicy.php
app/Policies/FavoritePolicy.php
<?php namespace App\Policies; use App\Models\Favorite; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class FavoritePolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminate\Au...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/SoftPolicy.php
app/Policies/SoftPolicy.php
<?php namespace App\Policies; use App\Models\Soft; use App\Models\User; use Illuminate\Auth\Access\Response; class SoftPolicy { /** * Determine whether the user can view any models. */ public function viewAny(User $user): bool { // } /** * Determine whether the user can vi...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/TopicPolicy.php
app/Policies/TopicPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Topic; class TopicPolicy { use HandlesAuthorization; public function before(User $user) { if ($user->isAdministrator) return true; if ($user->is_lock) return false; } ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/PackagePolicy.php
app/Policies/PackagePolicy.php
<?php namespace App\Policies; use App\Models\Package; use App\Models\User; use Illuminate\Auth\Access\Response; class PackagePolicy { /** * Determine whether the user can view any models. */ public function viewAny(User $user): bool { // } /** * Determine whether the user ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/ShortVideoPolicy.php
app/Policies/ShortVideoPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\ShortVideo; class ShortVideoPolicy { use HandlesAuthorization; public function before() { return isAdministrator(); } public function view(User $user, ShortVideo $shortVide...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/AttachmentPolicy.php
app/Policies/AttachmentPolicy.php
<?php namespace App\Policies; use App\Models\Attachment; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class AttachmentPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminat...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/app/Policies/MorningPolicy.php
app/Policies/MorningPolicy.php
<?php namespace App\Policies; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; use App\Models\Morning; class MorningPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \App\Models\User $user * @return \Illuminate\Auth...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/autoload.php
wechat/vendor/autoload.php
<?php // autoload.php @generated by Composer if (PHP_VERSION_ID < 50600) { echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; exit(1); } require_once __DIR__ . '...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/autoload_real.php
wechat/vendor/composer/autoload_real.php
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInitff0232f5d698a12f921ce90e0b64e80b { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/autoload_namespaces.php
wechat/vendor/composer/autoload_namespaces.php
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( );
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/autoload_psr4.php
wechat/vendor/composer/autoload_psr4.php
<?php // autoload_psr4.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( 'Houdunwang\\Wechat\\' => array($baseDir . '/src'), );
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/autoload_static.php
wechat/vendor/composer/autoload_static.php
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInitff0232f5d698a12f921ce90e0b64e80b { public static $prefixLengthsPsr4 = array ( 'H' => array ( 'Houdunwang\\Wechat\\' => 18, ), ); public static $prefixDirsPsr4 = a...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/ClassLoader.php
wechat/vendor/composer/ClassLoader.php
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Autoload; /** * ClassLoader im...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/vendor/composer/autoload_classmap.php
wechat/vendor/composer/autoload_classmap.php
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', );
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Qrcode.php
wechat/src/Qrcode.php
<?php namespace Houdunwang\Wechat; use Houdunwang\Wechat\Qrcode\Create; use Log; /** * 被动消息 * @package Houdunwang\Wechat */ class Qrcode extends Wechat { use Create; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/WeChat.php
wechat/src/WeChat.php
<?php namespace Houdunwang\Wechat; use Exception; use Houdunwang\Wechat\Message\MessageType; use Houdunwang\Wechat\Message\Send; use Illuminate\Http\Client\RequestException; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Cache; use Log; use SimpleXMLElement; use Mtownsend\XmlToArray\XmlToArray; ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/User.php
wechat/src/User.php
<?php namespace Houdunwang\Wechat; use Houdunwang\Wechat\User\Auth; use Houdunwang\Wechat\User\Get; /** * 粉丝管理 */ class User extends Wechat { use Get, Auth; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Button.php
wechat/src/Button.php
<?php namespace Houdunwang\Wechat; use Houdunwang\Wechat\Button\Create; use Houdunwang\Wechat\Button\MessageType; /** * 微信菜单 * @package Houdunwang\Wechat */ class Button extends Wechat { use Create, MessageType; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Material.php
wechat/src/Material.php
<?php namespace Houdunwang\Wechat; use Houdunwang\Wechat\Material\Create; use Houdunwang\Wechat\Material\Delete; use Houdunwang\Wechat\Material\Preview; class Material extends Wechat { use Create, Delete, Preview; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Wechat.php
wechat/src/Wechat.php
<?php namespace Houdunwang\Wechat; use Exception; use Houdunwang\Wechat\Message\MessageType; use Houdunwang\Wechat\Message\Send; use Illuminate\Http\Client\RequestException; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Cache; use Log; use SimpleXMLElement; use Mtownsend\XmlToArray\XmlToArray; ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Message.php
wechat/src/Message.php
<?php namespace Houdunwang\Wechat; use Houdunwang\Wechat\Message\MessageType; use Houdunwang\Wechat\Message\Send; use Log; /** * 被动消息 * @package Houdunwang\Wechat */ class Message extends Wechat { use Send, MessageType; }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Material/Create.php
wechat/src/Material/Create.php
<?php namespace Houdunwang\Wechat\Material; use Http; trait Create { /** * 添加图片音频等其他类型永久素材 */ public function add(string $type, string $file) { $api = $this->api . '/material/add_material?access_token=' . $this->token() . '&type=' . $type; $response = Http::attach('media', file...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Material/Delete.php
wechat/src/Material/Delete.php
<?php namespace Houdunwang\Wechat\Material; use Http; trait Delete { public function del(string $media_id) { $api = $this->api . '/material/del_material?access_token=' . $this->token(); $response = Http::post($api, [ 'media_id' => $media_id, ]); return $this->return($response); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Material/Preview.php
wechat/src/Material/Preview.php
<?php namespace Houdunwang\Wechat\Material; use Http; trait Preview { public function sendMaterialPreview(array $data) { $api = $this->api . '/message/mass/preview?access_token=' . $this->token(); $response = Http::post($api, $data) ->throw() ->json(); return $...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/User/Auth.php
wechat/src/User/Auth.php
<?php namespace Houdunwang\Wechat\User; use Illuminate\Http\Client\RequestException; use Illuminate\Support\Facades\Http; use URL; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Route; /** * 获取用户资料 */ trait Auth { /** * 获取基本资料 * @return mixed * @throws RequestException *...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/User/Get.php
wechat/src/User/Get.php
<?php namespace Houdunwang\Wechat\User; use Exception; use Illuminate\Http\Client\RequestException; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; /** * 获取粉丝 */ trait Get { /** * 获取用户资料 * @param mixed $openid * @return mixed * @throws RequestException */ p...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Message/Send.php
wechat/src/Message/Send.php
<?php namespace Houdunwang\Wechat\Message; use Log; trait Send { public function text(string $content) { $xml = <<<php <xml> <ToUserName><![CDATA[%s]]></ToUserName> <FromUserName><![CDATA[%s]]></FromUserName> <CreateTime>%s</CreateTime> <MsgType><![CDATA[text]]></MsgType> <Content><...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Message/MessageType.php
wechat/src/Message/MessageType.php
<?php namespace Houdunwang\Wechat\Message; use Log; trait MessageType { public function isText() { return isset($this->message['MsgType']) && $this->message['MsgType'] == 'text'; } public function isImage() { return isset($this->message['MsgType']) && $this->message['MsgType'] =...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/data/errors.php
wechat/src/data/errors.php
<?php return [ -1 => '系统繁忙,此时请开发者稍候再试', 0 => '请求成功', 40001 => '获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口', 40002 => '不合法的凭证类型', 40003 => '不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID', 40004 => '不合法的媒体文件类型', 40005 => '不合法的文件类型', 40006 => '...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Button/MessageType.php
wechat/src/Button/MessageType.php
<?php namespace Houdunwang\Wechat\Button; use Log; trait MessageType { public function isClient() { return $this->message->MsgType == 'event'; } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Button/Create.php
wechat/src/Button/Create.php
<?php namespace Houdunwang\Wechat\Button; use Exception; use Illuminate\Support\Facades\Http; use Illuminate\Http\Client\RequestException; use Log; trait Create { /** * 推送微信菜单 * @param mixed $button * @return true * @throws RequestException * @throws Exception */ public function...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/wechat/src/Qrcode/Create.php
wechat/src/Qrcode/Create.php
<?php namespace Houdunwang\Wechat\Qrcode; use Illuminate\Support\Facades\Http; use Log; trait Create { //生成二维码信息 public function getQrTicket($data = []) { $api = $this->api . '/qrcode/create?access_token=' . $this->token(); $response = Http::post($api, $data)->throw()->json(); ret...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/bootstrap/app.php
bootstrap/app.php
<?php /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | The first thing we will do is create a new Laravel application instance | which serves as the "glue" for all the components of La...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; use RefreshDatabase; protected $seed = true; protected function setUp(): ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/CreatesApplication.php
tests/CreatesApplication.php
<?php namespace Tests; use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Application; trait CreatesApplication { /** * Creates the application. */ public function createApplication(): Application { $app = require __DIR__.'/../bootstrap/app.php'; $app->make(Kern...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/auth/RegisterTest.php
tests/Feature/auth/RegisterTest.php
<?php namespace Tests\Feature\auth; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class RegisterTest extends TestCase { use WithFaker; /** * 用户名注册 * @test */ public function UserNameRegistered() { $response ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/wallpaper/zipImageTest.php
tests/Feature/wallpaper/zipImageTest.php
<?php namespace Tests\Feature\wallpaper; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Str; use Tests\TestCase; class zipImageTest extends TestCase { protected function setUp(): void { parent::setUp(); $this->login(); } /** * ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/wallpaper/randomImageTest.php
tests/Feature/wallpaper/randomImageTest.php
<?php namespace Tests\Feature\wallpaper; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class randomImageTest extends TestCase { /** * 获取随机壁纸 * @test */ public function AccessToRandomWallpaper(): void { $response ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/secret/refreshSecretTest.php
tests/Feature/secret/refreshSecretTest.php
<?php namespace Tests\Feature\secret; use App\Services\SubscribeService; use Carbon\Carbon; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class refreshSecretTest extends TestCase { protected function setUp(): void { parent::setUp()...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/secret/checkSoftSecretTest.php
tests/Feature/secret/checkSoftSecretTest.php
<?php namespace Tests\Feature\secret; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class checkSoftSecretTest extends TestCase { protected function setUp(): void { parent::setUp(); $this->login(); } /** * 验证软件...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/secret/getSecretTest.php
tests/Feature/secret/getSecretTest.php
<?php namespace Tests\Feature\secret; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class getSecretTest extends TestCase { protected function setUp(): void { parent::setUp(); ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Feature/soft/CheckSoftUpdateTest.php
tests/Feature/soft/CheckSoftUpdateTest.php
<?php namespace Tests\Feature\soft; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class CheckSoftUpdateTest extends TestCase { protected function setUp(): void { parent::setUp(); } /** * 有新版本更新 * @test */ ...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/tests/Unit/ExampleTest.php
tests/Unit/ExampleTest.php
<?php namespace Tests\Unit; use PHPUnit\Framework\TestCase; class ExampleTest extends TestCase { /** * A basic test example. */ public function test_that_true_is_true(): void { $this->assertTrue(true); } }
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/web.php
routes/web.php
<?php use App\Http\Controllers\WechatBindController; use App\Http\Controllers\WechatLoginController; use Illuminate\Support\Facades\Route; //微信客户端登录 Route::get('wechat/appLogin', [WechatLoginController::class, 'appLogin']); //获取当前登录用户在微信app的openid,用于支付或在app中绑定微信使用 Route::get('wechat/openid', [WechatBindController::c...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/hdcms.php
routes/hdcms.php
<?php use App\Http\Controllers\HdcmsController; use Illuminate\Support\Facades\Route; Route::post('hdcms/login', [HdcmsController::class, 'login']);
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/soft.php
routes/soft.php
<?php use App\Http\Controllers\SoftController; use App\Http\Controllers\SoftSecretController; use App\Http\Controllers\SoftTokenController; Route::post('soft/checkUpdate', [SoftController::class, 'checkUpdate']); Route::apiResource('soft', SoftController::class); //软件密钥 Route::get('softSecret', [SoftSecretController...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/wallpaper.php
routes/wallpaper.php
<?php use App\Http\Controllers\WallpaperController; use Illuminate\Support\Facades\Route; Route::controller(WallpaperController::class)->prefix('wallpaper')->group(function () { Route::get('zip', 'zip'); Route::post('random', 'random'); });
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/channels.php
routes/channels.php
<?php use Illuminate\Support\Facades\Broadcast; /* |-------------------------------------------------------------------------- | Broadcast Channels |-------------------------------------------------------------------------- | | Here you may register all of the event broadcasting channels that your | application suppo...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/edu.php
routes/edu.php
<?php use App\Http\Controllers\UserController; use Illuminate\Http\Request; use App\Http\Controllers\LearnHistoryController; use App\Http\Controllers\LessonController; use App\Http\Controllers\MorningController; use App\Http\Controllers\OrderController; use App\Http\Controllers\QuestionAnswerController; use App\Http\C...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false
houdunwang/houdunren
https://github.com/houdunwang/houdunren/blob/f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f/routes/api.php
routes/api.php
<?php use App\Http\Controllers\ActivityController; use App\Http\Controllers\AlipayController; use App\Http\Controllers\AuthController; use App\Http\Controllers\CodeController; use App\Http\Controllers\CommentController; use App\Http\Controllers\ConfigController; use App\Http\Controllers\FavoriteController; use App\Htt...
php
MIT
f0763bca4e8da0c13cb3f5acab9b2f603d15cb8f
2026-01-05T03:51:59.355209Z
false