Giter Site home page Giter Site logo

adminarchitect / core Goto Github PK

View Code? Open in Web Editor NEW
209.0 17.0 66.0 2.34 MB

AdminArchitect - Active Admin for Laravel

Home Page: http://adminarchitect.com

License: MIT License

PHP 43.99% JavaScript 6.99% Vue 4.70% Less 0.03% SCSS 35.75% Blade 8.55%
laravel administration backend adminpanel php vuejs laravel-admin

core's Introduction

Admin Architect

Scrutinizer Code Quality Latest Version on Packagist Total Downloads Latest Stable Version Software License Build Status

Missing Laravel Administration Framework. It's like ActiveAdmin for Laravel.

Docs

Follow the documentation.

License

The Admin Architect is open-sourced software licensed under the MIT license.

core's People

Contributors

andersonpem avatar dinandmentink avatar endihunter avatar hugeval avatar leo-unglaub avatar mojtabaahn avatar owanhunte avatar twmbx avatar vitalyrotari avatar viurciuc avatar zoryamba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

How to display relation's table field?

This is an awesome project! But I have one problem - I can't find in any documentation or here anywhere how to display a field from related table. My events table has a client_id field, that points to clients table. In grid right now the data is displayed at 1. How do I make it dispay's client's name (title field)? I know I need to use update() in columns() method, but how? I see that works just fine in your demo app ... but cannot figure what is the correct way of doing it except manually doing search on Client model... is this the only/right way?

2 more questions:

  • is that demo site available to download/check anywhere? It'd probably be a great help for users!
  • I see this project is also on codecanyon... what's the difference? I'd gladly support this project, would just like to know what the difference between github's version and one from cc is?

How can I upload a image to my custom directory?

Hello,

I set a field from a form to be for image uploads like this :

` public function form()
{
return $this
->scaffoldForm()

        # Update existing column
        ->update('image', function ($element) {

            # Set a different input type
            $element->setInput(
                new Image('image')
            );

            return $element;
        });
}`

But my images are saved in a temporary folder with extension .tmp.
How can I set my folder?

Thank you!

Datetime type is provided, but yields date

When using a datetime input type the Terranet\Administrator\Form\Type\Datetime is correctly selected.

Expected behaviour: this element has a datetime selector (eg bootstrap-datetimepicker)
Actual behaviour: this element has a date selector.

If interested I can make a PR against adminarchitect/core and adminarchitect/mix to include a datetimepicker element. But wanted to check if this would be appreciated first.

Reproduce by:

  • make a new module that includes, for example:
public function form()
    {
        return $this
        ->scaffoldForm()
        ->update('party_at', function($e){ return $e->setInput('datetime'); });
    }

Issues installing with Laravel 5.6

Running composer require adminarchitect/core with Laravel 5.6 is throwing the error:

Your requirements could not be resolved to an installable set of packages.

Seems to be compatibility issues with the codesleeve package?

Multicheckbox and Multiselect

