Generate Admin Panels CRUDs and APIs in Minutes with tons of other features and customizations with 3 different themes

Overview

InfyOm

InfyOm Laravel Generator

Total Downloads Monthly Downloads Daily Downloads License

Generate Admin Panels CRUDs and APIs in Minutes with tons of other features and customizations with 3 different themes.

Documentation

Read Documentation for detailed installation steps and usage.

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

InfyHMS

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.

Video Tutorials

Checkout Video Tutorials - By: Shailesh Ladumor

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.

Comments
  • New mode: VueJS!

    New mode: VueJS!

    Hi friends, i'm working in crud with vuejs, using vue-table, vue-strap for use modal, vue-validator and vue-editable (very simple component. Is better modify for best features).

    Features:

    I like any docs for add this to generator, i can overwrite templates, but doesn't the better option. I like pass --vuejs or --vue option for generate crud with this.

    New files:

    • crud.js
    • model-config.js (this file is a file for each index -model- page, for config)
    • modal folder with modal template files for each model. Folder and files
    • Overwrite ApiRequest or create new extend from them, with this code:
        public function response(array $errors)
        {
            return Response::json(static::makeError($errors), 400);
        }
    
        /**
         * @param string $errors
         * @param array  $data
         *
         * @return array
         */
        public static function makeError($errors, array $data = [])
        {
            $res = [
                'success' => false,
                'errors' => $errors,
            ];
    
            if (!empty($data)) {
                $res['data'] = $data;
            }
    
            return $res;
        } 
    
    • index action in ApiController for each model:
    public function index(Request $request)
        {
    
            // handle sort option
            if (request()->has('sort')) {
                list($sortCol, $sortDir) = explode('|', request()->sort);
                $query = Provider::orderBy($sortCol, $sortDir);
            } else {
                $query = Provider::orderBy('name', 'asc');
            }
    
            if ($request->exists('filter')) {
                $query->where(function($q) use($request) {
                    $value = "%{$request->filter}%";
                    $q->where('name', 'like', $value)
                        ->orWhere('email', 'like', $value)
                        ->orWhere('code', 'like', $value);
                });
            }
    
            $perPage = request()->has('per_page') ? (int) request()->per_page : null;
            return response()->json($query->paginate($perPage));
        }
    
    feature no-longer-valid 
    opened by NightZpy 30
  • Unique fields

    Unique fields

    The scaffold generator does not allow a model to be updated if it contains a unique field.

    For example field a is unique, field b is not. If i update field b it will not save.

    under-review completed 
    opened by showFocus 19
  • Can be assign relations? Or new feature?

    Can be assign relations? Or new feature?

    Would be good relations can be assigned by command or json!

    Maybe:

    php artisan infyom:scaffold Post --relations="hasMany(Comment), belongsTo(User)"

    Or

    php artisan infyom:scaffold Post --hasMany=Comment --belongsTo=User

    feature completed 
    opened by NightZpy 16
  • scaffold and Class 'App\Http\Controllers\AppBaseController' not found`

    scaffold and Class 'App\Http\Controllers\AppBaseController' not found`

    I'm new to laravel-generator. I created a simple project following the documentation instructions. This is my project setup with dependencies versions.

    "require": { "php": ">=7.1.3", "fideloper/proxy": "~4.0", "infyomlabs/adminlte-templates": "5.6.x-dev", "infyomlabs/laravel-generator": "5.6.x-dev", "laravel/framework": "5.6.*", "laravel/tinker": "~1.0", "laravelcollective/html": "5.6.0" },

    After running scaffold for a simple model I keep receiving AppBaseController' not found in the generated controller.

    These are the steps to reproduce.

    php artisan infyom:scaffold Project --fieldsFile=fields_projects.json php artisan migrate

    fields_projects.json looks like this.

    [
        {
            "name": "id",
            "dbType": "increments",
            "htmlType": "",
            "validations": "",
            "searchable": false,
            "fillable": false,
            "primary": true,
            "inForm": false,
            "inIndex": false
        },
        {
            "name": "title",
            "dbType": "string",
            "htmlType": "text",
            "validations": "required",
            "searchable": true
        },
        {
            "name": "body",
            "dbType": "text",
            "htmlType": "textarea"
        }
    ]
    

    serve the app php artisan serve

    go to http://127.0.0.1:8000/projects

    get this error:

    Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Class 'App\Http\Controllers\AppBaseController' not found

    I've checked previous related issues here in the repository and tried different suggestions, but none could fix it. It seems I m missing something obvious here. Maybe others might be facing the same issue.

    help-needed under-review 
    opened by arianpasquali 14
  • model swagger error after publish template to resource

    model swagger error after publish template to resource

    I am trying to generate model swagger docs, and I found that final model file has error . then I figure out that $template = get_template('model.model', 'swagger-generator'); will get the model.model from the /resources/infyom/infyom-generator-templates/model/model.stub
    and I think this is big error

    completed 
    opened by LarryZhang 14
  • New feature: Datatables option

    New feature: Datatables option

    Hello bro, maybe add option for implement datatable javascript plugin for index page. For laravel exists some packages for this job. This is one: https://github.com/yajra/laravel-datatables.

    Greets.

    feature 
    opened by NightZpy 14
  • [L7] Datatables is not showing for the table

    [L7] Datatables is not showing for the table

    Hello, I want to list my records with datatables. step 1: add_on.datatabled = true step 2: executed the command php artisan infyom:api_scaffold Product

    But when I checked in the admin panel after adding a product it is not showing data with datatables.

    Am I missing something?

    Regards, Saneesh

    supported 
    opened by Saneesh 12
  • Many Issues

    Many Issues

    Firstly thank you so much for your wonderful software.

    I'm having a lot of problems when attempting to generate scaffolding for anything that contains any type of field other than plain strings or numbers. I've tried all kinds of versions, both the boilerplates and installing into a fresh Laravel 5.2 install as per the instructions on your website.

    Are date and boolean field types supposed to be working at this point in time, because they really are not.

    For example, when creating a scaffold for a model that includes a date, the scaffolding is created, and allows me to create a record which includes a date. This record is then correctly displayed in the index, but when I attempt to edit this record, the existing date information is not placed into the date field. It just shows "dd/mm/yyyy" again.

    If I include a boolean field with a checkbox, there is no display of that field in the index, and when editing the record, the box is show, but it's always checked, no matter what the existing record is. If I save the record with the box unchecked, then I can see by looking at the database directly that the record is not changed.

    I'd appreciate knowing if these are know issues, so that I can stop trying to solve problems that I'm not creating.

    Thank you so much for your help.

    under-review duplicate 
    opened by baylf2000 12
  • Scaffolding to use data from other tables

    Scaffolding to use data from other tables

    This is probably an extremely stupid question, but I'm still kinda new at this so go easy on me.

    Let's say I have two tables "Productions" and "Tours" with the corresponding models and relationships all working fine and correct. The Productions table has 2 columns: ID and Title. The Tours table has a column called "production_id" which references the ID column in the Productions table, and it has its own ID as well as its own Title column.

    The relationships go: a production has many tours and a tour has one production. I've used the php artisan infyom:scaffold $MODEL_NAME --fromTable --tableName=$TABLE_NAME commands to create the necessary repositories, etc.

    When I go to the "tours/create" admin page, how would I get it to populate the "Production" field so that while it would show the title of the production on the web interface, in the background it's using the production's ID number and will let me save the new Tour?

    completed 
    opened by nexxai 11
  • 'There isn not input fields to generate' when less than 3 fields in the fieldsFile

    'There isn not input fields to generate' when less than 3 fields in the fieldsFile

    Hi, I am using the CLI generator fieldsFile method. When I have less than 3 fields in the file, the artisan command give me 'There isn not input fields to generate.'

    Hereby I attach my fieldsFile content.

    [
        {
            "name": "id",
            "dbType": "increments",
            "htmlType": "",
            "validations": "",
            "searchable": false,
            "fillable": false,
            "primary": true,
            "inForm": false,
            "inIndex": false
        },
        {
            "name": "origin",
            "dbType": "string",
            "htmlType": "text",
            "validations": "required:unique",
            "searchable": true,
            "fillable": true,
            "primary": false,
            "inForm": true,
            "inIndex": false
        },
        {
            "name": "sequence",
            "dbType": "integer:unsigned",
            "htmlType": "select",
            "searchable": false,
            "fillable": true,
            "primary": false,
            "inForm": true,
            "inIndex": false
        }
    ]
    
    opened by zcythe 11
  • API Version defined in configuration is not being used

    API Version defined in configuration is not being used

    Hello

    I just setup laravel-generator with api_prefix = 'api' and api_version = 'v1'. But when I run php artisan infyom:api_scaffold Test the TestAPIController is placed directly in app/Http/Controllers/API/ without separate namespace for each version, and also the route registed by the package is not has v1 prefix too.

    I this normal or it's has something to do with my configuration?

    Thank you

    help-needed 
    opened by ton212 11
  • [Feature] Call seeder in DatabaseSeeder.php

    [Feature] Call seeder in DatabaseSeeder.php

    When database_seeder option is set to true in config/laravel_generator.php, the seeder for model gets generated, but not called in database/seeders/DatabaseSeeder.php, which is expected.

    Suggestion

    After generating seeder, add a call to the seeder inside this->call([])' in DatabaseSeeder.php file. Create the call function if it does not exist already.

    opened by Mosaab-Emam 0
  • [BUG] 3 errors in model file generation

    [BUG] 3 errors in model file generation

    Looking at what gets generated in the Model file, I noticed 3 errors.

    1. Double semi-colon

    Here are the first 6 lines from Model file

    <?php
    
    namespace App\Models;
    
    use Illuminate\Database\Eloquent\Model;
     use Illuminate\Database\Eloquent\SoftDeletes;; use Illuminate\Database\Eloquent\Factories\HasFactory;;
    

    The 2nd and 3rd imports have repeated semi-colons at the end.

    2. Incorrect spacing and new lines in top section

    In the code block above we can also see some white space added before the keyword use, which should not be there.

    We also see that two use statements are in the same line, which is incorrect and inconsistent with every other generated file, the white space before the second use should be replaced with \n.

    Another \n should be added right after the second use statement, there is no new line between it and the line below (not an import).

    3. Incorrect use of tabs inside model class

    Here are the first few lines in the generated model class

     */class User extends Model
    {
         use SoftDeletes;    use HasFactory;    public $table = 'users';
    
        public $fillable = [
    

    Firstly, we can see there should be a \n before the class keyword, which is not present.

    Secondly: the first 3 statements in the class are present on the same line, with tabs in place of new lines.

    Thirdly: the aforementioned statements have white space before them that should not be present, clearly visible on use SoftDeletes;

    opened by Mosaab-Emam 0
  • [Feature] Generate policy

    [Feature] Generate policy

    Add an option to generate a policy file in config/laravel_generator.php, like this:

    return = [
        ...
        'policy' => true
        ...
    ]
    

    Assuming we are generating a model named Post, setting this option to true should:

    1. Generate a PostPolicy file.
    2. Register the policy in app/Providers/AuthServiceProvider.php
    3. Implement Policy inside controller via user model

    Caveat: policy must be implemented via user model, as implementing via controller helpers or via middleware both require implementation of route model binding, which cannot be applied when using repository pattern.

    Suggestion: It's possible to use any of the 3 patterns when 'repository_pattern' => false, so another option might be generating different code depending on the value of repository_pattern config.

    opened by Mosaab-Emam 0
  • [Feature] Implement route-model binding by default

    [Feature] Implement route-model binding by default

    Assuming laravel_generator.php:

    return = [
      ...
      'repository_pattern' => false,
      'resources' => false,
      ...
    ]
    

    And assuming we are generating a model named Post, here's what gets generated in PostController.php:

      // code
    
      public function show($id): JsonResponse
      {
          /** @var Post $post */
          $post = Post::find($id);
    
          if (empty($post)) {
              return $this->sendError(
                  __('messages.not_found', ['model' => __('models/post.singular')])
              );
          }
    
          return $this->sendResponse(
              $post->toArray(),
              __('messages.retrieved', ['model' => __('models/post.singular')])
          );
      }
    
      // code
    

    This does not implement route model binding, which is a sane default in any project with policies. For example, this pattern is required if the developer wishes to implement policies via middleware or via controller helpers.

    My suggestion is to generate code similar to this:

      // code
    
      public function show(Post $post): JsonResponse
      {
          if (empty($post)) {
              return $this->sendError(
                  __('messages.not_found', ['model' => __('models/post.singular')])
              );
          }
    
          return $this->sendResponse(
              $post->toArray(),
              __('messages.retrieved', ['model' => __('models/post.singular')])
          );
      }
    
      // code
    

    This returns identical results, while helping implement policies out of the box.

    The caveat is that it's not a sane default when using the repository pattern, so this should only apply when that option is set to false.

    opened by Mosaab-Emam 0
  • Foreign Key Not working on Select Dropdown

    Foreign Key Not working on Select Dropdown

    When I create a Scaffold "php artisan infyom:api_scaffold Country --relations" like this or "php artisan infyom:api_scaffold Country" this command using foreign key relation to other table, then Not showing any data in dropdown. check the image Screenshot 2022-11-24 000811 from_filed

    opened by lifewaypn 0
  • [BUG]: Always print the max:? rule for all string fields

    [BUG]: Always print the max:? rule for all string fields

    v5.4.1 Some rules are generated, but not every time (max:) ? Why does it not always appear for string field. All rules can be get from Doctrine\DBAL\Schema\AbstractSchemaManager, $details = $this->schemaManager->listTableDetails($this->tableName); which will always tell you the string length: image

    In this case string length is 10 so we should have max:10 but this does not appear in models $rules 'account' => 'required|string', Some fields do have it, but I think it should always be put in string type field rules.

    opened by jarkko-hautakorpi 1
Releases(v5.4.2)
  • v5.4.2(Dec 22, 2022)

    What's Changed

    • Add locale/ar translation files by @Mosaab-Emam in https://github.com/InfyOmLabs/laravel-generator/pull/1051
    • Always add max: validation to string type fields. by @jarkko-hautakorpi in https://github.com/InfyOmLabs/laravel-generator/pull/1046
    • Fix migration-genaration dbType without ":" by @msksbt in https://github.com/InfyOmLabs/laravel-generator/pull/1044
    Source code(tar.gz)
    Source code(zip)
  • v5.4.1(Sep 19, 2022)

  • v5.4.0(Aug 27, 2022)

  • v5.3.0(Aug 4, 2022)

  • v5.2.0(Jul 25, 2022)

    Features

    • Support added to use vendor publish Templates. Read docs here for more

    Changes

    • Lot of function's visibility changed from private to protected for overriding support

    Removed

    • Publish Layout Command Removed (use laravel's inbuilt publish views instead). Read docs above
    Source code(tar.gz)
    Source code(zip)
  • v5.1.0(Jul 24, 2022)

  • v5.0.0(Jul 21, 2022)

    New Features

    • All Templates are refactored with Blade Templates
    • Livewire Tables Support Added
    • Major Refactoring for various templates & code
    • Publish Tables command for easy tables integration for DataTables and Livewire Tables

    Changes

    • config file is now published to the config folder directly instead of config/infyom
    • various test cases added with pestphp
    • tableName option renamed to table
    • swagger documentation improved
    • Improved file input with extended documentation

    Removed

    • jqueryDT support removed
    • Various options were removed due to config file support including save, paginate, datatables, softDelete, factory, seeder, localized, repositoryPattern, resources
    • Layout Publish Command removed with improved use of laravel-ui-adminlte
    Source code(tar.gz)
    Source code(zip)
  • v4.2.2(Jun 29, 2022)

  • v4.2.1(Jun 23, 2022)

  • v4.2.0(Jun 23, 2022)

    Release Notes

    • Fix: Exit after invalid Rollback Type
    • Enhancement: Improved Factory Generation for Relationships (thanks to @xwiz)
    • Fix: use the default Eloquent model in the Model generation
    • Enhancement: Support for Latest Swagger Generation v3
    • Enhancement: export readOnly and nullable fields in swagger schema (thanks to @Orteko)
    • Removed: API Version specification removed
    Source code(tar.gz)
    Source code(zip)
  • v4.1.1(Jun 23, 2022)

  • v4.1.0(Jun 22, 2022)

  • v4.0.0(Feb 25, 2022)

  • v3.2.0(Feb 3, 2022)

  • v3.1.1(Aug 10, 2021)

  • v2.1.1(Aug 10, 2021)

  • v1.1.1(Aug 10, 2021)

  • v3.1.0(Jul 7, 2021)

  • v2.1.0(Jul 7, 2021)

  • v1.1.0(Jul 7, 2021)

  • v3.0.0(Jun 4, 2021)

  • v2.0.0(Jun 4, 2021)

  • v1.0.0(Jun 4, 2021)

Owner
InfyOmLabs (InfyOm Technologies)
India's Leading Laravel Development Company, Working in Laravel since 2014
InfyOmLabs (InfyOm Technologies)
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.

LaraAdmin 1.0 LaraAdmin is a Open source CRM for quick-start Admin based applications with features like Advanced CRUD Generation, Schema Manager and

Dwij IT Solutions 1.5k Dec 29, 2022
Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps !

?? CRUDBOOSTER - Laravel CRUD Generator Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps ! About CR

Crocodic Studio 1.7k Jan 8, 2023
Build a full-featured administrative interface in ten minutes

⛵ laravel-admin is administrative interface builder for laravel which can help you build CRUD backends just with few lines of code. Documentation | 中文

Song 10.7k Dec 30, 2022
Admin Columns allows you to manage and organize columns in the posts, users, comments, and media lists tables in the WordPress admin panel.

Admin Columns allows you to manage and organize columns in the posts, users, comments, and media lists tables in the WordPress admin panel. Transform the WordPress admin screens into beautiful, clear overviews.

Codepress 67 Dec 14, 2022
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Note: This package is only used by Backpack v3. Starting with Backpack v4, everything this package does is included in Backpack/CRUD - one package to

Backpack for Laravel 845 Nov 29, 2022
Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE

Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Backpack for Laravel 845 Nov 29, 2022
Admin One is simple, beautiful and free Laravel admin dashboard (built with Vue.js, Bulma & Buefy).

Admin One — Free Laravel Vue Bulma Dashboard Admin One is simple, beautiful and free Laravel admin dashboard (built with Vue.js, Bulma & Buefy). Built

Viktor Kuzhelny 136 Dec 27, 2022
Littlelink admin is an admin panel for littlelink that provides you a website similar linktree.

⚙️ LittleLink Admin LittleLink Admin is an admin panel for littlelink that provides you a website similar linktree. ?? Features creating a link page w

Khashayar Zavosh 70 Oct 29, 2022
Littlelink admin is an admin panel for littlelink that provides you a website similar linktree.

LittleLink Admin is an admin panel for littlelink that provides you a website similar linktree.

Khashayar Zavosh 70 Oct 29, 2022
TweetNow is a Twitter clone created with Vue.js and Laravel. It is a social media platform that allows users to post short messages, follow other users, and engage in conversations through comments and likes.

TweetNow TweetNow is a opensource social media created with Vue.js+Inertia SSR and Laravel. It is a social media platform that allows users to post sh

I.E.U. Juboraj Naofel 12 Jun 16, 2023
Someline Starter is a PHP framework for quick building Web Apps and Restful APIs, with modern PHP design pattern foundation.

Someline Starter PHP Framework Tested and used in production by Someline Inc. Someline Starter is a PHP framework for quick building Web Apps and Rest

Someline 844 Nov 17, 2022
Cipi is a Laravel based cloud server control panel that supports Digital Ocean, AWS, Vultr, Google Cloud, Linode, Azure and other VPS.

Cipi is a Laravel based cloud server control panel that supports Digital Ocean, AWS, Vultr, Google Cloud, Linode, Azure and other VPS. It comes with nginx, Mysql, multi PHP-FPM versions, multi users, Supervisor, Composer, npm, free Let's Encrypt certificates, Git deployment, backups, ffmpeg, fail2ban, Redis, API and with a simple graphical interface useful to manage Laravel, Codeigniter, Symfony, WordPress or other PHP applications. With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.

Andrea Pollastri 907 Jan 8, 2023
Official website of Giada Loop Machine. Powered by NodeJS, SASS, Pug and other beautiful JavaScript machineries.

Giada WWW Official website of Giada Loop Machine, proudly powered by NodeJS, SASS, Pug and other beautiful JavaScript machineries. What is Giada? Giad

Monocasual Laboratories 14 Oct 7, 2022
There is no better way to learn than by watching other developers code live. Find out who is streaming next in the Laravel world.

Larastreamers This is the repository of https://larastreamers.com. It shows you who is live coding next in the Laravel world. Installation Steps clone

Christoph Rumpel 201 Nov 24, 2022
Projeto de locadora de carros, apenas a carater de estudos para praticar o uso de APIs

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Samuel Nunes de Souza 3 Nov 30, 2021
A simple and clean boilerplate to start a new SPA project with authentication and more features from fortify

A simple and clean boilerplate to start a new SPA project with authentication and more features from fortify. Its like the little sister of Jetstream, but as SPA.

Tobias Schulz 11 Dec 30, 2022
This package provides an artisan command to generate a basic crud with Restful API support

NHRROB Crud Generator Package This package provides an artisan command to generate a basic crud composer install command: composer require nhrrob/crud

Nazmul Hasan Robin 22 Jun 24, 2022
Generate dummy API endpoints from a simple PHP array.

Laravel Fake API Create placeholder API endpoints from a simple PHP array. LFA utilizes Faker for dummy data. Inspired by JSON Server. Installation To

Andy Abi Haidar 17 May 12, 2022