Coder Social home page Coder Social logo

infyomlabs / adminlte-generator Goto Github PK

View Code? Open in Web Editor NEW
386.0 386.0 272.0 3.34 MB

Boilerplate of Laravel with InfyOm Laravel Generator for AdminLTE Templates

Home Page: https://infyom.com/open-source/laravelgenerator/docs/8.0/boilerplates

PHP 55.09% Shell 5.35% Blade 36.11% Dockerfile 3.44%
adminlte adminlte-templates adminlte-theme infyom-laravel-generator laravel laravel-boilerplate

adminlte-generator's Introduction

InfyOm

InfyTracker Site

Support Us

We have created 14+ Laravel packages and invested a lot of resources into creating these all packages and maintaining them.

You can support us by either sponsoring us or buying one of our paid products. Or help us by spreading the word about us on social platforms via tweets and posts.

Buy our Paid Products

InfyProjects

You can also check out our other paid products on CodeCanyon.

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site.

Backers

Become a backer and get your image on our README on Github with a link to your site.

Follow Us

Made with InfyOm Generator

Also, Do not forget to add your website to Made with InfyOm Generator List list.

Security

If you discover any security-related issues, create an issue using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

adminlte-generator's People

Contributors

ajayinfyom avatar ankitinfyom avatar bestmomo avatar dependabot[bot] avatar mitulgolakiya avatar mjsorribas avatar shaileshinfyom avatar vishalinfyom avatar w0rd-driven 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

adminlte-generator's Issues

Datatables are not working.

when
php artisan infyom:scaffold Post --datatables=true

this doesnot up show any erros but in browser datatables are not visible.

Should created_at and updated_at participate when assertModelData?

Hi,

My question is: should created_at and updated_at be checked when asserting model data on tests/ApiTestTrait.php#L25?

Can be simply skip comparing by checking the key like this:

        foreach ($actualData as $key => $value) {
            // starts here
            if( $key == 'created_at' || $key == 'updated_at'){
                continue;
            }
            //ends here
            $this->assertEquals($actualData[$key], $expectedData[$key]);
        }

Or maybe should removed when passing the $actualData? I'm not sure.

app.blade.php uses {!! !!} instead of {{ }}

Hi
I think that all the user data, like user's name should be displayed using {{ $user->name }} instead of {!! $user->name !!} because a user might enter HTML text as name, or JS code and that could be bad.

Laravel v7 email verification

I'm trying to get the email verification from Laravel working with this app

I'm using Homestead
so I have a http://test.test

Steps:

