Giter VIP home page Giter VIP logo

devtools-issues's People

Contributors

tabacitu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sethuaung

devtools-issues's Issues

[Bug] DevTools incorrectly shows 'HasController'

Bug report

What I did

I have a number of models one is called "monitoringpoint" and another is called "monitoringpointissues".

I used The Model section of DevTools to create the CRUD for MonitoringPointIssues. This worked great.
However, "hasController' is now ticked for "MonitoringPoint". When you hover over it, the link is to 'app/Http/Controllers/Admin/MonitoringPointIssueCrudController.php', which is the controller created for the previous model.

I also has the same problem with the models 'Operator' and 'OperatorEntity'. My workaround was to create all of the files CRUD, Request etc for the Operator model.

What I expected to happen

I expected that MonitoringPoint model would not be incorrectly linked to MonitoringPointIssues

What happened

The Page incorrectly thinks that the controller has been created.

What I've already tried to fix it

Nothing, wouldn't know where to start unless the table name is too long.

Is it a bug in the latest version of Backpack?

After I run composer update backpack/crud
This was a fresh install of backpack and devtools

Backpack, Laravel, PHP, DB version

php: 8.1.7
DB : Mysql Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
Laravel: 9.19.0
Backpack: 5
BackpackPro: 1.1
DevTools: 1.0

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.7 (cli) (built: Jun 25 2022 08:12:59) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Zend OPcache v8.1.7, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.19.0@bbce25bd823133f6a5a724f2d62680b711f1d0df

BACKPACK VERSION:

5.1.4@4539c787a2e052d2e2e2c00188c38432dc2a7ea9

[Bug]

Bug report

What I did

I installed the devtools tools

What I expected to happen

Be able to configure a new model when going to /admin/devtools/model/create
image

What happened

I can see the form but when I click on "+ Add Column" or "More >" or "+ Add Relationship" nothing happen

What I've already tried to fix it

Tried to see errors in console and logs file.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.11 (cli) (built: Sep 29 2022 18:29:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

LARAVEL VERSION:

v9.50.2@39932773c09658ddea9045958f305e67f9304995

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.4.16
backpack/editable-columns: 2.1.1
backpack/logmanager: v4.0.9
backpack/permissionmanager: 6.0.15
backpack/pro: 1.5.0
backpack/revise-operation: 1.0.11
backpack/devtools: 1.3.0
backpack/generators: v3.3.13

Operating System and Server Setup

I encountered the problem above on my Windows with Ubuntu WSL2 machine, and my web server is set up using Nginx with php-fpm.

From the log file I have this warning:
Return type of Backpack\DevTools\CustomFile::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vendor/backpack/devtools/src/CustomFile.php on line 373

EDIT removed console javascript error as it was not related

After install: Target class [App\Http\Middleware\CheckIfAdmin] does not exist

Installed Laravel (v8.6.1) with homestead and installed dev-tools with:

composer require --dev --with-all-dependencies backpack/devtools
php artisan backpack:devtools:install

On browsing to http://homestead.test/admin/devtools I see the following error:

Target class [App\Http\Middleware\CheckIfAdmin] does not exist

Extra info:

PHP VERSION:

PHP 7.4.5 (cli) (built: Apr 19 2020 07:36:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.58.0@1b819bf99d87bd543a4d4895e5b3350f61ea7a23

BACKPACK VERSION:

4.1.51@756173cf6593c3d530fca0e54831763c796e24d8

[Bug] DevTools Stopped working after composer update

Bug report

What I did

Ran composer update, intending to update backpack to use crud js library

What I expected to happen

Software would update and i'd go about coding

What happened

Software updated, but the link to dev tools is now broken, image of error is attached

What I've already tried to fix it

restart server, clear cache/etc

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.0.9 (cli) (built: Jul 30 2021 13:03:39) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.9, Copyright (c) Zend Technologies
with Zend OPcache v8.0.9, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.83.26@7411d9fa71c1b0fd73a33e225f14512b74e6c81e

BACKPACK VERSION:

5.4.7@6e1bb116de9f3091530cb9b11edcceb4d252daa8

Operating System and Server Setup

I encountered the problem above on my Windows 10 machine, and my web server is set up using Homestead.

image

[Bug] Trying to access array offset on value of type null

Bug report

What I did

After following the automatic installation, when trying to create a new model (even without adding any particular filed), when saving I end up with a 500 error.

'Trying to access array offset on value of type null'

What I expected to happen

The new model to be at least saved.

What happened

Got a 500 error Trying to access array offset on value of type null

What I've already tried to fix it

Tried to simplify the new model to the bare minimum. Also, restarting Mysql or php artisan serve, as well as a composer update. No change.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.2 (cli) (built: Jan 19 2022 10:18:23) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

LARAVEL VERSION:

v9.48.0@c78ae7aeb0cbcb1a205050d3592247ba07f5b711

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.0.19
backpack/pagemanager: 3.0.11
backpack/permissionmanager: 6.0.15
backpack/pro: 1.0.18
backpack/generators: v3.1.13

Operating System and Server Setup

I encountered the problem above on my Windows 10 machine, and my web server is set up using XAMPP.

[Bug] Error on install

Hi,

image

php artisan backpack:require:devtools

INFO Connecting to the Backpack add-on repository

│ Backpack repository entry is present in composer.json.
│ Backpack authentication token is present.

Require Backpack DevTools on dev .............................................................................. ERROR
│ For further information please check the log file.
│ You can also follow the manual installation process documented in https://backpackforlaravel.com/addons/

Thx for your help.

[Bug] Undefined variable $redirectUrl

Bug report

What I did

I've tried to create a new Model with factories and all things.

What I expected to happen

Create the Model, Migrations, etc and back to Models.

What happened

Link of the report from laravel

What I've already tried to fix it

Nothing yet, i dont have experience in devtools or backpack

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.9 (cli) (built: Aug 2 2022 14:17:33) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans

LARAVEL VERSION:

v10.4.1@7d15f7eef442633cff108f83d9fe43d8c3b8b76f

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.5.2
backpack/devtools: 1.3.5
backpack/generators: 3.3.16
backpack/logmanager: v4.0.9
backpack/newscrud: 4.0.9
backpack/permissionmanager: 6.0.16
backpack/pro: 1.6.3
backpack/settings: 3.0.16

Operating System and Server Setup

I encountered the problem above on my Windows 11 machine, and my web server is set up using Laragon with nginx.

[Bug] Creating non-"root" Models creates duplicates

Bug report

What I did

Tried to create a new model with App\Models\Tennis\Court

What I expected to happen

I expected 1 model Court.php to be created in the directory app/models/tennis.

What happened

It created 2 models:

app/models/Court.php:

<?php

namespace App\Models;

use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Court extends Model
{
    use CrudTrait;
    use HasFactory;

    /*
    |--------------------------------------------------------------------------
    | GLOBAL VARIABLES
    |--------------------------------------------------------------------------
    */

    protected $table = 'courts';
    // protected $primaryKey = 'id';
    // public $timestamps = false;
    protected $guarded = ['id'];
    // protected $fillable = [];
    // protected $hidden = [];
    // protected $dates = [];

}

and

app/models/tennis/Court.php:

<?php

namespace App\Models\Tennis;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Court extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'CourtId',
        'CourtName',
        'CityName',
        'place_id',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'id' => 'integer',
    ];

    public function place()
    {
        return $this->belongsTo(\App\Models\Place::class, 'place_id');
    }
}

