自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1175)
  • 资源 (9)
  • 收藏
  • 关注

原创 Go语言十大主流微服务框架及相关

以下 star数截止2021年1月份1.istio项目简介:Istio是由Google、IBM和Lyft开源的微服务管理、保护和监控框架。使用istio可以很简单的创建具有负载均衡、服务间认证、监控等功能的服务网络,而不需要对服务的代码进行任何修改。仓库地址:https://github.com/istio(25.9K)官方文档地址:https://istio.io/latest/docs/2.Go-kit项目简介:Go-kit 是一个 Go 语言的分布式开发包,用于开发微服务。

2021-01-16 19:52:15 7558 5

原创 Navicat CSV文件中文乱码

导入时,选择编码MAC-Simplified Chinese GB 2312

2021-10-10 15:14:50 6

原创 PHP四舍五入,不足补零

/** * 四舍五入,不足补零 * @param $amount 金额 * @param $prec 位数 * @return string */ function precision($amount, $prec) { return sprintf("%.".$prec."f", round($amount,$prec)); }

2021-10-01 16:18:01 16

原创 msql修改字段属性的两种方式

ALTER TABLE `user` MODIFY COLUMN `amount` decimal (10,6) NOT NULL DEFAULT '0.000000';ALTER TABLE `user` MODIFY COLUMN `frozen` decimal (10,6) NOT NULL DEFAULT '0.000000';alter table `user` MODIFY COLUMN `amount` decimal (10,8) NOT NULL DEFAULT '0.0.

2021-10-01 11:08:05 11

原创 Laravel Guzzle封装

