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
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 them into the boot() method of app/Providers/RouteServiceProvider.php . Add use Illuminate\Support\Facades\Route; in the app/Providers/RouteServiceProvider.php in order to continue using the attackers to modify the environment for a request. You should convert your environment detection to use machine host names ( hostname command on Mac, Linux, and Windows). Laravel now generates a single log file:0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
installations you might have done in the past. How exactly depends on how you installed PHP on your machine. Hopefully you haven’t any and we can go on. On macOS, use Homebrew (install Homebrew first if routes. 38 Ok! Now you should see the list of dogs on the / route: Support\Facades\Route; use App\Models\Dog; /* |------------------------------------------------ logged in they will have the ability to edit the list. Laravel provides us built-in authentication support in the framework. 52 To make things even easier, it provides Breeze, an application starter kit0 码力 | 111 页 | 14.25 MB | 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
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 Str::equals 方法被废弃,直接使用 PHP 的 hash_equals 方法即可。 Illuminate\View\Expression 被废弃,使用 Illuminate\Support\HtmlString 即 可。 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而 不是仅仅报告 比如,在某个服务提供者的 boot 方法中编写代码如下: Support\ServiceProvider; class ResponseMacroServiceProvider extends ServiceProvider { /**0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 3.2 Documentation 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 to Added new Sectionable interface to allow cache drivers to simulate namespacing. Added support for HAVING SQL clauses. Added array_pluck helper, similar to pluck method in Underscore.js0 码力 | 139 页 | 1.13 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
obligatoire • HTTP 2.01 (2015) – Binaire, multiplexage connexions, compression entêtes, push, … – Supporté par presque tous2 les navigateurs, une majorité de serveurs • HTTP 3.03 (2019) – UDP, correction com/Content/Development/JavaScript/Articl es/GIFAsPipe/Index.cfm 10https://www.w3.org/TR/XMLHttpRequest/ 4 • Supporté par la majorité des navigateurs • Alternative souhaitable si JS désactivé XHR en JS var xhr; function0 码力 | 11 页 | 91.09 KB | 1 年前3
共 14 条
- 1
- 2













