Laravel 5.0 Documentation
component itself is still optional. This release of Cashier brings numerous bug fixes, multi-currency support, and compatibility with the latest Stripe API. The Artisan queue:work command now supports a more efficient queries when using simple "Next" and "Previous" links in your pagination view. In production, destructive migration operations will now ask for confirmation. Commands may be forced to run for other team members). For more information on environment configuration, view the full documentation. Note: You will need to place the appropriate .env file and values on your production server before0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationupdate and mold the application over time as is needed and its expressiveness will allow you and your team to develop code that is both concise and easily read. What Makes Laravel Different? There are Replace the laravel folder. 5 Laravel 3.2.2 Overall improvement of Postgres support. Fix issue in SQL Server Schema grammar. Fix issue with eager loading and first or find Use Memcached API instead of older Memcache API. Added support for bundles outside of the bundle directory. Added support for DateTime database query bindings. 6 Migrated to0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning LaravelIlluminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAdminsTable extends Migration { /** https://riptutorial.com/ App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { use AuthenticatesUsers; composer use Illuminate\Support\Facades\View; // ... View::composer('*', function ($view) { $view->with('somedata', $data); }); Class-based composer use Illuminate\Support\Facades\View; //0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
on the deployment, for example locally in development you can have debug enabled, while on the production server you don’t want that. Some options in config files, like the ones you see above, make or not, or show different information depending on the environment variables (e.g. if it’s in production or development), and much more. Here’s a 101 on Blade (for more I highly recommend the official authenticated @guest shows a block if the user is not authenticated @production shows a block if the environment is a production environment Using the @php directive we can write any PHP: @php0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.1 中文文档ry 实现上的 macro 方法。 比如,在一个服务提供者的 boot 方法中: Support\ServiceProvider; use Illuminate\Contracts\Routing\ResponseFactory; class ResponseMacroServiceProvider 目录,我们可以按照自己的喜好组织其位置,例如可以创建一个 App\Http\ViewComposers 目录: Support\ServiceProvider; class ComposerServiceProvider extends ServiceProvider { /** * 在容器中注册绑定 56 下面的例子创建了一个@datetime($var)指令: Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Perform0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档方法现在会保留集合的键名,如果你不想这些方法保留键名,使 用集合实例的 values 方法即可。 Composer 类 Illuminate\Foundation\Support\Composer 类现在被移动 到 Illuminate\Support\Composer,如果你没有在代码中使用该类那么这一改变对程序没 有影响。 命令和处理器 自处理命令 在创建任务/命令时你不再需要实现 SelfHandling com/LaravelCollective/bus 配置 开发环境 添加一个 env 配置项到配置文件 app.php 中: 'env' => env('APP_ENV', 'production'), 缓存和环境 如果你在开发过程中使用 config:cache 命令,必须保证只是在配置文件中调用了 env 函 数,而不是在应用程序的其它地方。 如果你在应用程序中调用了 env Str::equals 方法被废弃,直接使用 PHP 的 hash_equals 方法即可。 Illuminate\View\Expression 被废弃,使用 Illuminate\Support\HtmlString 即 可。 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而 不是仅仅报告0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 01. Cours devweb
? – Automatisation du déploiement (R. Emourgeon4) ? – Vos présentations ? Vos propositions ? • Support : ghpages5 (source6), partage fichiers : teams7 Projets • Faire pour apprendre • Les rôles dans io/slides-devweb/ 6https://github.com/HE-Arc/slides-devweb/tree/master/src 7https://teams.microsoft.com/l/team/19%3ahGPvEcXl8HCohGre1MLq7AQ4qPWNkY_JqMTTPMPLM- I1%40thread.tacv2/conversations?groupId=cadc33cc- makeuseof.com/tag/best-websites-internet/ 15https://github.com/HE-Arc/ 16https://teams.microsoft.com/l/team/19%3ahGPvEcXl8HCohGre1MLq7AQ4qPWNkY_JqMTTPMPLM- I1%40thread.tacv2/conversations?groupId=cadc33cc-0 码力 | 7 页 | 129.56 KB | 1 年前3
Laravel 6.0 中文文档中,该业务逻辑可以被提取到任务中间件中,从而 将你的任务 handle 方法从频率限制中解放出来: Support\Facades\Redis; 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 6 class RateLimited 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 8 use App\LogEntry; use Illuminate\Support\LazyCollection; LazyCollection::make(function () { $handle = fopen('log.txt', 'r'); while (($line table($table, $as = null, $conn ection = null) cursor 方法 影响级别:低 cursor 方法现在返回的 是 Illuminate\Support\LazyCollection 实例而不 是 Generator,LazyCollection 可以像生成器一样迭代: $users = App\User::cursor(); foreach0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档方法会生成一个时间戳最靠前的 UUID,通过诸如 MySQL 的数据库来索引,更简单,也更高效。两个方法都会返回 Ramsey\Uuid\Uuid 对象: use Illuminate\Support\Str; return (string) Str::uuid(); return (string) Str::orderedUuid(); Collision 默认的 laravel/laravel Blade::withoutDoubleEncoding 方法: Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { 方法: Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档版本高于 5.3.4: Support\Facades\Auth; use App\Http\Controllers\Controller; class ProjectController extends Controller key'); // } 声明:控制器 session 部分由网友 AC1982(微信号)提供翻译支持。 数据库 集合 查询构建器现在返回 Illuminate\Support\Collection 实例而不是原生数组,以便保持和 Eloquent 返回结果类型一致。 如果你不想要迁移查询构建器结果到 Collection 实例,可以在查询构建器的 get 方法后调用 ficationServiceProvider。 你 还 需 要 在 配 置 文 件 config/app.php 的 aliases 数 组 中 注 册 门 面 Illuminate\Support\Facades\Notification。 最 后 , 你 可 以 在 User 模 型 或 其 它 你 希 望 接 收 通 知 的 模 型 中 使 用 Illuminate\Notifications\Notifiable0 码力 | 691 页 | 9.37 MB | 1 年前3
共 15 条
- 1
- 2