1.安装composer requrie guzzlehttp/guzzle2.封装<?phpnamespace App\Services;use GuzzleHttp\Client;use GuzzleHttp\Exception\ClientException;class Guzzle{ /** * GET请求 * @param $url * @param array $options * @return mixed.

2021-09-11 15:24:52 31

原创 【Laravel5源码阅读】队列服务提供者QueueServiceProvider

<?phpnamespace Illuminate\Queue;use IlluminateQueueClosure;use Illuminate\Support\ServiceProvider;use Illuminate\Queue\Console\WorkCommand;use Illuminate\Queue\Console\ListenCommand;use Illuminate\Queue\Console\RestartCommand;use Illuminate\Qu.

2021-09-10 07:12:01 19

原创 【Laravel5源码阅读】视图服务提供者ViewServiceProvider

<?phpnamespace Illuminate\View;use Illuminate\View\Engines\PhpEngine;use Illuminate\Support\ServiceProvider;use Illuminate\View\Engines\CompilerEngine;use Illuminate\View\Engines\EngineResolver;use Illuminate\View\Compilers\BladeCompiler;clas.

2021-09-10 07:05:24 23

原创 【Laravel5源码阅读】验证器服务提供者ValidationServiceProvider

<?phpnamespace Illuminate\Validation;use Illuminate\Support\ServiceProvider;class ValidationServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供者程序。 * @var bool */.

2021-09-10 07:04:27 14

原创 【Laravel5源码阅读】翻译服务提供者TranslationServiceProvider

<?phpnamespace Illuminate\Translation;use Illuminate\Support\ServiceProvider;class TranslationServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供程序。 * @var bool */.

2021-09-09 07:12:16 33

原创 【Laravel5源码阅读】Session服务提供者SessionServiceProvider

<?phpnamespace Illuminate\Session;use Illuminate\Support\ServiceProvider;class SessionServiceProvider extends ServiceProvider{ /** * Register the service provider. * 注册服务提供者 * @return void */ public function register(.

2021-09-09 07:08:39 32

原创 【Laravel5源码阅读】密码重置服务提供者PasswordResetServiceProvider

<?phpnamespace Illuminate\Auth\Passwords;use Illuminate\Support\ServiceProvider;class PasswordResetServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供者程序。 * @var bool .

2021-09-09 07:06:38 30

原创 【Laravel5源码阅读】Redis服务提供者RedisServiceProvider

<?phpnamespace Illuminate\Redis;use Illuminate\Support\ServiceProvider;class RedisServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = tr.

2021-09-09 07:02:59 42

原创 【Laravel5源码阅读】管道服务提供者PipelineServiceProvider

<?phpnamespace Illuminate\Pipeline;use Illuminate\Support\ServiceProvider;class PipelineServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供者程序。 * @var bool */ .

2021-09-09 07:00:01 18

原创 【Laravel5源码阅读】分页服务提供者PaginationServiceProvider

<?phpnamespace Illuminate\Pagination;use Illuminate\Support\ServiceProvider;class PaginationServiceProvider extends ServiceProvider{ /** * Register the service provider. * 注册服务提供者 * @return void */ public function reg.

2021-09-09 06:56:35 43

原创 【Laravel5源码阅读】邮箱服务提供者MailServiceProvider

<?phpnamespace Illuminate\Mail;use Swift_Mailer;use Illuminate\Support\ServiceProvider;class MailServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供者程序。 * @var bool .

2021-09-09 06:55:13 40

原创 【Laravel5源码阅读】Hash服务提供者HashServiceProvider

<?phpnamespace Illuminate\Hashing;use Illuminate\Support\ServiceProvider;class HashServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供者程序。 * @var bool */ prote.

2021-09-09 06:50:15 22

原创 【Laravel5源码阅读】Foundation服务提供者FoundationServiceProvider

<?phpnamespace Illuminate\Foundation\Providers;use Illuminate\Routing\Redirector;use Illuminate\Support\ServiceProvider;use Illuminate\Foundation\Http\FormRequest;use Symfony\Component\HttpFoundation\Request;use Illuminate\Contracts\Validation\.

2021-09-09 06:47:30 20

原创 【Laravel5源码阅读】文件系统服务提供者FilesystemServiceProvider

<?phpnamespace Illuminate\Filesystem;use Illuminate\Support\ServiceProvider;class FilesystemServiceProvider extends ServiceProvider{ /** * Register the service provider. * 注册服务提供商。 * @return void */ public function re.

2021-09-09 06:43:20 27

原创 【Laravel5源码阅读】容器接口Container

<?phpnamespace Illuminate\Contracts\Container;use Closure;interface Container{ /** * Determine if the given abstract type has been bound. * 确定给定的抽象类型是否已绑定。 * @param string $abstract * @return bool */ public fun.

2021-09-05 09:09:28 28

原创 【Laravel5源码阅读】加密服务提供者EncryptionServiceProvider

<?phpnamespace Illuminate\Encryption;use RuntimeException;use Illuminate\Support\Str;use Illuminate\Support\ServiceProvider;class EncryptionServiceProvider extends ServiceProvider{ /** * Register the service provider. * 注册服务提供者。.

2021-09-05 09:01:42 22

原创 【Laravel5源码阅读】数据库服务提供者DatabaseServiceProvider

<?phpnamespace Illuminate\Database;use Faker\Factory as FakerFactory;use Faker\Generator as FakerGenerator;use Illuminate\Database\Eloquent\Model;use Illuminate\Support\ServiceProvider;use Illuminate\Database\Eloquent\QueueEntityResolver;use I.

2021-09-05 08:58:44 34

原创 【Laravel5源码阅读】Cookie服务提供者CookieServiceProvider

<?phpnamespace Illuminate\Cookie;use Illuminate\Support\ServiceProvider;class CookieServiceProvider extends ServiceProvider{ /** * Register the service provider. * 注册服务提供者 * @return void */ public function register().

2021-09-05 08:54:55 22

原创 【Laravel5源码阅读】控制台服务提供者ConsoleSupportServiceProvider

<?phpnamespace Illuminate\Foundation\Providers;use Illuminate\Support\AggregateServiceProvider;class ConsoleSupportServiceProvider extends AggregateServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载.

2021-09-05 08:52:48 67

原创 【Laravel5源码阅读】缓存服务提供者CacheServiceProvider

<?phpnamespace Illuminate\Cache;use Illuminate\Support\ServiceProvider;use Illuminate\Cache\Console\ClearCommand;class CacheServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加.

2021-09-05 08:48:54 24

原创 【Laravel5源码阅读】Bus服务提供者BusServiceProvider

<?phpnamespace Illuminate\Bus;use Illuminate\Support\ServiceProvider;class BusServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供程序。 * @var bool */ protected $.

2021-09-05 08:46:11 29

原创 【Laravel5源码阅读】广播服务提供者BroadcastServiceProvider

<?phpnamespace Illuminate\Broadcasting;use Illuminate\Support\ServiceProvider;class BroadcastServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * 指示是否延迟加载提供程序。 * @var bool */.

2021-09-05 08:42:18 22

原创 【Laravel5源码阅读】权限服务提供者AuthServiceProvider

<?phpnamespace Illuminate\Auth;use Illuminate\Auth\Access\Gate;use Illuminate\Support\ServiceProvider;use Illuminate\Contracts\Auth\Access\Gate as GateContract;use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;class Auth.

2021-09-05 08:38:01 38

原创 Laravel自定义命令行

1.执行如下命令,会在app\Console\Commands下生成Test.phpphp artisan make:console Test2.编辑命令<?phpnamespace App\Console\Commands;use Illuminate\Console\Command;class Test extends Command{ /** * The name and signature of the console command.

2021-09-05 08:31:28 52

原创 【Laravel5源码阅读】路由服务提供者RouteServiceProvider

<?phpnamespace App\Providers;use Illuminate\Routing\Router;use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;class RouteServiceProvider extends ServiceProvider{ /** * This namespace is applied to your .

2021-09-04 21:55:33 37

原创 【Laravel5源码阅读】事件服务提供者EventServiceProvider

<?phpnamespace App\Providers;use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;class EventServiceProvider extends ServiceProvider{ /** *.

2021-09-04 21:52:35 29

原创 【Laravel5源码阅读】权限服务提供者AuthServiceProvider

<?phpnamespace App\Providers;use Illuminate\Contracts\Auth\Access\Gate as GateContract;use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;class AuthServiceProvider extends ServiceProvider{ /** * The poli.

2021-09-04 21:50:14 27

原创 【Laravel5源码阅读】应用服务提供者AppServiceProvider

<?phpnamespace App\Providers;use Illuminate\Support\ServiceProvider;class AppServiceProvider extends ServiceProvider{ /** * Bootstrap any application services. * 引导任何应用程序服务。 * @return void */ public function boot() .

2021-09-04 21:47:23 24

原创 【Laravel5源码阅读】Laravel服务提供者

/* |-------------------------------------------------------------------------- | Autoloaded Service Providers | 自动加载的服务提供者 |-------------------------------------------------------------------------- | | The service providers listed.

2021-09-04 21:39:47 29

原创 【Laravel5源码阅读】门面类Facades

'aliases' => [ // 门面类 // App应用 'App' => Illuminate\Support\Facades\App::class, // Artisan 命令 'Artisan' => Illuminate\Support\Facades\Artisan::class, // 权限 'Auth' => Illuminate\Support\...

2021-09-04 19:44:23 31

原创 PHP异常Exception类

class Exception implements Throwable{ /** 错误消息 */ protected $message; /** 错误码 */ protected $code; /** 发生错误的文件名 */ protected $file; /** 发生的错误行 */ protected $line; /** * 克隆异常 * 尝试克隆异常,这会导致致命错误。 * @link ht.

2021-09-04 18:21:33 30

原创 【Laravel5源码阅读】Facade类Facade.php

<?phpnamespace Illuminate\Support\Facades;use Mockery;use RuntimeException;use Mockery\MockInterface;abstract class Facade{ /** * The application instance being facaded. * 被外观化的应用程序实例。 * @var \Illuminate\Contracts\Foundation.

2021-09-04 18:08:22 27

原创 【Laravel5源码阅读】Artisan类Artisan.php

<?phpnamespace Illuminate\Support\Facades;/** * @see \Illuminate\Contracts\Console\Kernel */class Artisan extends Facade{ /** * Get the registered name of the component. * 获取组件的注册名称 * @return string */ protected stat.

2021-09-04 17:45:41 30

原创 【Laravel5源码阅读】命令行Comman.php

<?phpnamespace Illuminate\Console;use Illuminate\Contracts\Support\Arrayable;use Symfony\Component\Console\Helper\Table;use Symfony\Component\Console\Input\ArrayInput;use Symfony\Component\Console\Output\NullOutput;use Symfony\Component\Console.

2021-09-04 17:34:35 33

原创 Laravel中一个类调用另一个类中的方法的特殊方式

1. 自定义一个服务类<?phpnamespace App\Services;class TestService{ public function testService() { return 'test service'; }}2.在其它类或控制器中使用app()方法进行调用<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;class Te

2021-09-03 23:07:43 55

原创 Laravel 自定义门面facade和仓库repository

1.创建facade及其实现类(1)创建自定义facade类App/Repositories/Facades/CustomLog.php<?phpnamespace App\Repositories\Facades;use Illuminate\Support\Facades\Facade;class CustomLog extends Facade{ protected static function getFacadeAccessor() {

2021-08-21 14:18:16 76

软件设计师中级历年真题及2009-2017

软件设计师中级历年真题及2009-2017

2021-04-18

PHP版顺丰下单API、取消订单API、查询订单API

PHP版顺丰下单API、取消订单API、查询订单API

2021-03-07

Java8 Windows64位安装包JDK

Java8 Windows64位安装包JDK

2021-04-18

ELK windows安装包2020最新版

elasticsearch、logstash、kibana,window安装包,ELK windows安装包2020最新版ELK windows安装包2020最新版ELK windows安装包2020最新版ELK windows安装包2020最新版ELK windows安装包2020最新版

2020-12-13

php-redis中文手册

php-redis中文手册

2018-08-25

redis4.1php扩展

redis4.1php扩展

2018-08-24

php Redis扩展类

Redis类PHP

2018-08-24

redis-desktop-manager-0.8.8.384

redis可视化工具redis-desktop-manager-0.8.8.384

2018-08-24

Qt5开发及实例

Qt5开发及实例

2018-08-23

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除