PHPackages                             adel-mahmoud/devtools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. adel-mahmoud/devtools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adel-mahmoud/devtools
=====================

Developer tools package for Laravel

v1.0.2(2w ago)011MITPHPPHP ^8.1

Since May 19Pushed 2w agoCompare

[ Source](https://github.com/Adel-Mahmoud/laravel-devtools)[ Packagist](https://packagist.org/packages/adel-mahmoud/devtools)[ RSS](/packages/adel-mahmoud-devtools/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel DevTools
================

[](#laravel-devtools)

A lightweight and secure developer toolkit for Laravel applications that allows you to execute predefined Artisan commands directly from the browser using keyboard shortcuts.

---

Features
--------

[](#features)

- Execute Artisan commands instantly from the browser
- Keyboard shortcuts support (works with Arabic/English keyboards)
- Secure command execution with middleware &amp; environment protection
- Configurable commands whitelist
- Toast notifications for success/error messages
- CSRF protection &amp; rate limiting
- Command confirmation for dangerous operations
- Supports Laravel 10, 11, and 12
- Easy installation, zero frontend dependencies

---

Why Laravel DevTools?
---------------------

[](#why-laravel-devtools)

During development, developers constantly run commands such as:

```
php artisan optimize:clear
php artisan migrate
php artisan queue:restart
php artisan cache:clear
```

Instead of switching to the terminal repeatedly, Laravel DevTools allows you to execute these commands directly inside the browser using keyboard shortcuts.

---

Installation
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

```
composer require adel-mahmoud/devtools --dev
```

### Publish Package Files

[](#publish-package-files)

```
php artisan devtools:install
```

This command publishes:

- Configuration file (`config/devtools.php`)
- Views

### Add Script Directive

[](#add-script-directive)

Add the directive before the closing `` tag:

```
@devtoolsScript
```

Example:

```

    App

    @yield('content')

    @devtoolsScript

```

---

Default Shortcuts
-----------------

[](#default-shortcuts)

ShortcutCommandDescription`Alt + C``optimize:clear`Clear all application caches`Alt + M``migrate`Run database migrations (with confirmation)`Alt + S``storage:link`Create symbolic link from `public/storage` to `storage/app/public``Alt + Q``queue:restart`Restart queue worker daemons`Alt + R``route:clear`Clear the route cache`Alt + V``view:clear`Clear all compiled view files> **Note:** The `migrate` command includes `--force` option and requires user confirmation before execution.

---

Configuration
-------------

[](#configuration)

The package configuration file is published to:

```
config/devtools.php
```

### Full Configuration Example

[](#full-configuration-example)

```