Good day!
In my project I use a multicheckbox field. In the form I update the field http://joxi.ru/krDDZDZSEVgnzr :
`public function form()
{
return $this->scaffoldForm()
->update("type_discharge", function (FormElement $element) {
$control = new MultiCheckbox("type_discharge");
$control->setOptions($this->config()["type_discharge"]);
return $element->setInput($control);
});

}````
But when I save the data, an error occurs: http://joxi.ru/J2blMlMuXnga5r
In the Saver.php exist the method handleJsonType. There is a method in which the type of the form field is checked and the array obtained in this case or the Json is decoded. That is, we get an array, and there must be a string (json_decode accepts only a JSON string).
For the experiment, I comment this line and data is successfully saved in the database. In the class Multichecbox method htmlInput() made for:
return Form::checkbox($name, $value, in_array($value, **(array) json_decode($this->value)**), $attributes);
Tell me, please, how it should be correct. Maybe I misunderstood something. Thank you in advance.

Laravel 5.8 support

Upon trying to migrate to laravel 5.8 I ran into this error:

Access level to Czim\Paperclip\Model\PaperclipTrait::originalIsEquivalent() must be public (as in class Illuminate\Database\Eloquent\Model)

It seems the Czim\Paperclip dependency used is incompatible with laravel 5.8. Is there any chance of upgrading the dependency?

Modules with a custom url fail

Hey,
when you use a custom module with a custom url the link always points to a 404. Here is an example:

class FooBar extends Scaffolding implements Navigable
{
    public function url ()
    {
        return 'foo-bar';
    }
}

When i use FooBar without the url method the url is /foo_bar and works fine but when i change it i get a 404. I am on Laravel 5.6 with everything updated.

Thanks and greetings
Leo

Problem doing article example

Hello. I'm using this video as reference to learn AdminArchitect:

https://www.youtube.com/watch?v=sLqjm90RZxI

The model and migration were created correctly. But I can't get the status field to work correctly. It shows as a text box.

The article module has the code overriding the form function:

    public function form(){
            return array_merge(
                $this->scaffoldForm(), ['status' => \admin\form\select('Status',['draft'=>'Draft', 'published'=>'Published'])]
            );
    }

Laravel returns me this error:

array_merge(): Argument #1 is not an array (View: /var/www/resources/views/vendor/administrator/edit/index.blade.php)

the scaffoldForm() method returns me a mutable class, not an array. Could that be the cause?

A dd from the scaffoldform():

Mutable {#1128 ▼
  #items: array:3 [▼
    0 => FormElement {#1109 ▼
      #input: Text {#1098 ▶}
      #description: null
      #template: null
      #relations: null
      #standalone: false
      #keepOriginalID: false
      #id: "title"
      #title: "Title"
      #module: null
      #translator: null
    }
    1 => FormElement {#1116 ▼
      #input: Textarea {#1114 ▶}
      #description: null
      #template: null
      #relations: null
      #standalone: false
      #keepOriginalID: false
      #id: "body"
      #title: "Body"
      #module: null
      #translator: null
    }
    2 => FormElement {#1123 ▼
      #input: Text {#1121 ▶}
      #description: null
      #template: null
      #relations: null
      #standalone: false
      #keepOriginalID: false
      #id: "status"
      #title: "Status"
      #module: null
      #translator: null
    }
  ]
}

a dd from the custom field array:

array:1 [▼
  "status" => array:3 [▼
    "type" => "select"
    "label" => "Status"
    "options" => array:2 [▼
      "draft" => "Draft"
      "published" => "Published"
    ]
  ]
]

Environment

  • PHP 7.2.4 with Nginx / Caddy
  • Ubuntu

Could you help me with that? Thanks in advance :)

is this package abandoned?

Hi there
Seems it is abandoned to me

It's a few days I'm searching around for laravel crud builders, panels and anything that can compete with Laravel nova and i found Admin Architect and to me it's awesome! it has many things that Nova has and amazing part is that it had it all before even nova comes out! and It's not just a simple crud builder like many ones out there.

but the fact that this packages has no commits since like 3 months and the community haven't discovered its potentials is so shocking to me.

so i wonder what is your vision about AA's future!

thanks.

Stapler and AdminArchitect

Dear,

This package seems great to me and perfectly fit my needs. Simple, Clean and works well. My only concerns is the Stapler package used for the Files. Since stapler is not maintained anymore and is made for L5.4. I cannot even install it right now where I'm looking into.

Using version ^1.0 for codesleeve/laravel-stapler
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - codesleeve/stapler v1.0.0-Beta4 requires illuminate/foundation ~4 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.x-dev, 4.2.x-dev], illuminate/foundation[4.0.x-dev].
    - codesleeve/stapler v1.0.0-Beta3 requires illuminate/foundation 4.0.x -> satisfiable by laravel/framework[4.0.x-dev], illuminate/foundation[4.0.x-dev].
    - codesleeve/stapler v1.0.0-Beta2 requires illuminate/foundation 4.0.x -> satisfiable by laravel/framework[4.0.x-dev], illuminate/foundation[4.0.x-dev].
    - codesleeve/stapler v1.0.0-Beta1 requires illuminate/foundation 4.0.x -> satisfiable by laravel/framework[4.0.x-dev], illuminate/foundation[4.0.x-dev].
    - illuminate/foundation 4.0.x-dev requires illuminate/exception dev-master -> satisfiable by illuminate/exception[dev-master].
    - codesleeve/laravel-stapler v1.0.0 requires laravel/framework ~4 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.x-dev, 4.2.x-dev].
    - codesleeve/laravel-stapler v1.0.01 requires laravel/framework ~4 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.x-dev, 4.2.x-dev].
    - illuminate/exception dev-master requires filp/whoops 1.1.* -> satisfiable by filp/whoops[1.1.0, 1.1.0-rc, 1.1.1, 1.1.10, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9] but these conflict with your requirements or minimum-stability.
    - laravel/framework 4.2.x-dev requires filp/whoops 1.1.* -> satisfiable by filp/whoops[1.1.0, 1.1.0-rc, 1.1.1, 1.1.10, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9] but these conflict with your requirements or minimum-stability.
    - laravel/framework 4.1.x-dev requires filp/whoops 1.0.10 -> satisfiable by filp/whoops[1.0.10] but these conflict with your requirements or minimum-stability.
    - laravel/framework 4.0.x-dev requires filp/whoops 1.0.7 -> satisfiable by filp/whoops[1.0.7] but these conflict with your requirements or minimum-stability.
    - codesleeve/laravel-stapler v1.0.07 requires codesleeve/stapler 1.2.* -> satisfiable by codesleeve/stapler[v1.2.0].
    - codesleeve/laravel-stapler v1.0.08 requires codesleeve/stapler 1.2.* -> satisfiable by codesleeve/stapler[v1.2.0].
    - codesleeve/laravel-stapler v1.0.09 requires codesleeve/stapler 1.2.* -> satisfiable by codesleeve/stapler[v1.2.0].
    - Conclusion: don't install codesleeve/stapler v1.2.0
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.06
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.05
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.04
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.03
    - codesleeve/stapler v1.0.0 requires doctrine/inflector v1.0 -> satisfiable by doctrine/inflector[v1.0].
    - codesleeve/stapler v1.0.01 requires doctrine/inflector v1.0 -> satisfiable by doctrine/inflector[v1.0].
    - codesleeve/stapler v1.0.02 requires doctrine/inflector v1.0 -> satisfiable by doctrine/inflector[v1.0].
    - Conclusion: don't install doctrine/inflector v1.0
    - Conclusion: don't install imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.05|remove imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.05|don't install imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.04|remove imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.04|don't install imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.03|remove imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Conclusion: don't install codesleeve/laravel-stapler v1.0.03|don't install imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - Installation request for codesleeve/laravel-stapler ^1.0 -> satisfiable by codesleeve/laravel-stapler[v1.0.0, v1.0.01, v1.0.02, v1.0.03, v1.0.04, v1.0.05, v1.0.06, v1.0.07, v1.0.08, v1.0.09].
    - Conclusion: remove imagine/imagine v0.7.1|install codesleeve/stapler v1.0.0|install codesleeve/stapler v1.0.01|install codesleeve/stapler v1.0.02
    - codesleeve/laravel-stapler v1.0.02 requires codesleeve/stapler 1.0.* -> satisfiable by codesleeve/stapler[v1.0.0, v1.0.0-Beta1, v1.0.0-Beta2, v1.0.0-Beta3, v1.0.0-Beta4, v1.0.01, v1.0.02, v1.0.03, v1.0.04, v1.0.05, v1.0.06].
    - codesleeve/stapler v1.0.06 requires imagine/imagine ~0.6.2 -> satisfiable by imagine/imagine[0.6.2, v0.6.3].
    - codesleeve/stapler v1.0.03 requires imagine/imagine ~0.5.0 -> satisfiable by imagine/imagine[v0.5.0].
    - codesleeve/stapler v1.0.04 requires imagine/imagine ~0.5.0 -> satisfiable by imagine/imagine[v0.5.0].
    - codesleeve/stapler v1.0.05 requires imagine/imagine ~0.5.0 -> satisfiable by imagine/imagine[v0.5.0].
    - Can only install one of: imagine/imagine[0.6.2, v0.7.1].
    - Can only install one of: imagine/imagine[v0.5.0, v0.7.1].
    - Can only install one of: imagine/imagine[v0.6.3, v0.7.1].
    - Installation request for imagine/imagine (locked at v0.7.1) -> satisfiable by imagine/imagine[v0.7.1].

Request: Plugins / Packages

Dear,

Again I have said it in another issue but this is a great and simple package. And I would love to contribute in a way of saving time. Having plugins or packages to simply extend your own AA with the existing code would be nice.

E.G. A package that will create an interface for https://github.com/spatie/laravel-permission

Idea: Specturm Chat

Maybe it is an idea to get a Spectrum chat for questions and discussing. This can grow your usage as well especially due to the simpleness and easiness.

Any form element to handle array of object?

Hi there,
Thank you for writing such a good admin panel for Laravel. I got lots of inspiration and saved tons of time of making the admin panel.

One question is that on Laravel we can have attribute being defined as "array" or "json" (which is an array of object), is there any form element to handle this kind of model attributes?

Right now I am thinking to extends the basic Form\Element and write my own handling element. Is that the right way to do so?

Thanks!

add try..catch to delete action

Could you please add try..catch block in delete action of ScaffoldController to handle deleting errors? It could be useful when you want to restrict deleting when model has related models. For instance restrict category deleting if category has some products included. Seems to be a common case.

Spatie medialibrary v7 support

Hello,

Are there any plans for supporting spatie/laravel-medialibrary v7. It seems as of now only v6 is supported.

Anyone familiar with a monkeypatch that can help me to get v7 to work?

Params value is interpreted as callable

When I type in edit form in input function name (php core function or laravel function) and send it, this value is expected to be interpreted as string, but actual result - param is interpreted as callable and adminarchitect is trying to run this function.

Problem with Saver

Good day.
I want to send a message to user, when admin register him. I creates a Saver Users.php. But when I add a function sync() and called parent method sync I have an error http://joxi.ru/nAy8E8EuY0ZXw2 but element was saved.
In this place eloquent rerurns as NULL. If you edit the element, then everything works correctly.
My Saver http://joxi.ru/D2PQbQbtpP7deA.
I have the latest version of AdminArchitect.
Please, tell what is wrong. Thank you for advance.

Package is not working in laravel 10

Hi! I'm trying to install this project to start testing it, but I'm having difficulties, here is my development stack and the package installation error log.

PHP: 8.2
Composer: 2.2.5 2022-01-21 17:25:52
Laravel: 10

This package is working fine for Laravel version 8.7 with PHP version 7.4 but not working with the latest version.

upload saving only .tmp files

hello when adding an image upload field the upload seem work on bdd it write the file name but it upload only a .tmp file on a tmp folder and never the image i choose ?
i configure correctly my paperclip and filesystem

i got data in daba tabse file name like this : /tmp/phpyKWYs1

wrong redirect after deleting from view page

Hi. Thank you for your work. Admin architect is a great tool.

Just faced an issue after deleting record from view page
in ScaffoldController there are lines:

        if (URL::previous() === route('scaffold.view', ['module' => $module, 'id' => $id])) {
            return back()->with('messages', [$message]);
        }

so when deleting from view page, user gets redirect back to view page. as i understand, it works correct when record is soft deleted. but if model doesn't support soft delete - user gets 404 error

am i missing something?

The main language of the site when using the localizer

Good afternoon!
We set up the multilanguage on the site. Installed, as indicated in the documentation, terranet / localizer & terranet / translatable.
The main language is Ukrainian, the rest is Russian and English (site.ru and site.ru/en). In config / app.php 'locale' => 'uk', 'fallback_locale' => 'ru'
As a result, the website does not work out the main language, it constantly interrupts the Russian. If the Russian language is disabled in the languages ​​table - everything works. It turns out that with the installed admin function setLocale works 2 times, the first time it sets the language correctly on uk, and then interrupts it in Russian. This problem is observed only with the Russian language. If you install Russian as the main one, then everything also works correctly.
In the vendor \ terranet \ localizer \ src \ Terranet \ Localizer \ Localizer.php file, the language http://joxi.ru/5mdMjMjukdvlO2 is installed. In the find () function, $ this-> resolver-> resolve () returns permanently ru_RU.
Tell me, what can be the error? Maybe I misunderstood something. Thank you in advance.

Laravel tries to acces file upload after laravel-stapler moved it

When using laravel-stapler get an "FileNotFoundException" error on store methods.

This is not an error of laravel-stapler, because problem happens AFTER model is saved.

Problem is this:
/vendor/adminarchitect/core/src/Controllers/AdminController.php @ redirectTo
creates a second instance of the request, that validates the file, but the file doesn't exist, laravel-stapler alredy moved it

This is the error:


FileNotFoundException
                                    
 The file "C:\wamp\tmp\php9259.tmp" does not exist
--
in File.php (line 37)
at File->__construct('C:\\wamp\\tmp\\php9259.tmp', true)in UploadedFile.php (line 96)
at UploadedFile->__construct('C:\\wamp\\tmp\\php9259.tmp', 'agent-02.jpg', 'image/jpeg', 78436, 0, false)in UploadedFile.php (line 105)
at UploadedFile::createFromBase(object(UploadedFile))in InteractsWithInput.php (line 251)
at Request->Illuminate\Http\Concerns\{closure}(object(UploadedFile))
at array_map(object(Closure), array('avatar' => object(UploadedFile)))in InteractsWithInput.php (line 252)
at Request->convertUploadedFiles(array('avatar' => object(UploadedFile)))in InteractsWithInput.php (line 233)
at Request->allFiles()in InteractsWithInput.php (line 121)
at Request->all()in InteractsWithInput.php (line 71)
at Request->exists('save')in Facade.php (line 221)
at Facade::__callStatic('exists', array('save'))in AdminController.php (line 66)
at Request::exists('save')in AdminController.php (line 66)
at AdminController->redirectTo('test', 19)in ScaffoldController.php (line 126)
at ScaffoldController->store('test', object(UpdateRequest))


this happens:

ScaffoldController @ store
instantiates UpdateRequest $request and laravel-stapler moves the file in line 120

then calls
AdminController @ redirectTo
where it instantiantes another request in
Request::exists('save');

Laravel executes this method, failing:
Request->convertUploadedFiles

This solved it in my machine:
ScaffoldController @ store

passing the request as variable

return $this->redirectTo($page, $eloquent->id, $request)->with(
            'messages',
            [trans('administrator::messages.create_success')]
        );

then using the same request object in
AdminController@redirectTo


    protected function redirectTo($module, $key = null, $request)
    {
        if ($next = $request->get('back_to')) {
            return redirect()->to($next);
        }

        if ($request->exists('save')) {
            return redirect(route('scaffold.edit', $this->toMagnetParams(['module' => $module, 'id' => $key])));
        }

        if ($request->exists('save_return')) {
            if ($previous = $this->getPreviousUrl()) {
                $this->forgetPreviousUrl();

                return redirect()->to($previous);
            }

            return redirect(route('scaffold.index', $this->toMagnetParams(['module' => $module])));
        }

        return redirect(route('scaffold.create', $this->toMagnetParams(['module' => $module])));
    }

I don't know if this is the best approach, didn't make any more tests.

reproduce the error with this simple test:
https://bitbucket.org/eduardoarandah/admin-architect-test

Problem installing

Hi there,

I'm having some trouble installing adminarchitect. I created a new project (Laravel 6) and added adminarchitect (^2.0). I've published using the command: php artisan administrator:publish (using default: yes, no, yes), but it does not create the resources/assets/administrator directory and the app\Http\Terranet\Administrator\Navigation.php file. No error is given but I can't find the directory or file in the project structure. (I'm running this at windows 10 as administrator).

After that I've installed the packages and tried to compile it using npm run dev, but here I got the error:

These dependencies were not found:

  • C:\Programming\adminarchitect\resources\assets\administrator\js\app.js in multi ./resources/assets/administrator/js/app.js
  • C:\Programming\adminarchitect\resources\assets\administrator\js\editors\ckeditor.js in multi ./resources/assets/administrator/js/editors/ckeditor.js
  • C:\Programming\adminarchitect\resources\assets\administrator\js\editors\medium.js in multi ./resources/assets/administrator/js/editors/medium.js
  • C:\Programming\adminarchitect\resources\assets\administrator\js\editors\tinymce.js in multi ./resources/assets/administrator/js/editors/tinymce.js
  • C:\Programming\adminarchitect\resources\assets\administrator\js\theme.js in multi ./resources/assets/administrator/js/theme.js
  • C:\Programming\adminarchitect\resources\assets\administrator\js\vendor.js in multi ./resources/assets/administrator/js/vendor.js
  • C:\Programming\adminarchitect\resources\assets\administrator\less\glyphicons.less in multi ./resources/js/app.js ./resources/assets/administrator/less/glyphicons.less ./resources/sass/app.scss ./resources/assets/administrator/sass/app.scss ./resources/assets/administrator/sass/vendor.scss ./resources/assets/administrator/sass/editors/medium.scss
  • C:\Programming\adminarchitect\resources\assets\administrator\sass\app.scss in multi ./resources/js/app.js ./resources/assets/administrator/less/glyphicons.less ./resources/sass/app.scss ./resources/assets/administrator/sass/app.scss ./resources/assets/administrator/sass/vendor.scss ./resources/assets/administrator/sass/editors/medium.scss
  • C:\Programming\adminarchitect\resources\assets\administrator\sass\editors\medium.scss in multi ./resources/js/app.js ./resources/assets/administrator/less/glyphicons.less ./resources/sass/app.scss ./resources/assets/administrator/sass/app.scss ./resources/assets/administrator/sass/vendor.scss ./resources/assets/administrator/sass/editors/medium.scss
  • C:\Programming\adminarchitect\resources\assets\administrator\sass\vendor.scss in multi ./resources/js/app.js ./resources/assets/administrator/less/glyphicons.less ./resources/sass/app.scss ./resources/assets/administrator/sass/app.scss ./resources/assets/administrator/sass/vendor.scss ./resources/assets/administrator/sass/editors/medium.scss

To install them, you can run: npm install --save C:\Programming\adminarchitect\resources\assets\administrator\js\app.js C:\Programming\adminarchitect\resources\assets\administrator\js\editors\ckeditor.js C:\Programming\adminarchitect\resources\assets\administrator\js\editors\medium.js C:\Programming\adminarchitect\resources\assets\administrator\js\editors\tinymce.js C:\Programming\adminarchitect\resources\assets\administrator\js\theme.js C:\Programming\adminarchitect\resources\assets\administrator\js\vendor.js C:\Programming\adminarchitect\resources\assets\administrator\less\glyphicons.less C:\Programming\adminarchitect\resources\assets\administrator\sass\app.scss C:\Programming\adminarchitect\resources\assets\administrator\sass\editors\medium.scss C:\Programming\adminarchitect\resources\assets\administrator\sass\vendor.scss
Error: ENOENT: no such file or directory, stat 'C:\Programming\adminarchitect\resources\assets\administrator\images'
at Object.statSync (fs.js:850:3)
at Object.statSync (C:\Programming\adminarchitect\node_modules\graceful-fs\polyfills.js:308:16)
at checkStats (C:\Programming\adminarchitect\node_modules\fs-extra\lib\copy-sync\copy-sync.js:171:22)
at checkPaths (C:\Programming\adminarchitect\node_modules\fs-extra\lib\copy-sync\copy-sync.js:183:31)
at Object.copySync (C:\Programming\adminarchitect\node_modules\fs-extra\lib\copy-sync\copy-sync.js:25:20)
at File.copyTo (C:\Programming\adminarchitect\node_modules\laravel-mix\src\File.js:191:12)
at FileCollection.copyTo (C:\Programming\adminarchitect\node_modules\laravel-mix\src\FileCollection.js:83:24)
at src.forEach.file (C:\Programming\adminarchitect\node_modules\laravel-mix\src\FileCollection.js:77:38)
at Array.forEach ()
at FileCollection.copyTo (C:\Programming\adminarchitect\node_modules\laravel-mix\src\FileCollection.js:77:17)
at CopyFilesTask.run (C:\Programming\adminarchitect\node_modules\laravel-mix\src\tasks\CopyFilesTask.js:15:20)
at CustomTasksPlugin.runTask (C:\Programming\adminarchitect\node_modules\laravel-mix\src\webpackPlugins\CustomTasksPlugin.js:36:14)
at Mix.tasks.forEach.task (C:\Programming\adminarchitect\node_modules\laravel-mix\src\webpackPlugins\CustomTasksPlugin.js:12:44)
at Array.forEach ()
at compiler.plugin.stats (C:\Programming\adminarchitect\node_modules\laravel-mix\src\webpackPlugins\CustomTasksPlugin.js:12:23)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Programming\adminarchitect\node_modules\tapable\lib\HookCodeFactory.js:33:10), :18:1)
at AsyncSeriesHook.lazyCompileHook (C:\Programming\adminarchitect\node_modules\tapable\lib\Hook.js:154:20)
at emitRecords.err (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:304:22)
at Compiler.emitRecords (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:499:39)
at emitAssets.err (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:298:10)
at hooks.afterEmit.callAsync.err (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:485:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Programming\adminarchitect\node_modules\tapable\lib\HookCodeFactory.js:33:10), :20:1)
at AsyncSeriesHook.lazyCompileHook (C:\Programming\adminarchitect\node_modules\tapable\lib\Hook.js:154:20)
at asyncLib.forEachLimit.err (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:482:27)
at C:\Programming\adminarchitect\node_modules\neo-async\async.js:2818:7
at done (C:\Programming\adminarchitect\node_modules\neo-async\async.js:3522:9)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Programming\adminarchitect\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at outputFileSystem.writeFile.err (C:\Programming\adminarchitect\node_modules\webpack\lib\Compiler.js:464:33)
at C:\Programming\adminarchitect\node_modules\graceful-fs\graceful-fs.js:57:14
at FSReqWrap.args [as oncomplete] (fs.js:140:20)

I think the problem is that the publish doesn't work as intended.

redirect to intended link not used after successful login

Hi everyone. Faced another issue.
In Authenticate middleware vendor/adminarchitect/core/src/Middleware/Authenticate.php:53 when user tries to access any admin page without permissions, the response()->redirectGuest() method is fired. It saves the url, which user tried to access, to session url.intended param. But this param is never used in adminarchitect. Also it causes user to be redirected to adminarchitect home_page after logging into main app.
I see 2 ways to fix it:

  1. Implement adminarchitect redirector, which will save own url.admin_intended or something like that, not to influence the main app logic.
  2. As first case seem to take a lot of coding and testing, temporary replacing response()->redirectGuest() with simple response()->redirectTo() will fix the issue without breaking anything since adminarchitect does not use intended url to redirect admin user after logging in.

Problem with DaveJamesMiller\Breadcrumbs\Manager

This error after install via composer

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
In Facade.php line 237:
Call to undefined method DaveJamesMiller\Breadcrumbs\Manager::for()

if we try to install new version DaveJamesMiller\Breadcrumbs\Manager we get this conflict

composer require davejamesmiller/laravel-breadcrumbs:5.x
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - adminarchitect/core v1.6.4 requires davejamesmiller/laravel-breadcrumbs 3.0.* -> satisfiable by davejamesmiller/laravel-breadcrumbs[3.0.0, 3.0.1, 3.0.2, 3.0.3] bu
t these conflict with your requirements or minimum-stability.
    - adminarchitect/core v1.6.4 requires davejamesmiller/laravel-breadcrumbs 3.0.* -> satisfiable by davejamesmiller/laravel-breadcrumbs[3.0.0, 3.0.1, 3.0.2, 3.0.3] bu
t these conflict with your requirements or minimum-stability.
    - adminarchitect/core v1.6.4 requires davejamesmiller/laravel-breadcrumbs 3.0.* -> satisfiable by davejamesmiller/laravel-breadcrumbs[3.0.0, 3.0.1, 3.0.2, 3.0.3] bu
t these conflict with your requirements or minimum-stability.
    - Installation request for adminarchitect/core (locked at v1.6.4, required as ^1.6) -> satisfiable by adminarchitect/core[v1.6.4].
Installation failed, reverting ./composer.json to its original content.

Can't login with second user

I am not able to login with an administator user account other than the first one i have created. Is this a known issue?

Versioning issues when installing Admin Architect

Hi! I'm trying to install this project to start testing it, but I'm having difficulties, here is my development stack and the package installation error log.

PHP: 8.1.2
Composer: 2.2.5 2022-01-21 17:25:52
Laravel: 8.83.0

Installation error log

$ composer require adminarchitect/core
Using version ^1.6 for adminarchitect/core
./composer.json has been updated
Running composer update adminarchitect/core
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - adminarchitect/core[v1.6, ..., 1.6.x-dev] require laravelcollective/html 5.*|dev-master -> satisfiable by laravelcollective/html[dev-master, v5.0.0, ..., 5.8.x-dev].
    - laravelcollective/html dev-master requires illuminate/http ^6.0|^7.0 -> found illuminate/http[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.0.0, ..., 5.0.x-dev] require illuminate/http ~5.0 -> found illuminate/http[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html v5.0.5 requires illuminate/http ~5.1 -> found illuminate/http[v5.1.1, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.1.0, ..., 5.1.x-dev] require illuminate/http 5.1.* -> found illuminate/http[v5.1.1, ..., 5.1.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.2, ..., 5.2.x-dev] require illuminate/http 5.2.* -> found illuminate/http[v5.2.0, ..., 5.2.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.3.0, ..., 5.3.x-dev] require illuminate/http 5.3.* -> found illuminate/http[v5.3.0, ..., 5.3.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.4, ..., 5.4.x-dev] require illuminate/http 5.4.* -> found illuminate/http[v5.4.0, ..., 5.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.5, ..., 5.5.x-dev] require illuminate/http 5.5.* -> found illuminate/http[v5.5.0, ..., 5.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.5.2, ..., 5.6.x-dev] require illuminate/http 5.6.* -> found illuminate/http[v5.6.0, ..., 5.6.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.7, ..., 5.7.x-dev] require illuminate/http 5.7.* -> found illuminate/http[v5.7.0, ..., 5.7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - laravelcollective/html[v5.8.0, ..., 5.8.x-dev] require illuminate/http 5.8.* -> found illuminate/http[v5.8.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires adminarchitect/core ^1.6 -> satisfiable by adminarchitect/core[v1.6, ..., 1.6.x-dev].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require adminarchitect/core:*" to figure out if any version is installable, or "composer require adminarchitect/core:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Setting $translatedAttributes will have repeated fields in the create form

Hi there,
I am trying to setup localization support in my admin panel.
I set the $translatedAttributes = ["title", "description"]; in my Property model.
However, when I get into the creation form of the Property. The title and description are repeating themselves. Moreover, the markdown editor of the description doesn't have the multi-language checkbox around it.

2018-10-24 16 47 17

Any ideas?

Laravel 5.4 its for php 5.6.*

Laravel 5.4 its for php 5.6.* and you request "zendframework/zend-code": "^3.3" on your pacakge that required php 7.0+

Regards.-

The media collection is not displayed

Hello! I update AdminArchitect in my project and try to use media collection in my model.
In my model:
`namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Codesleeve\Stapler\ORM\StaplerableInterface;
use Codesleeve\Stapler\ORM\EloquentTrait;
use Spatie\MediaLibrary\Media;
use Spatie\MediaLibrary\HasMedia\Interfaces\HasMedia;
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;