Also, the CourtCrudController.php did not use the subdirectory structure which I would assume would make a lot of sense. Same for Requests.

I

[Bug] Uncaught ReferenceError: Livewire is not defined

Bug report

DevTools when i click on add new column no respond and i checked the console i found that livewire 404 ( net::ERR_ABORTED 404 (Not Found))
Uncaught ReferenceError: Livewire is not defined

What I did

i tried to reinstall 3 times starting from installing Laravel

What I expected to happen

??

What happened

??

What I've already tried to fix it

??

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.13 (cli) (built: Nov 26 2022 14:07:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.42.2@607d7867c93706eae20e28e46679f8a66e2a23ec

BACKPACK VERSION:

5.4.10@050b288caf2f60c79313f2b0b7d4fefd25177f3f

Operating System and Server Setup

I encountered the problem above on my [ Mac OS machine, and my web server is set up using Apache.

Error on loading dev-tools

Bug report

What I did

In admin click de DevTools link

What I expected to happen

Devtools opening

What happened

Red notification in top right corder: "Error loading page: Please refresh the page."

If you need the whole stack let me know
"message": "syntax error, unexpected 'public' (T_PUBLIC), expecting ';' or ',' (View: /home/vagrant/code/[MYPROJECT]/vendor/backpack/crud/src/resources/views/crud/columns/check.blade.php)",
"exception": "Facade\Ignition\Exceptions\ViewException",
"file": "/home/vagrant/code/[MyProject]/database/factories/CategoryFactory.php",
"line": 22,
"trace": [

What I've already tried to fix it

Use the installer (did not work the first time. I thought It was related to that).

[Feature Request] Make validation rule match field size

Feature Request

What's the feature you think DevTools should have?

When I define a string with a certain length
image
the corresponding request rule should reflect this

return [
    'str10' => 'required|string',
];

should be

return [
    'str10' => 'required|string|max:10',
];

If not, I face

Illuminate\Database\QueryException
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'str10' at row 1 (SQL: update `table_name` set `str10` = 123456789, `table_name`.`updated_at` = 2021-12-03 21:19:34 where `id` = 2)

How often do you see yourself using this feature, if implemented?

Every time I set the length of a field

[Bug] - Unable to override ID field name

Bug report

What I did

I generated a new model using the model creation form. For the id field I kept everything as is except for the field name which I renamed. The "generate migration" and "run migration" checkboxes were checked.

What I expected to happen

The migration should be generated with this general structure:

    Schema::create('flight', function (Blueprint $table) {
            $table->id('flight_id');
           // ...
    });

Which would result in having the ID field named properly in DB.
And the generated model should have something like this:

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'flight_id';

What happened

The ID field name override attempt was ignored and the migration was generated as so:

   Schema::create('flight', function (Blueprint $table) {
        $table->id();
        // ...
    });

What I've already tried to fix it

My workaround is to not run the migrations automatically and edit the migration files and models manually before running the migrations. Takes some time with large number of models.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP 7.4.27 (cli) (built: Dec 14 2021 19:52:13) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

### LARAVEL VERSION:
v8.83.9@ac6e16bb56510eda2e373c6365d5c92da3fd559d

### BACKPACK VERSION:
5.0.14@1e355c4c046a34423a1a3e3150120245a4bfd8e9

Operating System and Server Setup

I encountered the problem above on my Windows 10 machine, and my web server is set up using Laragon.

[Bug] Add Modal does not work.

Bug report

What I did

composer create-project laravel/laravel brid
composer config http-basic.backpackforlaravel.com user pass
added repo to composer.json
composer require backpack/crud
php artisan backpack:install
Installed all 3 premium addons (Backpack pro, DevTools, Backpack Editable Columns)
There were no error during the install process.

Licence I bought: Everything.

What I expected to happen

Login is working and DevTools listing is working displaying only Users model as expected. But when I click on Add Model app breaks.

What happened

An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 near "(": syntax error
https://capture.dropbox.com/mTOkDFg5Sd8cOVLO

What I've already tried to fix it

composer require --dev --with-all-dependencies backpack/devtools
composer update backpack/crud

Backpack, Laravel, PHP, DB version

PHP 8.1.12
Laravel version: 9.48.0
MySql 8.0
laravel/laravel - requires backpack/crud (^5.4)
backpack/devtools 1.3.0 requires backpack/crud (^5.3)
backpack/editable-columns 2.1.1 requires backpack/crud (^5.3.13)
backpack/generators v3.3.13 requires backpack/crud (^5.3.11)
backpack/pro 1.6.0 requires backpack/crud (^5.4.9)

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.12 (cli) (built: Oct 31 2022 22:06:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.48.0@c78ae7aeb0cbcb1a205050d3592247ba07f5b711

BACKPACK PACKAGE VERSIONS:

Operating System and Server Setup

I encountered the problem above on my Amazon Linux 2 EC2 instance.

Log

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1 near "(": syntax error at /var/www/brid/vendor/laravel/framework/src/Illuminate/Database/PDO/Connection.php:81)
[stacktrace]
#0 /var/www/brid/vendor/laravel/framework/src/Illuminate/Database/PDO/Connection.php(81): PDO->query(' SEL...')
#1 /var/www/brid/vendor/doctrine/dbal/src/Connection.php(1064): Illuminate\Database\PDO\Connection->query(' SEL...')
#2 /var/www/brid/vendor/doctrine/dbal/src/Schema/SqliteSchemaManager.php(703): Doctrine\DBAL\Connection->executeQuery(' SEL...', Array)
#3 /var/www/brid/vendor/doctrine/dbal/src/Schema/AbstractSchemaManager.php(561): Doctrine\DBAL\Schema\SqliteSchemaManager->selectTableColumns('main')
#4 /var/www/brid/vendor/doctrine/dbal/src/Schema/AbstractSchemaManager.php(408): Doctrine\DBAL\Schema\AbstractSchemaManager->fetchTableColumnsByTable('main')
#5 /var/www/brid/vendor/doctrine/dbal/src/Schema/SqliteSchemaManager.php(57): Doctrine\DBAL\Schema\AbstractSchemaManager->doListTables()
#6 /var/www/brid/vendor/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1651): Doctrine\DBAL\Schema\SqliteSchemaManager->listTables()
#7 /var/www/brid/vendor/backpack/crud/src/app/Library/Database/DatabaseSchema.php(36): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema()
#8 /var/www/brid/vendor/backpack/crud/src/app/Library/Database/DatabaseSchema.php(21): Backpack\CRUD\app\Library\Database\DatabaseSchema::generateDatabaseSchema('Backpack\\DevToo...', 'models')
#9 /var/www/brid/vendor/backpack/crud/src/app/Library/Database/TableSchema.php(12): Backpack\CRUD\app\Library\Database\DatabaseSchema::getForTable('Backpack\\DevToo...', 'models')
#10 /var/www/brid/vendor/backpack/crud/src/app/Models/Traits/HasRelationshipFields.php(132): Backpack\CRUD\app\Library\Database\TableSchema->__construct('Backpack\\DevToo...', 'models')
#11 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/AutoSet.php(91): Backpack\DevTools\Models\Model::getDbTableSchema()
#12 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/AutoSet.php(57): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->getDbTableColumns()
#13 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/AutoSet.php(116): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->getDbColumnTypes()
#14 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/FieldsProtectedMethods.php(230): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->inferFieldTypeFromDbColumnType('name')
#15 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/Fields.php(54): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->makeSureFieldHasType(Array)
#16 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/Fields.php(108): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->makeSureFieldHasNecessaryAttributes(Array)
#17 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/CrudField.php(375): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->addField(Array)
#18 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/CrudField.php(57): Backpack\CRUD\app\Library\CrudPanel\CrudField->save()
#19 /var/www/brid/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/Fields.php(543): Backpack\CRUD\app\Library\CrudPanel\CrudField->__construct('name')
#20 /var/www/brid/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Backpack\CRUD\app\Library\CrudPanel\CrudPanel->field('name')
#21 /var/www/brid/vendor/backpack/devtools/src/Http/Controllers/ModelCrudController.php(158): Illuminate\Support\Facades\Facade::__callStatic('field', Array)
#22 /var/www/brid/vendor/backpack/crud/src/app/Http/Controllers/CrudController.php(121): Backpack\DevTools\Http\Controllers\ModelCrudController->setupCreateOperation()
#23 /var/www/brid/vendor/backpack/crud/src/app/Http/Controllers/CrudController.php(42): Backpack\CRUD\app\Http\Controllers\CrudController->setupConfigurationForCurrentOperation()
#24 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(162): Backpack\CRUD\app\Http\Controllers\CrudController->Backpack\CRUD\app\Http\Controllers\{closure}(Object(Illuminate\Http\Request), Object(Closure))
#25 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#27 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /var/www/brid/app/Http/Middleware/CheckIfAdmin.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#29 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\CheckIfAdmin->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /var/www/brid/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 /var/www/brid/vendor/backpack/crud/src/app/Http/Middleware/AuthenticateSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Backpack\CRUD\app\Http\Middleware\AuthenticateSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /var/www/brid/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /var/www/brid/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 /var/www/brid/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure))
#40 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 /var/www/brid/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /var/www/brid/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /var/www/brid/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#47 /var/www/brid/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#48 /var/www/brid/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#49 /var/www/brid/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#50 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#51 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#52 /var/www/brid/vendor/livewire/livewire/src/DisableBrowserCache.php(19): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Livewire\DisableBrowserCache->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#56 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#57 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#58 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#59 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#60 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#61 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#62 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#63 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#64 /var/www/brid/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#65 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#66 /var/www/brid/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#67 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#68 /var/www/brid/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#69 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#70 /var/www/brid/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#71 /var/www/brid/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#72 {main}

[Feature Request] enable `ShowOperation` by default

Feature Request

What's the feature you think DevTools should have?

The generated crud does not have a setupShowOperation() method. It should.
If not, like now, only default columns are shown. Standard practice is to add this code

protected function setupShowOperation()
{
    $this->setupListOperation();
}

How often do you see yourself using this feature, if implemented?

Every time I generate a crud.

could not find driver

When I go to the /admin/devtools/model route, I get

could not find driver

create table "models" ("file" varchar, "id" integer not null primary key autoincrement, "file_type" varchar, "file_extension" varchar, "file_path" varchar, "file_path_absolute" varchar, "file_path_relative" varchar, "file_path_from_base" varchar, "file_name" varchar, "file_name_without_extension" varchar, "file_name_with_extension" varchar, "file_last_accessed_at" datetime, "file_last_changed_at" datetime, "file_last_modified_at" datetime, "file_created_at" datetime, "file_directory" varchar, "file_contents" varchar, "class_name" varchar, "class_namespace" varchar, "class_path" varchar, "class_path_with_extension" varchar, "created_at" datetime, "updated_at" datetime)

[Feature Request] Postgres Support

Feature Request

What's the feature you think DevTools should have?

PostgreSQL DB Support

How often do you see yourself using this feature, if implemented?

I develop all of my applications with a Postgres backed. If this is added then I will be using it every single time. I actually already purchased the software but didn't notice the MySQL requirement as I was looking at the README. As the migration generator is the most exciting thing for me, I would absolutely LOVE IT if this is added.

[Bug] There are no commands defined in the "backpack:devtools" namespace.

Bug report

What I did

added a repository to composer.json
composer require --dev backpack/devtools (success)
executed php artisan backpack:devtools:install

What I expected to happen

Devtools to be installed automatically

What happened

There are no commands defined in the "backpack:devtools" namespace.

Did you mean one of these?
backpack
backpack:filemanager

What I've already tried to fix it

Following every step in installation again

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 7.4.18 (cli) (built: May 3 2021 11:27:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.18, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.49.0@855a919d08b45f93cb3cf709736528c3d1531884

BACKPACK VERSION:

4.1.48@53bc6028f445f9b2ecfb8893283f6b6087539353

[Bug] Cannot rollback other migration than first, migration not found

Bug report

What I did

In Migration,

What I expected to happen

http://127.0.0.1:8000/admin/devtools/migration, cloik rollback on the second row, while the first row is not rolled back.

What happened

Error message: migration not found.
That should either execute or say: rollback previous migration first

What I've already tried to fix it

Rollback the first row. Then the second row can be rolled back.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.74.0@004ea195012d5132eca07a176a6e587c6a74815e

BACKPACK VERSION:

4.1.61@4400187391eb5b73672c2b166a990cd737277409

Devtools

backpack/devtools 1.0.28

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [php artisan serve].

[Bug] could not find driver (SQL: create table "models"..) when accessing admin/devtools/model

Bug report

What I did

On a new install of backpack and devtools, I can't access to devtools URL because of this error :

Illuminate\Database\QueryException could not find driver (SQL: create table "models" ("file" varchar, "id" integer not null primary key autoincrement, "file_type" varchar, "file_extension" varchar, "file_path" varchar, "file_path_absolute" varchar, "file_path_relative" varchar, "file_path_from_base" varchar, "file_name" varchar, "file_name_without_extension" varchar, "file_name_with_extension" varchar, "file_last_accessed_at" datetime, "file_last_changed_at" datetime, "file_last_modified_at" datetime, "file_created_at" datetime, "file_directory" varchar, "file_contents" varchar, "class_name" varchar, "class_namespace" varchar, "class_path" varchar, "class_path_with_extension" varchar, "created_at" datetime, "updated_at" datetime))

Database is correctly setup in the .env file.
Query works in the main app code.

What I've already tried to fix it

I try to reinstall my laravel and packages from scratch with a new Laravel 8 install with no other package or class. It fails again.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

LARAVEL VERSION:

v8.60.0@44f16a31a1d4ac8a51605550d7796e2273984a48

BACKPACK VERSION:

4.1.52@239e60df0436f8a817facce20a2dffcb2b6e7250

[Bug] SQLSTATE[HY000]: General error: 1 near "SHOW": syntax error (SQL: SHOW INDEX FROM `failed_jobs`;)

Bug report

Illuminate \ Database\ QueryException
PHP 8.0.16
9.52.5
SQLSTATE[HY000]: General error: 1 near "SHOW": syntax error
SHOW INDEX FROM failed_jobs;

What I did

Fresh installation using sqlite database and devtools, clicked on "create new model"

What I expected to happen

view is properly coming up

What happened

error occurred

What I've already tried to fix it

yes, with a fresh migration

Backpack, Laravel, PHP, DB version

    "backpack/crud": "^5.5",
    "backpack/devtools": "^1.3",

When I run php artisan backpack:version the output is:

LARAVEL VERSION:

v9.52.5@e14d28c0f9403630d13f308bb43f3d3cb73d6d67

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.5.5
backpack/devtools: 1.3.5
backpack/generators: 3.3.16

Operating System and Server Setup

Windows 10, Server built-in VSCode

[Bug] error in file preview

Bug report

What I did

I clicked on "See-files"in devtools

What I expected to happen

To see the files

What happened

got a PHP error:

Call to a member function isClass() on array (View: /var/www/<myfolder>/vendor/backpack/devtools/resources/views/widgets/preview-files.blade.php)

What I've already tried to fix it

nothing

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

LARAVEL VERSION:

v8.83.2@b91b3b5b39fbbdc763746f5714e08d50a4dd7857

BACKPACK VERSION:

5.0.8@f811634e8c4789fa15026d70592515b8051700ad

Operating System and Server Setup

I encountered the problem above on my Windows 10, WSL, Apache2, Mysql

This message appears after checking "Generate CRUD" and press save: array_filter(): Argument #1 ($array) must be of type array, null given

123456

456

log content:
array_filter(): Argument #1 ($array) must be of type array, null given {"exception":"[object] (TypeError(code: 0): array_filter(): Argument #1 ($array) must be of type array, null given at /var/www/vendor/backpack/crud/src/app/Library/CrudPanel/Traits/SaveActions.php:52)

In fact, after reloading the web page, I found that the program was executed successfully.
How can I solve it please?
(I installed it normally and did not manually modify the program.)

An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 near "(": syntax error

Bug report

"DevTools -> Add model" give following error:

Doctrine\DBAL\Exception\SyntaxErrorException
An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 near "(": syntax error

What I did

I did a fresh new installation of Laravel and Backpack.
Following I reported the versions list:

[public_html]$ php artisan backpack:version

PHP VERSION:

PHP 7.4.32 (cli) (built: Sep 28 2022 09:09:55) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.32, Copyright (c), by Zend Technologies
with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans

LARAVEL VERSION:

v8.83.25@.............

BACKPACK VERSION:

5.3.13@............

[public_html]$ sqlite3 --version
3.7.17 2013-05-20 00:56:22 .................

By the way before of "Laravel 8" with Backpack I tried to install "Laravel 9" too and for some reason I got same error.
My server is running Centos 7 with MariaDB 10.5.17. I checked out also phpinfo() if the error could be related to SQLite but it's correctly installed and enabled.

To be honest I don't know what else to look at or to do.

Can someone please help me?

[Bug] Cannot create factory for existing model - `Undefined index: created`

Bug report

What I did

I have created several models without factory and seeder.

What I expected to happen

After the models were created I've tried to add factory and seeder for those models.

What happened

I've got "Undefined index: created" error when trying to generate the factory. Error seems to be on backpack\devtools\src\Generators\BlueprintGenerator.php:516

What I've already tried to fix it

still investigating at the moment

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 7.3.3 (cli) (built: Mar 6 2019 21:53:23) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies

LARAVEL VERSION:

v8.54.0@7b88554cd1aeb52b7f82689bf244182e7a81894b

BACKPACK VERSION:

4.1.50@09cf360f2c1d1ad40d054c6c36e16c3c44f2e461

[Bug] DevTools - should not let dev submit the form when two columns have the same name

Bug report

What I did

Defined a new table where two fields accidentally have the same name, then hit Save and Back

What I expected to happen

Error message

What happened

Returned empty form, all data is lost.

PHP VERSION:

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.74.0@004ea195012d5132eca07a176a6e587c6a74815e

BACKPACK VERSION:

4.1.61@4400187391eb5b73672c2b166a990cd737277409

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [php artisan serve].

[Feature] Add operations into created crud controllers

Do your backpack pro working natively with Devtools?
I am trying to implement InlineCreate Operation (Pro) but it doesn't work.

Create model "contact" with relation 1-n to model "company". I have ContactCrudController where the user can select Company. However, I don't see the inline creatin in action. Is there a documentation to use backpack pro for those with devtools? Thanks.

[Bug] Error when creating a belongsToMany relationship

Bug report

What I did

I create a model "Context" with ( id, name )
I create a second model "Action" with (id , name) and I want to add this relationship : Action belongsToMany "Context"

What I expected to happen

I nice looking page saying "alright boy, everything is ok" :D
With a automated creation of "Action" and "ActionContext" model having (id, context_id, action_id)

What happened

I've got this error : "ErrorException
Invalid argument supplied for foreach() (View: C:_sources__www\backpack\vendor\backpack\devtools\resources\views\livewire\relationship-schema_partial_model.blade.php) "

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

LARAVEL VERSION:

v8.60.0@44f16a31a1d4ac8a51605550d7796e2273984a48

BACKPACK VERSION:

4.1.52@239e60df0436f8a817facce20a2dffcb2b6e7250

Operating System and Server Setup

I encountered the problem above on my [Windows 10 / Mac OS / Linux / ...] machine, and my web server is set up using [WAMP / XAMPP / Valet / Homestead / ...].

Windows with Laragon

[Bug] Cannot create model using Text Column Type

Bug report

What I did

Create new model that contains Text column type

What I expected to happen

Model created with text field successfully

What happened

Crashed with Undefined array key "args"

What I've already tried to fix it

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 8.1.3 (cli) (built: Feb 16 2022 08:26:12) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v9.4.1@29f0aaade82eadd20ef881b4efb88b0dad4e9a5b

### BACKPACK VERSION:
5.0.10@f0c0c45914c39a9083e19f0c5c3d10ef0e142565

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [laragon].

[Bug] In the request class there is a ref to a non existent class

Bug report

What I did

I generated a new Model and the FormRequest

What I expected to happen

Nothing specific

What happened

the new generated request file contains this row

use App\Http\Requests\Request;

This class doesn't exists at all in a fresh new Laravel 8 project

What I've already tried to fix it

Simply, I deleted the row

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 7.4.25 (cli) (built: Oct 20 2021 09:29:27) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v8.79.0@8091f07558ff4a890435ff9d25fa9aca0189ad63

### BACKPACK VERSION:
4.1.64@e49566ebd4a55e6849ef7e88822e53195719e2b8

Operating System and Server Setup

Indifferent

[Feature Request] More clarity on Create functions

Feature Request

What's the feature you think DevTools should have?

I would like clarification about the difference between Create Migration and Create Model
They seem very similar to me, why are both present?

I would also like clarification about all the grayed out Create functions. They are not active for me. How can they be used?

image

[Bug] Generate a model is very slow, occasionaly leading to `FatalError`

Bug report

What I did

Generate a model

What I expected to happen

Success, or at least no loss of data. I have to fill in the form again.

What happened

Symfony\Component\ErrorHandler\Error\FatalError
Maximum execution time of 60 seconds exceeded
http://127.0.0.1:8000/admin/devtools/model

What I've already tried to fix it

Run it again. It took about 20 seconds. I only experience long times like this when I do operations like composer update.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.74.0@004ea195012d5132eca07a176a6e587c6a74815e

BACKPACK VERSION:

4.1.61@4400187391eb5b73672c2b166a990cd737277409

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [php artisan serve].

[Bug] Compilation failed: unrecognised character

Bug report

What I did

Run dev tools generate all in a custom model.

What I expected to happen

Files to be generated.

What happened

Some files generated, but a crash.
https://flareapp.io/share/KPgXbZ37

What I've already tried to fix it

I've tried that it works with a more standard model.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:
PHP 8.0.8 (cli) (built: Aug 5 2021 15:36:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies

LARAVEL VERSION:

v8.79.0@8091f07558ff4a890435ff9d25fa9aca0189ad63

BACKPACK VERSION:

5.0.6@2be4ff8407259f528a3541f0569ce156bab63165

Operating System and Server Setup

Mamp on MacOS X

[Feature Request] Let the addon be Semi-Open/Closed Source

Feature Request

What's the feature you think DevTools should have?

It would be great if devs allow access to the protected repo to those who purchased the addon. And let those people submit PRs. :)

How often do you see yourself using this feature, if implemented?

Quite often. I'd be willing to help with the development of this tool because I see a huge potential in it.

[Bug] Cannot create model using Json Column Type

Bug report

What I did

Create new model that contains json column type

What I expected to happen

Model created with repeatable field successfully

What happened

Crashed with Undefined array key "args"

What I've already tried to fix it

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 8.1.3 (cli) (built: Feb 16 2022 08:26:12) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v9.4.1@29f0aaade82eadd20ef881b4efb88b0dad4e9a5b

### BACKPACK VERSION:
5.0.10@f0c0c45914c39a9083e19f0c5c3d10ef0e142565

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [laragon].

[Bug] request validation rule conflict

Bug report

What I did

Generated a model with a fielname that is unique
image

What I expected to happen

public function rules()
{
    return [
        'column_name' => 'required|string|unique:table_name,column_name,' . $this->id,
        ...
    ];
}

What happened

image

public function rules()
{
    return [
        'column_name' => 'required|string|unique:table_name,column_name',
        ...
    ];
}

What I've already tried to fix it

Manually add ,' . $this->id to the rule

PHP VERSION:

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.74.0@004ea195012d5132eca07a176a6e587c6a74815e

BACKPACK VERSION:

4.1.61@4400187391eb5b73672c2b166a990cd737277409

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [php artisan serve].

[Feature Request] Remember last add Model configuration

Feature Request

What's the feature you think DevTools should have?

It would be nice if there was an action that allows to start over a model generation with the parameters previously entered.
The workflow could be to generate a new model, migration and crud using http://127.0.0.1:8000/admin/devtools/model/create, evaluate the results without modifying the code, then compe back to http://127.0.0.1:8000/admin/devtools/model/create or http://127.0.0.1:8000/admin/devtools/model/23/edit and add or modify the previous input.
This could alse be used to try to reproduce a devtools error.

How often do you see yourself using this feature, if implemented?

On each crash
On each model generated, I rarely do it completely right the first time.

[Bug] failed to open stream: No such file or directory when creating new model

Bug report

What I did

I initially created a model (Customer) that I wanted to redo using the DevTools so I deleted all the generated files. I then tried to create a new version of the model.

PS: it's a pity you cannot modify an existing model using DevTools

What I expected to happen

The new model and its files are created.

What happened

An Exception is thrown:

include(/home/erik/laravel/customers/ICT-Web-Solution/admin_gen2/vendor/composer/../../app/Models/Customer.php): failed to open stream: No such file or directory

What I've already tried to fix it

Retried multiple times, restarted web server, changed browser, no idea what else to do.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 7.4.9 (cli) (built: Jul 5 2021 13:33:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.67.0@fc52acafd069aedc079bf8f17d1a4af4ef489b1e

BACKPACK VERSION:

4.1.57@7996979454fb7e02a866ee56dd7569f7d35f5ded

Operating System and Server Setup

I encountered the problem above on my Ubuntu 20.04 machine, and my web server is set up using the LAMP stack.

[Bug] Error 500 Class X does not seem to be auto-loaded

What I did
I install Laravel + Backpack + Jetstream (inertia), then i create some extra migrations and later install Devtools

What I expected to happen
Be able to access Devtools module

What happened
I've got Error 500 "Class CreateUsersTable does not seem to be auto-loaded." (This migration was created by Jetstream).

What I've already tried to fix it
Try to run "composer dump-autoload", nothing change, any other module work as normal.

Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:

PHP VERSION:
PHP 7.4.20 (cli) (built: Jun 4 2021 21:24:55) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.20, Copyright (c), by Zend Technologies

LARAVEL VERSION:
v8.42.1@41ec4897a70eb8729cf0ff34a8354413c54e42a6

BACKPACK VERSION:
4.1.45@c9918581306bc4a8d605b87b4757893baa03fcc1

Can't install backpack/devtools with composer [Bug]

Bug report

When I try to install backpack/devtools with composer ( composer require --dev --with-all-dependencies backpack/devtools ) it give me this exception:
[InvalidArgumentException]
Could not find a matching version of package backpack/devtools. Check the package spelling, your version constraint and that the package is available in a stability which matches
your minimum-stability (dev).

Few days ago all worked perfectly (authentication with token and then installation)

Is any problem on the source or is the problem on my side?

[Bug] Does not detect generated Factory and Seeder

Bug report

What I did

Created a simple "Owner" model, with a "name" column. Checked the checkboxes at the bottom to generate factory & seeder.

What I expected to happen

Create the factory & seeder AND show them in the sidebar.

What happened

The factory & seeder were created OK, but they don't show up in the sidebar:

Screenshot 2022-01-17 at 10 42 03

Screenshot 2022-01-17 at 10 42 21

What I've already tried to fix it

Nothing yet.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 7.4.21 (cli) (built: Jul 12 2021 03:04:54) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
    with Zend OPcache v7.4.21, Copyright (c), by Zend Technologies

### LARAVEL VERSION:
v8.79.0@8091f07558ff4a890435ff9d25fa9aca0189ad63

### BACKPACK VERSION:
4.2.x-dev@4b4b08d6d6a18f9613a9dbf7cb22e147248c7f73

Operating System and Server Setup

Mac OS with Valet.

[Bug] "Go back" in browser does not initialize the form correctly

Bug report

What I did

http://127.0.0.1:8000/admin/devtools/model/create
add one column, probably other things also
uncheck Run Migration
uncheck Generate Crud

What I expected to happen

no error

What happened

ErrorException
include(D:\laragon\www\dauwgard.be\vendor\composer/../../app/Models/Test.php): Failed to open stream: No such file or directory
http://127.0.0.1:8000/admin/devtools/model

It is not the first time I have this error, but I don't know yet how to reproduce it.

What I've already tried to fix it

Navigate back, relaod page, try again with different model name, now I get

Symfony\Component\Yaml\Exception\ParseException
Unable to parse at line 4 (near ": string").
http://127.0.0.1:8000/admin/devtools/model

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v8.74.0@004ea195012d5132eca07a176a6e587c6a74815e

BACKPACK VERSION:

4.1.61@4400187391eb5b73672c2b166a990cd737277409

Operating System and Server Setup

I encountered the problem above on my [Windows 10] machine, and my web server is set up using [php artisan serve].

[Feature Request] I will stop my version ( but will try to list what i wanted )

I was working on something similar but didn't expect that there will be official version
https://github.com/iMokhles/gui-for-backpack repo was empty here local is full of some functionalities
i started the road but i was a little bit slow :) i will discontinue my version and of course i will buy your version
you guys doing a great work and Nice work in this devtools

and What Feature i need in Laravel for Backpack is this Pull request ( Laravel-Backpack/CRUD#3420 )
@tabacitu please if you have time check it ;)

and again Excellent Job in those DevTools

[Feature Request] Enable the devtools in production

Feature Request

What's the feature you think DevTools should have?

Maybe a config key to enable or disable the devtools in production, and by default devtools is disabled in a production environment.

// file: config/backpack/devtools.php
return [
    //...

    'enable_in_production' => env('BACKPACK_DEVTOOLS_ENABLE_IN_PRODUCTION', false),
];

How often do you see yourself using this feature, if implemented?

Some projects need to be tested in production mode on the developer's machine, and switching between local and production while developing a new module or adding some data using the devtools can be painful.
So by default, the devtools MUST not work in a production mode, and if we enable the devtools while in production some commands needs to be updated, for example, the php artisan migrate will become php artisan migrate --force, or maybe a prompt will appear to confirm the execution of the action.

[Feature Request] Generate controllers outside “admin” folder

Bug report

What I did

  • Set paths.crud_controllers config param to 'app_path('Http/Controllers')' in config/backpack/devtools.php
  • Create new model with CRUD controller

What I expected to happen

I expected NewCrudController.php to be created in the folder 'Http/Controllers', but the folder was 'Http/Controllers/Admin'.

What I've already tried to fix it

I searched the backpack config files and traces of presence 'Admin' in 'vendor/backpack' folder.

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.2.4 (cli) (built: Apr 3 2023 12:58:01) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans
with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.52.5@e14d28c0f9403630d13f308bb43f3d3cb73d6d67

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.5.7
backpack/devtools: 1.3.5
backpack/generators: 3.3.16
backpack/langfilemanager: 4.1.0
backpack/logmanager: v4.0.10
backpack/permissionmanager: 6.0.16
backpack/pro: 1.6.4
backpack/settings: 3.0.16

Operating System and Server Setup

I encountered the problem above on my [Mac OS] machine, and my web server is set up using [nginx + MySQL5.7 + php8.2.4].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.