id(); $table->string('name'); // e.g., 'View Posts', 'Edit Pages' $table->string('slug')->unique(); // e.g., 'posts.view', 'pages.edit' $table->string('resource'); // e.g., 'Page', 'Plugin', 'Theme', 'Blog Post' $table->string('action'); // e.g., 'view', 'edit', 'delete' $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('permissions'); } };