-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data Management System. This forst commit contains the full working s…
…ystem, but some thematic modifications will continue.
- Loading branch information
0 parents
commit 62bdfbd
Showing
2,249 changed files
with
175,554 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
APP_NAME= "Database Management System" | ||
APP_ENV=local | ||
APP_KEY=base64:imqnZYi0zfHcEHiFOiT+q8lGn6Pxm5WEWyOUicCdJuU= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=dms | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=smtp.mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
APP_NAME='Alami Home Fashions' | ||
APP_ENV=local | ||
APP_KEY=base64:npesfearDPQ3xpfemaFkKfYEAv0OisNMhPjAd68kiZk= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost:8000 | ||
|
||
LOG_CHANNEL=stack | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=e-commerce | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=mail | ||
MAIL_HOST=mail.babycotkenya.com | ||
MAIL_PORT=465 | ||
MAIL_USERNAME=[email protected] | ||
MAIL_PASSWORD='baby#1cots@kenya' | ||
MAIL_ENCRYPTION=tls | ||
|
||
MAIL_ADMIN_ADDRESS=[email protected] | ||
MAIL_ADMIN_NAME='Baby Cot Admin' | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
GOOGLE_CLIENT_ID='11842156450-fbkg0vnhbtaad9ot1boddrk3nggf9j19.apps.googleusercontent.com' | ||
GOOGLE_CLIENT_SECRET='iQ65NCFUjtE7GjZ1u2lLtQxe' | ||
GOOGLE_CLIENT_REDIRECT='http://localhost:8000/auth/callback/google' | ||
|
||
FACEBOOK_CLIENT_ID='2269548226691201' | ||
FACEBOOK_CLIENT_SECRET='817e61d1ced8c5a5854743dd4f0dd668' | ||
FACEBOOK_CLIENT_REDIRECT='http://localhost:8000/auth/callback/facebook' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Header set Connection keep-alive | ||
|
||
# Header set Cache-Control "max-age=604800, public | ||
|
||
SetOutputFilter DEFLATE | ||
|
||
RewriteEngine On | ||
|
||
RewriteCond %{HTTPS} off | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$ | ||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | ||
|
||
RewriteCond %{HTTP_HOST} ^alamihomefashions.com [NC] | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$ | ||
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC] | ||
|
||
RewriteCond %{REQUEST_URI} !^public | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? | ||
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$ | ||
RewriteRule ^(.*)$ public/$1 [L] | ||
|
||
# BEGIN cPanel-generated php ini directives, do not edit | ||
# Manual editing of this file may result in unexpected behavior. | ||
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) | ||
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) | ||
<IfModule php7_module> | ||
php_flag display_errors Off | ||
php_value max_execution_time 3000 | ||
php_value max_input_time 6000 | ||
php_value max_input_vars 1000 | ||
php_value memory_limit 520M | ||
php_value post_max_size 80M | ||
php_value session.gc_maxlifetime 1440 | ||
php_value session.save_path "/var/cpanel/php/sessions/ea-php73" | ||
php_value upload_max_filesize 200M | ||
php_flag zlib.output_compression Off | ||
</IfModule> | ||
<IfModule lsapi_module> | ||
php_flag display_errors Off | ||
php_value max_execution_time 3000 | ||
php_value max_input_time 6000 | ||
php_value max_input_vars 1000 | ||
php_value memory_limit 520M | ||
php_value post_max_size 80M | ||
php_value session.gc_maxlifetime 1440 | ||
php_value session.save_path "/var/cpanel/php/sessions/ea-php73" | ||
php_value upload_max_filesize 200M | ||
php_flag zlib.output_compression Off | ||
</IfModule> | ||
# END cPanel-generated php ini directives, do not edit | ||
|
||
# php -- BEGIN cPanel-generated handler, do not edit | ||
# Set the “ea-php73” package as the default “PHP” programming language. | ||
<IfModule mime_module> | ||
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml | ||
</IfModule> | ||
# php -- END cPanel-generated handler, do not edit |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Address extends Model | ||
{ | ||
protected $fillable = ['phone', 'county', 'town', 'street', 'customerId']; | ||
|
||
// protected $table = 'addresses'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Category extends Model | ||
{ | ||
protected $fillable = ['name', 'slug', 'cover', 'description']; | ||
|
||
protected $appends = ['url']; | ||
|
||
public function subCategories() | ||
{ | ||
return $this->hasMany(SubCategory::class, 'categoryId'); | ||
} | ||
|
||
public function products() | ||
{ | ||
return $this->hasManyThrough(Product::class, SubCategory::class, 'categoryId', 'subcategoryId'); | ||
} | ||
|
||
public function seo() | ||
{ | ||
return $this->morphOne(Seo::class, 'seoable'); | ||
} | ||
|
||
public function getUrlAttribute() | ||
{ | ||
return route('category.page', $this->slug); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Console; | ||
|
||
use Illuminate\Console\Scheduling\Schedule; | ||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | ||
|
||
class Kernel extends ConsoleKernel | ||
{ | ||
/** | ||
* The Artisan commands provided by your application. | ||
* | ||
* @var array | ||
*/ | ||
protected $commands = [ | ||
// | ||
]; | ||
|
||
/** | ||
* Define the application's command schedule. | ||
* | ||
* @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
* @return void | ||
*/ | ||
protected function schedule(Schedule $schedule) | ||
{ | ||
// $schedule->command('inspire') | ||
// ->hourly(); | ||
} | ||
|
||
/** | ||
* Register the commands for the application. | ||
* | ||
* @return void | ||
*/ | ||
protected function commands() | ||
{ | ||
$this->load(__DIR__.'/Commands'); | ||
|
||
require base_path('routes/console.php'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class CustomOrder extends Model | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
trait Customer | ||
{ | ||
public function wishlist() | ||
{ | ||
return $this->belongsToMany(Product::class, 'wishlist_products', 'customerId', 'productId'); | ||
} | ||
|
||
public function likes() | ||
{ | ||
return $this->belongsToMany(Product::class, 'product_likes', 'customerId', 'productId'); | ||
} | ||
|
||
public function addressBook() | ||
{ | ||
return $this->hasMany(Address::class, 'customerId'); | ||
} | ||
|
||
public function orders() | ||
{ | ||
return $this->hasMany(Order::class, 'customerId'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace App\Exceptions; | ||
|
||
use Exception; | ||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | ||
|
||
class Handler extends ExceptionHandler | ||
{ | ||
/** | ||
* A list of the exception types that are not reported. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontReport = [ | ||
// | ||
]; | ||
|
||
/** | ||
* A list of the inputs that are never flashed for validation exceptions. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontFlash = [ | ||
'password', | ||
'password_confirmation', | ||
]; | ||
|
||
/** | ||
* Report or log an exception. | ||
* | ||
* @param \Exception $exception | ||
* @return void | ||
*/ | ||
public function report(Exception $exception) | ||
{ | ||
parent::report($exception); | ||
} | ||
|
||
/** | ||
* Render an exception into an HTTP response. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Exception $exception | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function render($request, Exception $exception) | ||
{ | ||
return parent::render($request, $exception); | ||
} | ||
} |
Oops, something went wrong.