CakePHP Cookbook 4.x
Validating Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema Cache Tool AuthComponent AuthComponent Suggested Reading Before Continuing Authentication Shells as Cron Jobs CakePHP Provided Commands Cache Tool Completion Tool I18N Tool Plugin Tool Schema Cache Tool Routes Tool Server Tool Interactive Console (REPL) Shells Routing in the Console Environment Test Connections PHPUnit Configuration Creating Schema in Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with SQL Dump Files Fixture State Managers Creating0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xValidating Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema Cache Tool Caching Cache Configuring Cache Engines Cache::setConfig Engine Options FileEngine Shells as Cron Jobs CakePHP Provided Commands Cache Tool Completion Tool I18N Tool Plugin Tool Schema Cache Tool Routes Tool Server Tool Interactive Console (REPL) Routing in the Console Environment Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Schema with Migrations Creating Schema with Abstract Schema Creating Schema with SQL Dump Files Fixture State Managers Creating0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
needing to configure the framework. While CakePHP is flexible enough to accommodate almost any database schema, adhering to the conventions will save you time as you can leverage the convention-based defaults $entity->slug) { $sluggedTitle = Text::slug($entity->title); // trim slug to maximum length defined in schema $entity->slug = substr($sluggedTitle, 0, 191); } } This code is simple, and doesn’t take into account If you extend these classes you will need to update your code. • The internals of Cake\Database\Schema\CacheCollection and Cake\Database\SchemaCache have changed. If you extend these classes you will0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xneeding to configure the framework. While CakePHP is flexible enough to accommodate almost any database schema, adhering to the conventions will save you time as you can leverage the convention-based defaults $entity->slug) { $sluggedTitle = Text::slug($entity->title); // trim slug to maximum length defined in schema $entity->slug = substr($sluggedTitle, 0, 191); } } This code is simple, and doesn’t take into account needing to configure the framework. While CakePHP is flexible enough to accommodate almost any database schema, adhering to the conventions will save you time as you can leverage the convention-based defaults0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
More topics Shell Helpers Running Shells as cronjobs Completion Shell Code Generation with Bake Schema management and migrations I18N shell ACL Shell Test shell Upgrade shell Development Configuration and avoid configuration. CakePHP is flexible enough to accommodate even the worst legacy database schema, but adhering to convention will save you time. Check out CakePHP Conventions for more information 'login' => 'cakeBlog', 'password' => 'c4k3-rUl3Z', 'database' => 'cake_blog_tutorial', 'schema' => '', 'prefix' => '', 'encoding' => 'utf8' ); Once you’ve saved your new database.php file0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 3.x
Validating Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema Cache Shell AuthComponent Suggested Reading Before Continuing Authentication Choosing an Jobs CakePHP Provided Commands Cache Shell I18N Shell Completion Shell Plugin Shell Routes Shell Schema Cache Shell Server Shell Upgrade Shell Shells Interactive Console (REPL) Routing in the Console needing to configure the framework. While CakePHP is flexible enough to accommodate almost any database schema, adhering to the conventions will save you time as you can leverage the convention based defaults0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
to configure the framework. While CakePHP is flexible enough to accom- modate almost any database schema, adhering to the conventions will save you time as you can leverage the convention based defaults $entity->slug) { $sluggedTitle = Text::slug($entity->title); // trim slug to maximum length defined in schema $entity->slug = substr($sluggedTitle, 0, 191); } } This code is simple, and doesn’t take into account Driver::newTableSchema() was added. This hook method lets you customize which the class used for schema metadata. • FunctionBuilder::cast() was added. • Query::orderAsc() and Query::orderDesc() now accept0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
and avoid configuration. CakePHP is flexible enough to accommodate even the worst legacy database schema, but adhering to convention will save you time. Check out CakePHP Conventions for more information 'port' => '', 'login' => 'cakeBlog', 'password' => 'c4k3-rUl3Z', 'database' => 'cake_blog_tutorial', 'schema' => '', 'prefix' => '', 'encoding' => 'utf8' ); Blog Tutorial 3 CakePHP Cookbook Documentation called user_id. The basic pattern is: hasOne: the other model contains the foreign key. Relation Schema Apple hasOne Banana bananas.apple_id User hasOne Profile profiles.user_id Doctor hasOne Mentor0 码力 | 820 页 | 2.52 MB | 1 年前3
Laravel 5.0 Documentation
Attribute Casting xix. Model Events xx. Model Observers xxi. Converting To Arrays / JSON iv. Schema Builder i. Introduction ii. Creating & Dropping Tables iii. Adding Columns iv. Changing Columns Response Illuminate\Support\Facades\Response Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Blueprint Session Illuminate\Session\SessionManager session Session (Instance) may be used with the default Eloquent authentication driver. Remember: when building the database schema for this model, make the password column at least 60 characters. Also, before getting started, make0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelMiddleware 131 Chapter 42: Multiple DB Connections in Laravel 133 Examples 133 Initial Steps 133 Using Schema builder 133 Using DB query builder 134 Using Eloquent 134 From Laravel Documentation 134 Chapter use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAdminsTable extends Migration { /** https://riptutorial Run the migrations. * * @return void */ public function up() { Schema::create('admins', function (Blueprint $table) { $table->increments('id');0 码力 | 216 页 | 1.58 MB | 1 年前3
共 53 条
- 1
- 2
- 3
- 4
- 5
- 6