class Transport extends Model implements StaplerableInterface, HasMedia
{

use EloquentTrait,
    HasMediaTrait;

protected $fillable = [
    'title', 'number', 'owner', 'carrier_id', 'status', 'ownership', 'image', 'passport', 'insurance', 'proxy', 'sanitary',
    'type', 'bodywork', 'width', 'height', 'lenght', 'empty_speed', 'loaded_speed', 'type_discharge', 'carrying_capacity', 'volume'
];
public function getAttributes()
{
    return parent::getAttributes();
}

`

In my Resource:
public function form() { return $this->scaffoldForm() ->media('images', function (FormElement $element) { // @var $media MediaElement $media = $element->getInput(); $media->hasArrows(true) ->hasIndicators(true) ->convertedTo('thumbnail') ->autoPlay(2) ->maxWidth(200); }); }

But field for download images don't display http://joxi.ru/xAe0z0zup118R2. I am checked the view for media in my view folder and she is.
Maybe I missed something?
Thank you in advance.

update method for filters doesnt work.

public function filters() { return $this->scaffoldFilters()->update('phone', ...
throws an error "Element [phone] does not exist."
even if it is present. Another issue for the update is that the control doesn't have a setQuery method, even if in the docs there is an example for filtering relationships that way.

Trying to get in touch regarding a security issue

Hi there,

I couldn't find a SECURITY.md in your repository and am not sure how to best contact you privately to disclose a security issue.

Can you add a SECURITY.md file with an e-mail to your repository, so that our system can send you the vulnerability details? GitHub suggests that a security policy is the best way to make sure security issues are responsibly disclosed.

Once you've done that, you should receive an e-mail within the next hour with more info.

Thanks! (cc @huntr-helper)

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.