laravel 事件、监听、异步队列
原创 2021-07-31 16:14:50
1519阅读
php artisan 总结
原创 2018-05-31 09:17:01
2734阅读
1点赞
php artisan make:controller UserController #创建controller php artisan make:model Flight #创建model php artisan route:list #路由列表 php artisan config:clear
转载 2021-02-22 19:29:00
109阅读
2评论
<?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
88阅读
<?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
45阅读
文实例讲述了Laravel执行migrate命令提示:No such file or directory的解决方法。分享给大家供大家参考,具体如下:今天使用Laravel命令行工具操作数据库迁移操作时报错,提示mysql 2002错误,如图:1.增加一个数据库配置项'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_H
原创 2022-04-12 17:35:55
349阅读
laravel配置数据库
原创 2019-11-16 12:38:44
1045阅读
1点赞
在使用laravel框架的时候 php artisan vendor:publish 可
原创 2021-09-08 15:18:58
591阅读
laravel基础课程 2、Laravel配置文件、路由及php artisanphp artisan是什么) 一、总结 一句话总结: 1、Laravel中的环境配置分为哪两类? 2、环境配置中(.env)的APP_KEY=base64:nZL6SJk6K3DEOqbDAUvvrw2Im1Wo2n
转载 2019-05-06 22:29:00
264阅读
2评论
php artisan功能测试1、php artisan 命令列表2、常用命令3、route4、make4.1
原创 2022-09-20 16:50:31
873阅读
 源码在哪首先,我们还是可以使用编辑器的搜索功能搜 ​​ConfigCacheCommand​​,这样就可以直接打开 ​​config:cache​​ 命令的源代码了,位于 ​​Illuminate\Foundation\Console\ConfigCacheCommand​​ 中,关键的代码还是位于 fire() 方法中:public function fire(){ $this->c
转载 2018-08-20 19:42:00
298阅读
2评论
php artisan make:migration alter_sources_description --table=life_car_sourcesphp artisan migratephp artisan migrate:rollback --step=1 # 回滚变更<?phpuse
原创 2022-05-11 10:21:53
607阅读
阅读目录场景一般用法是场景在使用laravel框架的时候php artisan vendor:publish可以把对应的服务提供者的资源文件,复制到指定的路径下。一般
原创 2023-02-09 11:38:51
114阅读
本文文档适用于laravel5.2版本,其他版本参考。 artisan 命令查询 php artisan list artisan 帮助 php artisan help 有没想过自己写一些命令,然后通过artisan执行呢,根据文档,我们来一一操作 创建 php artisan make:cons
转载 2020-03-13 16:07:00
207阅读
2评论
author:咔咔wechat:fangkangfk数据填充时一直报错,说是类不存在最后看到官网说是需要执行composer dump-autoload然后在执行填充文件,这个时候就ok了...
原创 2019-07-15 16:58:42
65阅读
author:咔咔这个报错原因是没有开启PHP环境造成的PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=test", "root", "root" , [])
原创 2019-07-09 10:08:17
275阅读
1、配置缓存信息 使用laravel自带的artisan命令,将所有config里面的配置都缓存到一个文件里。 php artisan config:cache 所有缓存信息会被 bootstrap/cache/config.php 文件里,也可以用以下命令来删除该缓存信息: php artisan
转载 2020-12-18 14:28:00
312阅读
2评论
记录下自己的错误一、1、原因是没有pdo扩展导致的,2、解决办法:打开php.ini,然后去掉以下两行代码之前的分号(;)即可。如下;extension=php_pdo_firebird.dllextension=php_pdo_mysql.dll二、但是我运行pdo链接,还是报这个错。最后发现是自己的pdo链接字符串有问题,导致无法连接。原因是单引号与双引号...
php
转载 2021-06-23 15:26:56
680阅读
Artisan 是 Laravel 提供的 CLI(命令行接口),它提供了非常多实用的命令来帮助我们开发 Laravel 应用。前面我们已使用过 Artisan 命令来生成应用的 App Key 和控制器。在本教程中,我们会用到以下 Artisan 命令,你也可以使用 php artisan lis ...
转载 2021-10-29 18:16:00
116阅读
2评论
记录下自己的错误 一、 1、原因是没有pdo扩展导致的, 2、解决办法:打开php.ini,然后去掉以下两行代码之前的分号(;)即可。如下; extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll 二、 但是我运行pdo链接,还是报这个错
转载 2019-04-26 21:37:00
55阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5