Code Monkey home page Code Monkey logo

dwijitsolutions / laraadmin Goto Github PK

View Code? Open in Web Editor NEW
1.6K 1.6K 533.0 13.73 MB

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.

Home Page: http://laraadmin.com

License: MIT License

PHP 9.16% JavaScript 36.48% HTML 35.61% CSS 7.01% Less 5.55% SCSS 0.05% Blade 6.14%

laraadmin's People

Contributors

chrispecoraro avatar gdbhosale avatar jestersimpps avatar madhavikhatal avatar mubbashir10 avatar owenvoke avatar sagarkoshti1990 avatar slozano95 avatar twmbx 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  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

laraadmin's Issues

Show Register Form for SuperAdmin

Show Register Form for SuperAdmin if not present in database
As users not created automatically after migrate:refresh
Need to produce:
Roles
Departments
Users
Employees

Validator & minimum integer values

Hi,

Is there a reason why the minimum allowed value for integer inputs is 0? link

In my particular case I need to allow negative integers.
Could changing the number range be made developer modifiable through a variable in config perhaps?

Search in Dropdown Fields

Unfortunately is not working and is disabled. Would be nice to enable this feature for long lists

install issue?

I ran the install as described in the instructions with a mysql database and received this error

[Exception]
LAInstall::handle Unable to install : Unable to generate migration for Students : Invalid view_column_name. 'This should be database friendly lowercase name.'

la:crud failed with ErrorException

I'm doing your documented installation and after migrating the courses migration i wanted to install the crud stuff with php artisan la:crud courses. I got this:

Creating controller...
Creating model...
Creating views...
Crud::handle exception: exception 'ErrorException' with message 'file_get_contents(/home/rok/workspace/playground/laraadmin/vendor/dwij/laraadmin/src/stubs/views/index.blade.stub): failed to open stream: No such file or directory' in /home/rok/workspace/playground/laraadmin/vendor/dwij/laraadmin/src/CodeGenerator.php:68
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_get_conten...', '/home/rok/works...', 68, Array)
#1 /home/rok/workspace/playground/laraadmin/vendor/dwij/laraadmin/src/CodeGenerator.php(68): file_get_contents('/home/rok/works...')
#2 /home/rok/workspace/playground/laraadmin/vendor/dwij/laraadmin/src/Commands/Crud.php(53): Dwij\Laraadmin\CodeGenerator::createViews(Object(stdClass), Object(Dwij\Laraadmin\Commands\Crud))
#3 [internal function]: Dwij\Laraadmin\Commands\Crud->handle()
#4 /home/rok/workspace/playground/laraadmin/vendor/laravel/framework/src/Illuminate/Container/Container.php(507): call_user_func_array(Array, Array)
#5 /home/rok/workspace/playground/laraadmin/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container->call(Array)
#6 /home/rok/workspace/playground/laraadmin/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /home/rok/workspace/playground/laraadmin/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /home/rok/workspace/playground/laraadmin/vendor/symfony/console/Application.php(791): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /home/rok/workspace/playground/laraadmin/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(Dwij\Laraadmin\Commands\Crud), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /home/rok/workspace/playground/laraadmin/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /home/rok/workspace/playground/laraadmin/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /home/rok/workspace/playground/laraadmin/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 {main}


  [ErrorException]           
  Undefined variable: table  

Displaying Foreign Table value

If you use the @ directive in the column definition to reference a foreign table for values, you can not show the value of the selected item in the index view. Instead the stored ID of the foreign table will be shown

Any plans to change this?

Thank you

Modules with more than one word

If you would create a module like Lead_statuses or Lead_ratings then the interface will not remove the underscore for the Add button, Titles and Tags unfortunately

Suggestions

  • Use custom requests in Controller
  • Use ajax (post, get etc.)
  • Use pjax
  • Have a repository for each module. (repo pattern)
  • Re-use your create and edit views. (It becomes a maintenance nightmare to manage)
  • Multi-language support
  • Use pivot tables for one-to-many relationships
  • Drop down values need their own tables. E.g. media_type should not be ["Audiobook"], there should be a media_types table and the field should be media_type_id referencing the value via a foreign key.
  • Multiple theme support

Not working with new 5.3

