src/Controllers/ModuleController.php
public function store(Request $request)
    {
        $this->generator->initialize($request->all());
        $this->generator->createMigration();
        $this->generator->createModel();
        $this->generator->createRequests();
        $this->generator->createResponses();
        $this->generator->createRepository();
        $this->generator->createController();
        $this->generator->createTableController();
        $this->generator->createRouteFiles();
        $this->generator->insertToLanguageFiles();
        $this->generator->createViewFiles();
        $this->generator->createEvents();
        
        // Creating the Module
        $this->repository->create($request->all(), $this->generator->getPermissions());

        return redirect()->route('admin.modules.index')->withFlashSuccess('Module Generated Successfully!');
    }
public function store(Request $request)
    {
        $this->generator->initialize($request->all());
        $this->generator->createMigration();
        $this->generator->createModel();
        $this->generator->createRequests();
        $this->generator->createResponses();
        $this->generator->createRepository();
        $this->generator->createController();
        $this->generator->createTableController();
        $this->generator->createRouteFiles();
        $this->generator->insertToLanguageFiles();
        $this->generator->createViewFiles();
        $this->generator->createEvents();
        
        // Creating the Module
        $this->repository->create($request->all(), $this->generator->getPermissions());

        return redirect()->route('admin.modules.index')->withFlashSuccess('Module Generated Successfully!');
    }
Store a newly created resource in storage.

@param \Illuminate\Http\Request $request

@return \Illuminate\Http\Response