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 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
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
CakePHP Cookbook 2.x
URL Rewrites on IIS7 (Windows hosts) IIS7 does not natively support .htaccess files. While there are add-ons that can add this support, you can also import htaccess rules into IIS to use CakePHP’s native CSS, JavaScipt, and rerouting should work correctly. URL-Rewriting on lighttpd Lighttpd does not support .htaccess functions, so you can remove all .htaccess files. In the lighttpd configuration, make sure primary key’s name is not id, then you must set the Model.primaryKey attribute. CakePHP does not support composite primary keys. If you want to directly manipulate your join table data, use direct query0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
URL Rewrites on IIS7 (Windows hosts) IIS7 does not natively support .htaccess files. While there are add-ons that can add this support, you can also import htaccess rules into IIS to use CakePHP’s native CSS, JavaScipt, and rerouting should work correctly. URL-Rewriting on lighttpd Lighttpd does not support .htaccess functions, so you can remove all .htaccess files. In the lighttpd configuration, make sure primary key’s name is not id, then you must set the Model.primaryKey attribute. CakePHP does not support composite primary keys. If you want to directly manipulate your join table data, use direct query0 码力 | 820 页 | 2.52 MB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
Electron6, sciter7 *Script • ECMAScript : Norme depuis 1997 – Juin 2023 : ECMA-262 14th edition8 – Support9 des différentes implémentations – Conversions avec BabelJS10 • JavaScript : implémentation Firefox (attribut src) language="JavaScript" est déprécié et type vaut par défaut text/javascript. The type attribute gives the language of the script or format0 码力 | 10 页 | 91.95 KB | 1 年前3
CakePHP Cookbook Documentation 5.xyour own first. Answers may come slower, but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org $version parameter. The App.uploadedFilesAsObjects configuration option has been removed alongside of support for PHP file upload shaped arrays throughout the framework. ClassLoader has been removed. Use composer variables to customize unit test settings instead. TestListenerTrait was removed. PHPUnit dropped support for these listeners. See PHPUnit 10 Upgrade IntegrationTestTrait::configRequest() now merges config0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xyour own first. Answers may come slower, but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org parameter. • The App.uploadedFilesAsObjects configuration option has been removed alongside of support for PHP file upload shaped arrays throughout the framework. • ClassLoader has been removed. Use variables to customize unit test settings instead. • TestListenerTrait was removed. PHPUnit dropped support for these listeners. See PHPUnit 10 Upgrade • IntegrationTestTrait::configRequest() now merges config0 码力 | 848 页 | 2.53 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 X-XSRF-TOKEN request header, which is commonly used by JavaScript frameworks. HTML forms do not support PUT or DELETE actions. So, when defining PUT or DELETE routes that are called from an HTML0 码力 | 242 页 | 1.44 MB | 1 年前3
CakePHP Cookbook 3.x
your own first. Answers may come slower, but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org the IteratorAggregate interface. Instead it directly implements the Iterator interface to better support using statements with collections. When marshalling data from the request into entities, the ORM Cake\Event\EventInterface was added to give allow better typehinting in the future. Form Form classes now support the _validatorClass property which works the same as it does on ORM\Table. Http Response::withAddedLink()0 码力 | 1244 页 | 1.05 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













