---
title: "Discussion on \"Laravel: Automatically sync permissions from Policies directory\" | Hashnode"
description: "Discussion on \"Laravel: Automatically sync permissions from Policies directory\". Sync permissions from Policies directory, and add missing permissions to the permissions table.\nCreate new command\nphp artisan make:command SyncPermissionsCommand\n\nCommand code\n<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nu..."
url: "https://hashnode.com/posts/laravel-automatically-sync-permissions-from-policies-directory/668d6df70c17e0c1a8155a2e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel: Automatically sync permissions from Policies directory](https://almooradi.hashnode.dev/laravel-automatically-sync-permissions-from-policies-directory?utm_source=hashnode&utm_medium=feed)

Sync permissions from Policies directory, and add missing permissions to the permissions table. Create new command php artisan make:command SyncPermissionsCommand Command code <?php namespace App\\Console\\Commands; use Illuminate\\Console\\Command; u...

Jul 9, 2024 · 1 min read · almooradi.hashnode.dev  
Updated Jan 27, 2025  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#spatie](https://hashnode.com/tag/spatie)
-   [#permissions](https://hashnode.com/tag/permissions)

## Written by

[Al-Mooradi](https://hashnode.com/@almoodari)

@almoodari

  
[View profile](https://hashnode.com/@almoodari)

Software Engineering

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