git clone https://github.com/InfyOmLabs/adminlte-generator.git test
cd test
cp .env.example .env
nano .env (Modify and save)
composer install
php artisan key:generate
php artisan migrate:fresh --seed
php artisan storage:link
modify the User model to implements MustVerifyEmail (as pr. https://laravel.com/docs/7.x/verification)
open browser and navigate to http://test.test
click the 'Register' in the menu
register user 'Admin admin', [email protected], password
I get redirected to /home with a screen saying that my email needs to be verified
I click the link to request

and get this error:

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The GET method is not supported for this route. Supported methods: POST.
http://test.test/email/resend

No route.php

Can anybody please tell me why there is no route.php in app/Http/ ?

ReflectionException when viewing DataTables

After generating DataTables for the User model and navigating to the page, I get this error:

ReflectionException
Class App\DataTables\UserDataTable does not exist

To reproduce

  • Fresh install of adminlte-generator
  • php artisan infyom:scaffold User --fromTable --tableName=users --datatables=true
  • Load up the /users route

Cause

The generated UserDataTable class uses Yajra\DataTables\Services\DataTable - however, that class was extracted from DataTables into a new package which must be installed like so:

Solution

composer require yajra/laravel-datatables-buttons:^4.0

Note for InfyOm Laravel Generator

Please also add this into the excellent documentation at https://labs.infyom.com/laravelgenerator/docs/7.0/generator-options for DataTables use.

I notice the generator is missing creating these files for DataTables, which adminlte-generator already has:

  • resources/views/layouts/datatables_css.blade.php
  • resources/views/layouts/datatables_js.blade.php

The command php artisan vendor:publish --tag=datatables-buttons needs to be run so that public/vendor/datatables/buttons.server-side.js is available

Failing to open anything, following installation guide

Hello everyone,

I'm trying to follow the simple steps from https://labs.infyom.com/laravelgenerator/docs/7.0/boilerplates but I get an error in the key:generate command already:
PHP Fatal error: require(): Failed opening required 'D:\*omitted*\adminlte-generator/vendor/autoload.php' (include_path='.;C:\php\pear')

I noticed how the path changes from backslashes "" to slashes "/" and I'm wondering if that's an issue with Windows or something?

Demo

Hello, first of all, thank you for your work.
I consider it very important to have a demo application, to see all the functionality of the product and the final results.
I am also interested in knowing how define filters and column sorting in lists.
How do you use specific controls for fields, for example select2?
Thank you very much

MySQLDriver

Class 'Doctrine\DBAL\Driver\AbstractMySQLDriver' not found

at C:\xampp\htdocs\adminlte-generator-8.0\vendor\laravel\framework\src\Illuminate\Database\PDO\MySqlDriver.php:8
4▕
5▕ use Doctrine\DBAL\Driver\AbstractMySQLDriver;
6▕ use Illuminate\Database\PDO\Concerns\ConnectsToDatabase;
7▕
➜ 8▕ class MySqlDriver extends AbstractMySQLDriver
9▕ {
10▕ use ConnectsToDatabase;
11▕ }
12▕

1 C:\xampp\htdocs\adminlte-generator-8.0\vendor\composer\ClassLoader.php:444
include()

2 C:\xampp\htdocs\adminlte-generator-8.0\vendor\composer\ClassLoader.php:322
Composer\Autoload\includeFile("C:\xampp\htdocs\adminlte-generator-8.0\vendor\composer/../laravel/framework/src/Illuminate/Database/PDO/MySqlDriver.php")
PS C:\xampp\htdocs\adminlte-generator-8.0>

problem publishing layout

using command php artisan ui adminlte-localized --auth returns error because of the missing "/" before "../adminlte-stubs/..."
hope you can get this fixed soon.
image

Error when running composer install

When running "composer install" i get the following error:

Generating autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize


  [ErrorException]                                                                                                                     
  file_put_contents(/home/facundo/Code/altura/backend/bootstrap/cache/services.php): failed to open stream: No such file or directory  


Script php artisan optimize handling the post-install-cmd event returned with error code 1

I checked https://github.com/InfyOmLabs/bootstrap-generator and it's not happening there

Deprecation Notice

during the composer install process:

Deprecation Notice: Class InfyOm\Generator\Generators\Vuejs\RoutesGenerator located in ./vendor/infyomlabs/laravel-generator/src/Generators/VueJs/RoutesGenerator.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InfyOm\Generator\Generators\API\TestGenerator located in ./vendor/infyomlabs/laravel-generator/src/Generators/VueJs/TestGenerator.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

Pagination not generated

How to generate pagination automatically?

when I run the generator via CLI with option --paginate=10 the pagination is not genarated.

so I manually add

@include('adminlte-templates::common.paginate', ['records' => $records_in_DB])

scaffolding: wrong return format from date picker

Hello.

Just trying your nice generator, cloned the current git repository, and ran a scaffolding command from fieldsFile with a date attribute as follows:

{
        "name": "balance_date",
        "dbType": "date",
        "htmlType": "date",
        "validations": "",
        "searchable": true,
        "fillable": true,
        "primary": false,
        "inForm": true,
        "inIndex": true,
        "inView": true
    },

When adding an instance of the said element, the date picker for the balance_date fields shows fine, but clicking any date generates the following error in web console: The specified value "2020-11-26 18:43:58" does not conform to the required format, "yyyy-MM-dd". No date is put in the field, which is in the meantime impossible to "simply" edit manually as a text value.

How can I fix this ?.. preferably enabling manual editing of the value at the same time.

Thanks too all contributors for the seemingly great tool.
Berteh.

Datatables not displaying data

PROBLEM
I was facing this issue where the datatables view was not displaying any data and was not showing any errors. The table was being shown but it was empty, despite there being data in the database. Rest of the views for creating and editing were working fine. I used php artisan infyom:api_scaffold $Model command with datatables true being set in the config.

ATTEMPTS TO SOLVE
I followed the blog, tutorials, past github issues and video tutorials but I could not get the datatables to display data. I even tried different Laravel and AdminLTE-generator versions with the same result.

CULPRIT
After inspecting the final php file within browser, I noticed that the javascript for datatables was not being imported. The reason is the table file being created by infyom uses @push('third_party_scripts') to include dataTable related JS; while in the main app layout in layout/app.blade.php, 'third_party_scripts' is initialized as @yield. @Push in Laravel can be used with @stack.

SOLUTION
Find @yield('third_party_scripts') in views/layouts/app and change it to @stack('third_party_scripts').
Datatables should now work.

I have submitted the relevant changes in the adminlte-templates

Nothing on earth make this App works and installable, errors every where wvery method

Tried for more than 10 hours to install this App, nothing works, no documentation befits, no video works, nothing on earth can make this work, errors every where every method

tried follow your unclear documentation
looks like alot off steps missing we should just imagine them
tried to find another installation guide, doesnt work errors and
dont know why you made all this and failed just to make it download/go
wasting time

problem with installing darkaonline/l5-swagger on laravel 5.6 template

I have cloned the 5.6 branch and tried to install darkaonline/l5-swagger 5.6 which customized for laravel 5.6 and got this error:
Problem 1 - Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0]. - darkaonline/l5-swagger 5.6.0 requires laravel/framework 5.6. -> satisfiable by laravel/framework[5.6.x-dev]*

