Skip to content

Commit

Permalink
Added Migrations + Database seeder
Browse files Browse the repository at this point in the history
Added Migrations, And a database seeder so we can create our own account simply by filling in the seeder. The seeder also creates a super admin account. Please note that this seeder *DOES NOT* create any permissions or roles.
  • Loading branch information
Timtendo12 committed Dec 4, 2023
1 parent 7e83f99 commit e7fab91
Show file tree
Hide file tree
Showing 35 changed files with 1,117 additions and 135 deletions.
4 changes: 3 additions & 1 deletion src/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME=Laravel
APP_NAME=Biblio
APP_ENV=local
APP_KEY=
APP_DEBUG=true
Expand Down Expand Up @@ -57,3 +57,5 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

BARCODE_COMPANY_PREFIX=069420
65 changes: 65 additions & 0 deletions src/app/Http/Controllers/FineController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Http\Controllers;

use App\Models\Fine;
use Illuminate\Http\Request;

class FineController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*/
public function show(Fine $fine)
{
//
}

/**
* Show the form for editing the specified resource.
*/
public function edit(Fine $fine)
{
//
}

/**
* Update the specified resource in storage.
*/
public function update(Request $request, Fine $fine)
{
//
}

/**
* Remove the specified resource from storage.
*/
public function destroy(Fine $fine)
{
//
}
}
65 changes: 65 additions & 0 deletions src/app/Http/Controllers/GrantController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Http\Controllers;

use App\Models\Grant;
use Illuminate\Http\Request;

class GrantController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*/
public function show(Grant $grant)
{
//
}

/**
* Show the form for editing the specified resource.
*/
public function edit(Grant $grant)
{
//
}

/**
* Update the specified resource in storage.
*/
public function update(Request $request, Grant $grant)
{
//
}

/**
* Remove the specified resource from storage.
*/
public function destroy(Grant $grant)
{
//
}
}
65 changes: 65 additions & 0 deletions src/app/Http/Controllers/ItemAgeRatingController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Http\Controllers;

use App\Models\ItemAgeRating;
use Illuminate\Http\Request;

class ItemAgeRatingController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*/
public function show(ItemAgeRating $itemAgeRating)
{
//
}

/**
* Show the form for editing the specified resource.
*/
public function edit(ItemAgeRating $itemAgeRating)
{
//
}

/**
* Update the specified resource in storage.
*/
public function update(Request $request, ItemAgeRating $itemAgeRating)
{
//
}

/**
* Remove the specified resource from storage.
*/
public function destroy(ItemAgeRating $itemAgeRating)
{
//
}
}
65 changes: 65 additions & 0 deletions src/app/Http/Controllers/ItemCategoryController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Http\Controllers;

use App\Models\ItemCategory;
use Illuminate\Http\Request;

class ItemCategoryController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*/
public function show(ItemCategory $itemCategory)
{
//
}

/**
* Show the form for editing the specified resource.
*/
public function edit(ItemCategory $itemCategory)
{
//
}

/**
* Update the specified resource in storage.
*/
public function update(Request $request, ItemCategory $itemCategory)
{
//
}

/**
* Remove the specified resource from storage.
*/
public function destroy(ItemCategory $itemCategory)
{
//
}
}
65 changes: 65 additions & 0 deletions src/app/Http/Controllers/ItemController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Http\Controllers;

use App\Models\Item;
use Illuminate\Http\Request;

class ItemController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*/
public function show(Item $item)
{
//
}

/**
* Show the form for editing the specified resource.
*/
public function edit(Item $item)
{
//
}

/**
* Update the specified resource in storage.
*/
public function update(Request $request, Item $item)
{
//
}

/**
* Remove the specified resource from storage.
*/
public function destroy(Item $item)
{
//
}
}
Loading

0 comments on commit e7fab91

Please sign in to comment.