'providers' => append_config(array( 'LocalOnlyServiceProvider',))Protecting Sensitive ConfigurationFor "real" applications, it is advisable to keep all of your sensitive configuration out of your configuration files. Things such as database passwords, Stripe API keys, and encryption keys should...
* * @return array<string, array<int, string>> */ public function priceTaxRates(): array { return [ 'price_monthly' => ['txr_id'], ]; }[!WARNING] The taxRates method only applies to subscription charges. If you use Cashier to make "one-off" charges, you will need to manually...
The cursor method will only execute a single database query; however, the individual Eloquent models will not be hydrated until they are actually iterated over. Therefore, only one Eloquent model is kept in memory at any given time while iterating over the cursor....
Each Nova resource contains a fields method. This method returns an array of fields, which generally extend the Laravel\Nova\Fields\Field class. Nova ships with a variety of fields out of the box, including fields for text inputs, booleans, dates, file uploads, Markdown, and more....
'providers' => append_config(array( 'LocalOnlyServiceProvider', )) 機密な設定の保護Protecting Sensitive Configuration 「現実の」アプリケーションでは、機密扱いの設定を全部、設定ファイルより外しておくことは、賢明な手法です。データーベースのパスワードやStripeのAPIキー、暗号化のキーは、で...
The generated keys are not typically kept in source control:php artisan passport:keys If necessary, you may define the path where Passport's keys should be loaded from. You may use the Passport::loadKeysFrom method to accomplish this:/** * Register any authentication / authorization services. ...
The generated keys are not typically kept in source control:1php artisan passport:keysIf necessary, you may define the path where Passport's keys should be loaded from. You may use the Passport::loadKeysFrom method to accomplish this:
When deploying Passport to your production servers for the first time, you will likely need to run the passport:keys command. This command generates the encryption keys Passport needs in order to generate access token. The generated keys are not typically kept in source control:1php artisan ...
In Laravel, the `protected $fillable` property is used to define an array of attributes that are mass assignable. This means these attributes can be assigned using mass-assignment techniques, such as when creating a new model instance or updating an existing one using the `create` or `update...
The cursor method will only execute a single database query; however, the individual Eloquent models will not be hydrated until they are actually iterated over. Therefore, only one Eloquent model is kept in memory at any given time while iterating over the cursor....