but when I try to install swagger on a fresh laravel 5.6 project it successfully installs.
What I want to use is infyom api_scaffold generator and swagger api documentation.

thanks for your help.

Changing name of users table

Hello, Thanks for project.
I really want to change name of users model and database table name. As I found it sets to users by default. How can I change it to something else and everything work?

It was an laravel issue, I found my answer here.

Error at run infyom:vuejs scaffold

I try to run :
php artisan infyom:vuejs mimodel --fromTable --tableName=mytable
and i get this error:

Update Request created: 
UpdateProfesionalAPIRequest.php
PHP Fatal error:  Cannot use object of type InfyOm\Generator\Common\GeneratorField as array in /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/infyomlabs/laravel-generator/src/Generators/VueJs/ControllerGenerator.php on line 39
PHP Stack trace:
PHP   1. {main}() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/artisan:0
PHP   2. Illuminate\Foundation\Console\Kernel->handle() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/artisan:36
PHP   3. Symfony\Component\Console\Application->run() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122
PHP   4. Symfony\Component\Console\Application->doRun() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/symfony/console/Application.php:124
PHP   5. Symfony\Component\Console\Application->doRunCommand() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/symfony/console/Application.php:200
PHP   6. Illuminate\Console\Command->run() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/symfony/console/Application.php:835
PHP   7. Symfony\Component\Console\Command\Command->run() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Console/Command.php:168
PHP   8. Illuminate\Console\Command->execute() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/symfony/console/Command/Command.php:264
PHP   9. Illuminate\Container\Container->call() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Console/Command.php:182
PHP  10. Illuminate\Container\BoundMethod::call() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/Container.php:531
PHP  11. Illuminate\Container\BoundMethod::callBoundMethod() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31
PHP  12. Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87
PHP  13. call_user_func_array:{/Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:30}() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:30
PHP  14. InfyOm\Generator\Commands\VueJs\VueJsGeneratorCommand->handle() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:30
PHP  15. InfyOm\Generator\Generators\VueJs\ControllerGenerator->generate() /Volumes/Datos/mjsorribas/Documents/Proyectos/SimpleDoctorTool/vendor/infyomlabs/laravel-generator/src/Commands/VueJs/VueJsGeneratorCommand.php:67

Now what

I have installed it, now what to do?

a small bug in BaseRepository.php and a little question

app/Repositories/BaseRepository.php in line 91:$query->skip($limit);, I think here should be:$query->limit($limit);
and by the way, in old version like laravel 5.2, the infyomlabs/laravel-generator will generate a criteria in controller like : $this->goodsRepository->pushCriteria(new RequestCriteria($request));, but in this version it has been removed, without criteria then original query string is needed, but I have wrote a little script to make criteria works well, so that is wasted,QAQ. and normal query string like 'a=1&b=2',if add c query param,it will need development in both front end and back end, but old version I wrote some script to improve the development speed, and it just need front end development,its more convenient for dev

Failed installation, many issues

i tried to install this using current project, but got error message that i need to have php7 , again i used this boilerpalte , download and run the install command, after that documentation finished no further instructions, tried to login error encryption, soved by genrate key and clear, working again try to login no database installed, dont know where to go or how to solve this. documentation usesless in this case

Override stub

Hi!
Is it possible to modify/override/use_alternate stub for generating controllers? In my case, I want to add access control, for that, I add a method for checking in each action method in order to verify if the user is authorized.
Thanks!

TokenMismatchException in VerifyCsrfToken.php line 68:

I have tried a lot to fix "TokenMismatchException" error, it's not working. If i comment the CSRF calss it's working, But it's logout when i refresh the page. Can some one please help me out to fix this.

Thanks,..

TokenMismatchException in VerifyCsrfToken.php line 68:
in VerifyCsrfToken.php line 68
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Router.php line 644
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53

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.