You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am interested to learn Orchid for my next project. I have followed the typical installation guide in the documentation. While installing, I noticed that the default php artisan orchid:install command had generated this migration file :
...
class CreateOrchidUsersTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('users'), function (Blueprint $table) {
$table->jsonb('permissions')->nullable();
});
}
...
Let say I want to name my permissions column differently like myapp_permissions. One of the reason is because I was using the users table for more than one Laravel applications so I won't be confused which application that exclusively own the column(s).
The question is, is it possible to customize permissions column name without breaking the application? If it's possible, which configuration or which part of code should I modify besides the migration file to make it possible?
I am apologize for such a trivial question and bad grammar. Thank you for your help and guidance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am interested to learn Orchid for my next project. I have followed the typical installation guide in the documentation. While installing, I noticed that the default
php artisan orchid:install
command had generated this migration file :https://github.com/orchidsoftware/platform/blob/master/database/migrations/2015_04_12_000000_create_orchid_users_table.php
The migration will append
permissions
column on existingusers
table, which is as expected if I want typical configuration.Let say I want to name my permissions column differently like
myapp_permissions
. One of the reason is because I was using theusers
table for more than one Laravel applications so I won't be confused which application that exclusively own the column(s).The question is, is it possible to customize permissions column name without breaking the application? If it's possible, which configuration or which part of code should I modify besides the migration file to make it possible?
I am apologize for such a trivial question and bad grammar. Thank you for your help and guidance.
Beta Was this translation helpful? Give feedback.
All reactions