Laravel 3.2 Documentation.......................... 66 File Uploads................................................................................................................. 66 File Extensions ..................... ................................................................................... 67 Checking File Types ........................................................................................... few examples that we think make good bullet points: Bundles are Laravel's modular packaging system. The Laravel Bundle Repository is already populated with quite a few features that can be easily0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
Package Development i. Introduction ii. Views iii. Translations iv. Configuration v. Publishing File Groups vi. Routing xvii. Pagination i. Configuration ii. Usage iii. Appending To Pagination Links are all classes related to the HTTP transport layer of your application. Instead of a single, flat file of route filters, all middleware are now broken into their own class files. A new app/Providers Rackspace cloud storage - all with one, unified and elegant API! Storing a file in Amazon S3 is now as simple as: Storage::put('file.txt', 'contents'); For more information on the Laravel Flysystem integration0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelMutator 86 Chapter 24: Eloquent: Model 87 Examples 87 Making a Model 87 Model creation 87 Model File Location 88 Model configuration 89 Update an existing model 90 Chapter 25: Error Handling 91 Remarks Files when uploading with Laravel on Windows 136 Parameters 136 Examples 136 Generating timestamped file names for files uploaded by users. 136 Chapter 44: Observer 138 Examples 138 Creating an observer Chapter 58: Sparkpost integration with Laravel 5.4 171 Introduction 171 Examples 171 SAMPLE .env file data 171 Chapter 59: Task Scheduling 172 Examples 172 Creating a task 172 Making a task available0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
for macOS, Linux and Windows. Open the newly created project folder in VS Code. This should be the file structure: 8 While you’re here I recommend you install the extensions Laravel Extra Intellisense going to look at is the .env file. It contains a lot of configuration options, called environment variables, for your app: 9 For example in this portion of the file you can see we set the app name config/app.php file: 10 Each file in the folder contain a lot of configuration options you can set, very well documented. What’s the difference between config files and the .env file? Environment0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档vagrant box add laravel/homestead ~/Downloads/virtualbox.box 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your private key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example hosts 文件中,该文件会将对本地域名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.test 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名添加到 返回磁盘上的完整路径,如果输入请求不 是请求静态文件,则返回 false: /** * Determine if the incoming request is for a static file. * * @param string $sitePath * @param string $siteName * @param string $uri * @return0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档hosts 文件,该文件会将对本地域名的 请求重定向到 Homestead 环境,在 Mac 或 Linux 上,该文件位于/etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.app 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名放置到 Illuminate\Http\Request 实例的 file 方法来访问上传文件,该方法返回的对象 是 Symfony\Component\HttpFoundation\File\UploadedFile 类的一个实例,该类继承自 PHP 标准库中提供与文件交互方法的 SplFileInfo 类: $file = $request->file('photo'); 2.3.2 验证文件是否存在 ($request->file('photo')->isValid()){ // } 2.3.4 保存上传的文件 使用 move 方法将上传文件保存到新的路径,该方法将上传文件从临时目录(在 PHP 配置文 件中配置)移动到指定新目录: $request->file('photo')->move($destinationPath); $request->file('photo'0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 6.0 中文文档注:如果下载速度太慢,你还可以从这里下载相应版本的 Homestead 盒子:Laravel 学院提供的相关资源下载。 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your priva te key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example Homestead 站点的请求重定向到 Homestead 虚拟机。在 Mac 和 Linux 系统中,该文件位于 /etc/hosts,在 Windows 系统中, 该文件位于 C:\Windows\System32\drivers\etc\hosts。我们 以 homestead.test 域名映射为例,添加到 hosts 文件的记录如下 所示: 192.168.10.10 homestead.test $uri * @return string|false */ public function isStaticFile($sitePath, $siteName, $u ri) { if (file_exists($staticFilePath = $sitePath.'/publ ic/'.$uri)) { 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档文件中,该文件会将对 本地域名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位 于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加 方式如下: 192.168.10.10 homestead.app 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名放置到 Illuminate\Http\Request 实例的 file 方法来访问上传文件,该方法返回的对象 是 Symfony\Component\HttpFoundation\File\UploadedFile 类的一个实例,该类继承自 PHP 标准库中提供与文件交互方法的 SplFileInfo 类: $file = $request->file('photo'); 验证文件是否存在使用 hasFile ($request->file('photo')->isValid()){ // } 保存上传的文件 使用 move 方法将上传文件保存到新的路径,该方法将上传文件从临时目录(在 PHP 配 置文件中配置)移动到指定新目录: $request->file('photo')->move($destinationPath); $request->file('photo')-0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档* @return Response */ public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); return $path; } 更多细节请查看其完整文档。 Webpack & Laravel 文件中,该文件会将对本地域 名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.app 本文档由 Laravel 学院(LaravelAcademy.org)提供 该方法会返回磁盘上的完整路径,如果输入请求不是请求静态文件,则返回 false: /** * Determine if the incoming request is for a static file. * * @param string $sitePath 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质0 码力 | 691 页 | 9.37 MB | 1 年前3
共 9 条
- 1