Hello i was trying to make it work with the new version of laravel and i couldn`t. Any idea if an update is coming or how to make it work ?

Top Navigation layout issue

Using this setting lets the sidebar overlap with the main area. You have then to hide the navigation first to get further.

Deleted Records gets displayed

I have noticed another bug where a deleted record is still listed on the index page. When you click the Edit/Delete button, the system throws an error because deleted_at is NOT NULL therefore the record cannot be accessed. I am aware the models use Illuminate\Database\Eloquent\SoftDeletes.

I think this is because you are using Database Querys rather that Eloquent to fetch data for Datatables display.

Can't install Laraadmin.

I read document at here:

http://laraadmin.com/documentation

OS: Windows 7.

I installed composer. I clone Laraadmin to local machine and cd laraadmin.

Tried with command: composer require dwij/laraadmin

It not any happen, I can't run php artisan (Could not open input file: artisan), not any folder I usually saw in 1 project using laravel.
I must copy manually config, storage, bootstrap, .env, artisan from laravel source into folder laraadmin.

So, I add this row: Dwij\Laraadmin\LAProvider::class into config/app.php folder.

Tried with installer command :

php artisan la:install

It throws error like:

Class 'Illuminate\Foundation\Application' not found in C:\wamp64\www\l araadmin\src\bootstrap\app.php on line 14

At src\bootstrap\app.php line 14 is:

$app = new Illuminate\Foundation\Application(
    realpath(__DIR__.'/../')
);

How do the users work?

Hi, I'm new on your amazing project, and I'm trying to understand how Users management works.

I've seen :

  • User model with a UserType, and with the first user
  • A Employee Model, but without link with UserType or globally with User, and with the same first user
  • A Role Model but without any link with the both previous models, with the role of the first user

How have you planned to manage access with all of that?

Thank you for your answer, and again, for your amazing job!

Setting Cache Array

First time using la:install and setting cache to array does not work. setting is written to the .env file but the install files. The seond run of la:install gets through

Array to string conversion error

Thanks for the good work.

However whenever I try to create a new record or edit an existing record, I get this error message:

ErrorException in /home/vagrant/Code/eaas/vendor/dwij/laraadmin/src/Models/Module.php line 537:

Array to string conversion

I am on Laravel Homestead with:

  • Laravel v5.2
  • dwij/laraadmin v1.0.12

I can't figure out what's wrong.

Upload images not shown

You need to change line 249 in resources/views/la/uploads/index.blade.php to following. I don't know why you had ?s=130 at the end.

    image = '<img src="'+bsurl+'/files/'+upload.hash+'/'+upload.name+'">';

Package not competable with laravel 5.2

Hi,
I installed this on laravel 5.2. Now when I login to admin panel after few clicks a popup shows me an Ajax datatble error. and also I logging out in few minutes weather I am work9ng or not.
User module is showing error while creating a new user but employee module is working fine. Issue is in user controller. Client module is not available yet.
This package is good but no rbac/entrust are there if they are also added it would be great.
sc

Field Type checkbox: View representation

Field Type Checkbox would be better to get represented with font awesome in the views

Definition:
["is_enabled", "Enabled", "Checkbox", false, "1", 0, 0, true],

View Representation:
if($fields_popup[$col] != null && $fields_popup[$col]->field_type == 2) {
$data->data[$i][$j] = $data->data[$i][$j] == 1 ? '' : '';
}

Setting the Application name

Setting the Application name to a custom name works fine in the Frontend. Backend remains using the name Lara Admin 1.0

Dropdown from table

Busy with the definition of the modules but not yet migrated, you should be able to select a table based on a module once you select the type Dropdown. The list of tables shows only already migrated tables. This way you have to migrate every module first before going further with the rest, if you plan to have relationships

Error generating checkbox fiedls

Same story, Max values should not be required here
QueryException in Connection.php line 761:
SQLSTATE[HY000]: General error: 1364 Field 'maxlength' doesn't have a default value (SQL: insert into module_fields (colname, label, module, field_type, unique, defaultvalue, minlength, required, popup_vals, updated_at, created_at) values (is_enabled, Enabled, 9, 2, 0, 1, 0, 1, , 2016-10-02 19:02:52, 2016-10-02 19:02:52))

Fresh Install - Save/Update issue

Ran through install documentation.
Logged into admin.
Opened employee for editing.
Didn't change any of the fields, clicked "Update" button.
Received the following error:
ErrorException in Module.php line 516:
Array to string conversion

Tried the same process with Roles and Departments, same result. What did I miss?

Blank page after editing a module

Once a module is created and if you would edit that afterwards lets say to change an icon, a blank page is displayed without any error

Creation of fields of type Textarea (Richtext fields)

When creating a field of type textarea (should correspond to text in the database), there should not be a min or a max required in the definition. Once submitted without values, an error is generated
QueryException in Connection.php line 761:
SQLSTATE[HY000]: General error: 1364 Field 'maxlength' doesn't have a default value (SQL: insert into module_fields (colname, label, module, field_type, unique, defaultvalue, minlength, required, popup_vals, updated_at, created_at) values (description, Description, 9, 21, 0, , 0, 1, , 2016-10-02 18:55:24, 2016-10-02 18:55:24))

Please exclude this check

Change the icon in the show view

Would be nice to set the icon of the show view to the icon selected for the module instead of the fa-cube

Please change this line

with this one

php artisan la:crud ... -146 Table 'laradmin.la_menus' doesn't exist'

C:\OneDrive\xampp\htdocs\laradmin>php artisan la:migration Lizard
Model: Lizard
Module: Lizards
Table: lizards
Migration: create_lizards_table

Creating migration...
Migration done: 2016_08_30_033742_create_lizards_table.php

C:\OneDrive\xampp\htdocs\laradmin>php artisan migrate
Migrated: 2016_08_30_033742_create_lizards_table

C:\OneDrive\xampp\htdocs\laradmin>php artisan la:crud lizards
Creating controller...
Creating model...
Creating views...
Appending routes...
Appending Menu...
Crud::handle exception: exception 'PDOException' with message 'SQLSTATE[42S02]:
Base table or view not found: 1146 Table 'laradmin.la_menus' doesn't exist' in C
:\OneDrive\xampp\htdocs\laradmin\vendor\laravel\framework\src\Illuminate\Databas
e\Connection.php:333

[Exception]
Unable to generate migration for lizards : SQLSTATE[42S02]: Base table or v
iew not found: 1146 Table 'laradmin.la_menus' doesn't exist (SQL: select co
unt(*) as aggregate from la_menus where url = lizards)

image

Issues in admin/modules

Hi,
I'm trying to understand how modules works.
I'm on a fresh install.

  • If I go on any module in /admin/modules/ I have a blank page on Edit route.
  • All modules are marked as not generated.
  • When I'm trying to create a module : "view_column_name not found in field list."
  • If I'm trying to generate a CRUD for user, I've a 500 error (no view)
  • Also, there isn't anything generated for users at start ?

Thank's for your answer, and for your amazing job !
:-)

Change the icon in the show view

Would be nice to set the icon of the show view to the icon selected for the module instead of the fa-cube

Please change this line
<div class="profile-icon text-primary"><i class="fa fa-cube"></i></div>

with this one
<div class="profile-icon text-primary"><i class="fa {{ $module->fa_icon }}"></i></div>

Error install: Please set Cache Driver to array in .env (Required for Ziz aco\Entrust)

I tried to install Laraadmin and receive error message like this:

untitled

Before, I installed success Laraadmin. But at this time, I can't install.

I don't know a reason, I read other issues and see your package compatible with Laravel 5.2.

I checked with command at my project:

php artisan --version

The result is:

Laravel Framework version: 5.2.45.

SQL Installation Error: Invalid default value for 'date_left'

Hi, I've been trying to install laraadmin but I think there is some bad query here my error code:
[Exception] LAInstall: Database is not connected. Connect database (.env) and run 'la:i nstall' again. SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default val ue for 'date_left' (SQL: create tableemployees(idint unsigned not nu ll auto_increment primary key,namevarchar(256) not null,designation varchar(50) not null,gendervarchar(255) not null default 'Male',mobil
evarchar(20) not null,mobile2varchar(20) not null,emailvarchar(10 0) not null,deptint unsigned not null,cityvarchar(50) not null,ad
dressvarchar(1000) not null,aboutvarchar(255) not null,date_birth date not null default '1990-01-01',date_hiredate not null,date_left date not null default '0000-00-00',salary_curdecimal(15, 3) not null de fault '0.0',deleted_attimestamp null,created_attimestamp null,upd
ated_attimestamp null) default character set utf8 collate utf8_unicode_ci )

I have triple check the connection and it works, because some tables are being created, also as other issue after this error happen i cannot run the installer again because of this
[Symfony\Component\Debug\Exception\FatalErrorException] Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found

Thanks

Field Type Image wont show in the list

If the following field type is created, it will not be shown in the view list (Index view) and instead it is shown as an integer 1

["profile_image", "Profile Image", "Image", false, "img_path.jpg", 0, 250, false],

Errors on clean laravel 5.2 install

Hi
Today I was installing the package again and had to do some workaround

So to create a fresh 5.2 install
composer create-project laravel/laravel app 5.2

But it shows some errors, to fix them change the scripts sections in composer.json to
"scripts": { "post-root-package-install": [ "php -r \"copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "php artisan key:generate" ], "post-install-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postInstall", "php artisan optimize" ], "post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan optimize" ] },

Then add laraadmin package following instructions...

After installation, I tried to acces admin panel but there was the

undefined variable errors

To fix this move the Route:auth(); insdide the web middleware

`Route::group(['middleware' => ['web']], function () {
Route::auth();

and all routes

});`

Then generate a new key using php artisan key:generate

Hope it helps someone or we can fix it in the code

Dropdown field should not require Maxlength

QueryException in Connection.php line 761:
SQLSTATE[HY000]: General error: 1364 Field 'maxlength' doesn't have a default value (SQL: insert into module_fields (colname, label, module, field_type, unique, defaultvalue, minlength, required, popup_vals, updated_at, created_at) values (visibility, Visibility, 13, 7, 0, private, 0, 1, ["public","unlisted","private"], 2016-10-02 19:27:10, 2016-10-02 19:27:10))

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.