Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Raza9798/rapidkit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.8.14
Choose a base ref
...
head repository: Raza9798/rapidkit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 11 commits
  • 8 files changed
  • 2 contributors

Commits on Jun 20, 2024

  1. 1.8.15

    Raza9798 committed Jun 20, 2024
    Copy the full SHA
    579c1ea View commit details
  2. 1.8.16

    Raza9798 committed Jun 20, 2024
    Copy the full SHA
    b9ffc85 View commit details
  3. 1.8.17

    Raza9798 committed Jun 20, 2024
    Copy the full SHA
    3402040 View commit details

Commits on Jun 24, 2024

  1. 1.9.0

    Raza9798 committed Jun 24, 2024
    Copy the full SHA
    fa91003 View commit details

Commits on Jun 27, 2024

  1. Update README.md

    readme updated
    Raza9798 authored Jun 27, 2024
    Copy the full SHA
    7e1e819 View commit details

Commits on Jul 1, 2024

  1. Update README.md

    Raza9798 authored Jul 1, 2024
    Copy the full SHA
    22b1bf0 View commit details

Commits on Jul 8, 2024

  1. Update README.md

    Raza9798 authored Jul 8, 2024
    Copy the full SHA
    f6563bb View commit details

Commits on Jul 22, 2024

  1. test cases integrated

    Raza9798 committed Jul 22, 2024
    Copy the full SHA
    bfb8503 View commit details
  2. Copy the full SHA
    22cfaf8 View commit details
  3. version updated

    Raza9798 committed Jul 22, 2024
    Copy the full SHA
    bc3fb88 View commit details
  4. readme updated

    Raza9798 committed Jul 22, 2024
    Copy the full SHA
    5c90dfe View commit details
Showing with 105 additions and 16 deletions.
  1. +38 −12 README.md
  2. +3 −2 composer.json
  3. +2 −0 src/Console/Commands/InitilizeCommand.php
  4. +2 −1 src/Controller/BuildController.php
  5. +16 −0 src/Controller/ExportController.php
  6. +1 −1 src/config/config.php
  7. +10 −0 tests/TestCase.php
  8. +33 −0 tests/Unit/ResourceGeneratorTest.php
50 changes: 38 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
### RAPIDKIT -> SUPPORT FROM LARAVEL `11.X`

RAPIDKIT for Laravel is a collection of pre-built functionalities designed to accelerate web application development. It offers a robust set of commands to modularize projects, enabling developers to create highly customizable applications swiftly.

## # Key Features

- **Modular Structure:** Easily modularize your Laravel projects for better organization and scalability.
- **Pre-built Functionalities:** Includes a rich set of pre-built features to jumpstart development.
- **Customizability:** Allows for extensive customization to fit specific project requirements.
- **Rapid Development:** Speeds up the development process by providing ready-to-use components and utilities.

### # Installation

```
@@ -20,20 +29,37 @@ Useful command for development

### # DATABASE BACKUP COMMANDS
```
> backup:clean Clean it by configured number of days.
> backup:list Display a list of all backups.
> backup:monitor Monitor the health of all backups.
> backup:run Run the backup.
> backup:run --only-db Only Database backup
> backup:run --only-files FileSystem backup
> php artisan backup:clean Clean it by configured number of days.
> php artisan backup:list Display a list of all backups.
> php artisan backup:monitor Monitor the health of all backups.
> php artisan backup:run Run the backup.
> php artisan backup:run --only-db Only Database backup
> php artisan backup:run --only-files FileSystem backup
```

### # TELESCOPE COMMANDS
```
> telescope:clear Delete all Telescope data from storage
> telescope:pause Pause all Telescope watchers
> telescope:prune Prune stale entries from the Telescope database
> telescope:prune --hours=48 Prune stale entries by time
> telescope:publish Publish all of the Telescope resources
> telescope:resume Unpause all Telescope watchers
> php artisan telescope:clear Delete all Telescope data from storage
> php artisan telescope:pause Pause all Telescope watchers
> php artisan telescope:prune Prune stale entries from the Telescope database
> php artisan telescope:prune --hours=48 Prune stale entries by time
> php artisan telescope:publish Publish all of the Telescope resources
> php artisan telescope:resume Unpause all Telescope watchers
```

### # EXPORT & IMPORT EXCEL COMMANDS
```
> php artisan make:import UsersImport --model=User
> php artisan make:export UsersExport --model=User
```

### # RUN TEST
```
<testsuites>
... phpunit.xml
<testsuite name="Rapidkit">
<directory>./vendor/intelrx/rapidkit/tests/Unit</directory>
</testsuite>
</testsuites>
```
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -19,10 +19,11 @@
"php": "^8.2",
"laravel/telescope": "*",
"spatie/laravel-backup": "*",
"spatie/laravel-activitylog": "*"
"spatie/laravel-activitylog": "*",
"rapidrx/intelmail": "*",
"maatwebsite/excel": "*"
},
"require-dev": {
"rapidrx/intelmail": "*"
},
"extra": {
"laravel": {
2 changes: 2 additions & 0 deletions src/Console/Commands/InitilizeCommand.php
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
use Intelrx\Rapidkit\Controller\ActivityController;
use Intelrx\Rapidkit\Controller\BackupController;
use Intelrx\Rapidkit\Controller\BuildController;
use Intelrx\Rapidkit\Controller\ExportController;
use Intelrx\Rapidkit\Controller\TelescopeController;

class InitilizeCommand extends Command
@@ -37,6 +38,7 @@ public function handle()
(new TelescopeController())->setup();
(new ActivityController())->setup();
(new BuildController());
(new ExportController())->setup();
Artisan::call("rapid:support");
}
}
3 changes: 2 additions & 1 deletion src/Controller/BuildController.php
Original file line number Diff line number Diff line change
@@ -4,10 +4,11 @@

use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\File;
use Rapidrx\Intelmail\Controller\IntelMail;
// use Rapidrx\Intelmail\Controller\IntelMail;
use Intelrx\Rapidkit\assets\Banner;
use Intelrx\Rapidkit\assets\Helper;
use Intelrx\Rapidkit\Config\Config;
use Rapidrx\Intelmail\Controller\IntelMail;
use ZipArchive;

class BuildController extends Controller
16 changes: 16 additions & 0 deletions src/Controller/ExportController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Intelrx\Rapidkit\Controller;

use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Artisan;

class ExportController extends Controller
{
public function setup(){
Artisan::call("vendor:publish", [
"--provider" => "Maatwebsite\Excel\ExcelServiceProvider",
"--tag" => "config"
]);
}
}
2 changes: 1 addition & 1 deletion src/config/config.php
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

class Config
{
const VERSION = '1.8.14';
const VERSION = '1.9.1';
const ASSETS_DIR = "/src/assets";

public static function getBuildDir($levels): string
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Tests;

use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
//
}
33 changes: 33 additions & 0 deletions tests/Unit/ResourceGeneratorTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace Intelrx\Rapidkit\Tests\Unit;

use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Tests\TestCase;
class ResourceGeneratorTest extends TestCase
{
/**
* A basic unit test example.
*/
public function test_create_resources_on_root(): void
{
Artisan::call('rapid:make', [
'name' => 'division',
]);
$output = Artisan::output();
Log::debug($output);
$this->assertTrue(true);
}

public function test_create_resources_as_module(): void
{
Artisan::call('rapid:make', [
'name' => 'country',
'--path' => 'master',
]);
$output = Artisan::output();
Log::debug($output);
$this->assertTrue(true);
}
}