Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcode controller #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/Http/Controllers/OracleConnection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class OracleConnection extends Controller
{
//
}
85 changes: 85 additions & 0 deletions app/Http/Controllers/ParCodeController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php

namespace App\Http\Controllers;

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

class ParCodeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param \App\Models\Par_code $par_code
* @return \Illuminate\Http\Response
*/
public function show(Par_code $par_code)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param \App\Models\Par_code $par_code
* @return \Illuminate\Http\Response
*/
public function edit(Par_code $par_code)
{
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Models\Par_code $par_code
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Par_code $par_code)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param \App\Models\Par_code $par_code
* @return \Illuminate\Http\Response
*/
public function destroy(Par_code $par_code)
{
//
}
}
85 changes: 85 additions & 0 deletions app/Http/Controllers/PostsController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php

namespace App\Http\Controllers;

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

class PostsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}

/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param \App\Models\posts $posts
* @return \Illuminate\Http\Response
*/
public function show(posts $posts)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param \App\Models\posts $posts
* @return \Illuminate\Http\Response
*/
public function edit(posts $posts)
{
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Models\posts $posts
* @return \Illuminate\Http\Response
*/
public function update(Request $request, posts $posts)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param \App\Models\posts $posts
* @return \Illuminate\Http\Response
*/
public function destroy(posts $posts)
{
//
}
}
11 changes: 11 additions & 0 deletions app/Models/Par_code.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Par_code extends Model
{
use HasFactory;
}
11 changes: 11 additions & 0 deletions app/Models/posts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class posts extends Model
{
use HasFactory;
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"laravel/framework": "^8.75",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5",
"salla/zatca": "^2.0"
"salla/zatca": "^2.0",
"yajra/laravel-oci8": "^8"
},
"require-dev": {
"facade/ignition": "^2.5",
Expand Down
136 changes: 134 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions config/oracle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

return [
'oracle' => [
'driver' => 'oracle',
'tns' => env('DB_TNS', ''),
'host' => env('DB_HOST', ''),
'port' => env('DB_PORT', '1521'),
'database' => env('DB_DATABASE', ''),
'service_name' => env('DB_SERVICENAME', ''),
'username' => env('DB_USERNAME', ''),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'AL32UTF8'),
'prefix' => env('DB_PREFIX', ''),
'prefix_schema' => env('DB_SCHEMA_PREFIX', ''),
'edition' => env('DB_EDITION', 'ora$base'),
'server_version' => env('DB_SERVER_VERSION', '11g'),
'load_balance' => env('DB_LOAD_BALANCE', 'yes'),
'dynamic' => [],
],
];
Loading