First push

This commit is contained in:
coralmania 2019-10-18 12:25:37 +03:00
commit 1fe98106d4
798 changed files with 299252 additions and 0 deletions

358
DB_backUp/eshopers_proj.sql Normal file
View File

@ -0,0 +1,358 @@
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 04, 2018 at 02:00 PM
-- Server version: 5.7.20-0ubuntu0.17.10.1
-- PHP Version: 7.1.11-0ubuntu0.17.10.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `eshopers_proj`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`article` text NOT NULL,
`url` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `title`, `article`, `url`, `image`, `updated_at`, `created_at`) VALUES
(1, 'men', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.', 'men-categorie', 'man_categorie.jpg', '2017-12-04 13:36:58', '2017-12-04 13:36:58'),
(2, 'women', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et fdsdf sdkfio evcxnbm dhjkf kskkf.', 'women-categorie', 'woman_categorie.jpg', '2017-12-04 13:36:58', '2017-12-04 13:36:58'),
(3, 'kids', 'kids kdis ids kdisids kdis ids kdis ids kdisids kdis ids kdisids kdis ids kdisfjsk fdsjkl fdhsj fkhdsk fhjk sdf.', 'kids-categorie', 'kids_categorie.jpg', '2017-12-04 13:39:06', '2017-12-04 13:39:06'),
(4, 'baby', 'babyfdjskflj asjdfk ldsa ur iowet kjsd kl;dsjga kl;j ', 'baby-categorie', 'baby_categorie.jpg', '2017-12-05 18:16:21', '2017-12-05 18:16:21');
-- --------------------------------------------------------
--
-- Table structure for table `contents`
--
CREATE TABLE `contents` (
`id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`article` text NOT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `contents`
--
INSERT INTO `contents` (`id`, `menu_id`, `title`, `article`, `updated_at`, `created_at`) VALUES
(2, 3, 'Blog title', '<h1>Title!</h1>', '2017-12-25 12:37:39', '2017-12-25 12:37:39'),
(4, 2, 'our Shop in israel', 'lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem ', '2017-12-25 12:39:13', '2017-12-25 12:39:13');
-- --------------------------------------------------------
--
-- Table structure for table `menus`
--
CREATE TABLE `menus` (
`id` int(11) NOT NULL,
`link` varchar(255) NOT NULL,
`mtitle` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `menus`
--
INSERT INTO `menus` (`id`, `link`, `mtitle`, `url`, `updated_at`, `created_at`) VALUES
(3, 'Blog', 'test', 'blog', '2017-12-22 11:47:19', '2017-12-22 11:47:19'),
(4, 'test', 'test-us', 'test-us', '2017-12-25 12:35:58', '2017-12-25 12:35:58');
-- --------------------------------------------------------
--
-- Table structure for table `messages`
--
CREATE TABLE `messages` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`message` text NOT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `messages`
--
INSERT INTO `messages` (`id`, `name`, `last_name`, `email`, `message`, `updated_at`, `created_at`) VALUES
(1, 'fdsaf', 'fdsafdsa', 'kfir_dayan27@walla.com', 'fdsafdsafd', '2017-12-26 20:30:47', '2017-12-26 20:30:47'),
(2, 'fdgdf', 'dfg', 'koralimenaya@gmail.com', 'gdfgf', '2017-12-27 22:39:01', '2017-12-27 22:39:01'),
(3, 'fdgdf', 'dfg', 'koralimenaya@gmail.com', 'gdfgf', '2017-12-27 22:40:13', '2017-12-27 22:40:13');
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`orderid` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`data` text NOT NULL,
`total` decimal(8,2) NOT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`orderid`, `user_id`, `data`, `total`, `updated_at`, `created_at`, `status`) VALUES
(21, 4, 'a:3:{s:8:\"19.47.17\";a:6:{s:2:\"id\";s:8:\"19.47.17\";s:4:\"name\";s:10:\"red-sweder\";s:5:\"price\";i:60;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:8:\"R2C2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"19.47.29\";a:6:{s:2:\"id\";s:8:\"19.47.29\";s:4:\"name\";s:8:\"red-baby\";s:5:\"price\";i:60;s:8:\"quantity\";s:1:\"2\";s:10:\"attributes\";a:2:{s:4:\"size\";s:7:\"X-Large\";s:3:\"img\";s:27:\"newborn-baby-clothing-3.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"19.47.32\";a:6:{s:2:\"id\";s:8:\"19.47.32\";s:4:\"name\";s:8:\"red-baby\";s:5:\"price\";i:60;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:27:\"newborn-baby-clothing-3.jpg\";}s:10:\"conditions\";a:0:{}}}', '360.00', '2017-12-30 19:47:38', '2017-12-30 19:47:38', 0),
(22, 4, 'a:2:{s:8:\"08.25.27\";a:6:{s:2:\"id\";s:8:\"08.25.27\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"08.25.28\";a:6:{s:2:\"id\";s:8:\"08.25.28\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:20;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}}', '50.00', '2017-12-31 08:25:33', '2017-12-31 08:25:33', 1),
(23, 4, 'a:1:{s:8:\"12.35.55\";a:6:{s:2:\"id\";s:8:\"12.35.55\";s:4:\"name\";s:12:\"pepurl shirt\";s:5:\"price\";i:120;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:16:\"purple_shirt.jpg\";}s:10:\"conditions\";a:0:{}}}', '120.00', '2017-12-31 12:38:28', '2017-12-31 12:38:28', 2),
(24, 4, 'a:3:{s:8:\"10.56.16\";a:6:{s:2:\"id\";s:8:\"10.56.16\";s:4:\"name\";s:9:\"blue-baby\";s:5:\"price\";i:40;s:8:\"quantity\";s:1:\"2\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:36:\"d1f2958b34af8f7f5dfe86bece68de14.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"10.58.58\";a:6:{s:2:\"id\";s:8:\"10.58.58\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"2\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"10.59.02\";a:6:{s:2:\"id\";s:8:\"10.59.02\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}}', '170.00', '2018-01-02 11:03:54', '2018-01-02 11:03:54', 0),
(25, 9, 'a:2:{s:8:\"16.17.20\";a:6:{s:2:\"id\";s:8:\"16.17.20\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"16.17.25\";a:6:{s:2:\"id\";s:8:\"16.17.25\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:10;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}}', '60.00', '2018-01-02 16:17:32', '2018-01-02 16:17:32', 0),
(26, 4, 'a:2:{s:8:\"16.53.54\";a:6:{s:2:\"id\";s:8:\"16.53.54\";s:4:\"name\";s:10:\"red-sweder\";s:5:\"price\";i:20;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:8:\"R2C2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"16.53.55\";a:6:{s:2:\"id\";s:8:\"16.53.55\";s:4:\"name\";s:11:\"red-overAll\";s:5:\"price\";i:25;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:27:\"kids-dtm-f-20171101-c1.jpeg\";}s:10:\"conditions\";a:0:{}}}', '45.00', '2018-01-02 16:54:00', '2018-01-02 16:54:00', 0),
(27, 8, 'a:3:{s:8:\"23.34.13\";a:6:{s:2:\"id\";s:8:\"23.34.13\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:10;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"23.35.13\";a:6:{s:2:\"id\";s:8:\"23.35.13\";s:4:\"name\";s:10:\"red-sweder\";s:5:\"price\";i:20;s:8:\"quantity\";s:1:\"7\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:8:\"R2C2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"23.35.20\";a:6:{s:2:\"id\";s:8:\"23.35.20\";s:4:\"name\";s:11:\"red-overAll\";s:5:\"price\";i:25;s:8:\"quantity\";s:1:\"5\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:27:\"kids-dtm-f-20171101-c1.jpeg\";}s:10:\"conditions\";a:0:{}}}', '295.00', '2018-01-02 23:35:27', '2018-01-02 23:35:27', 0),
(28, 4, 'a:5:{s:8:\"12.46.00\";a:6:{s:2:\"id\";s:8:\"12.46.00\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"12.46.02\";a:6:{s:2:\"id\";s:8:\"12.46.02\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"12.46.03\";a:6:{s:2:\"id\";s:8:\"12.46.03\";s:4:\"name\";s:10:\"nice-dress\";s:5:\"price\";i:30;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:14:\"dress-sexy.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"12.46.04\";a:6:{s:2:\"id\";s:8:\"12.46.04\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:10;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"12.46.05\";a:6:{s:2:\"id\";s:8:\"12.46.05\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:10;s:8:\"quantity\";s:1:\"1\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}}', '170.00', '2018-01-03 12:47:02', '2018-01-03 12:47:02', 0),
(29, 4, 'a:3:{s:8:\"16.59.44\";a:6:{s:2:\"id\";s:8:\"16.59.44\";s:4:\"name\";s:10:\"Nice Shirt\";s:5:\"price\";i:10;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:7:\"X-Large\";s:3:\"img\";s:15:\"248686-35-2.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"17.00.13\";a:6:{s:2:\"id\";s:8:\"17.00.13\";s:4:\"name\";s:8:\"red-baby\";s:5:\"price\";i:60;s:8:\"quantity\";s:1:\"2\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"Large\";s:3:\"img\";s:27:\"newborn-baby-clothing-3.jpg\";}s:10:\"conditions\";a:0:{}}s:8:\"17.00.19\";a:6:{s:2:\"id\";s:8:\"17.00.19\";s:4:\"name\";s:9:\"blue-baby\";s:5:\"price\";i:40;s:8:\"quantity\";s:1:\"3\";s:10:\"attributes\";a:2:{s:4:\"size\";s:5:\"small\";s:3:\"img\";s:36:\"d1f2958b34af8f7f5dfe86bece68de14.jpg\";}s:10:\"conditions\";a:0:{}}}', '270.00', '2018-01-03 17:00:35', '2018-01-03 17:00:35', 0);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(11) NOT NULL,
`categorie_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`body` text NOT NULL,
`image` varchar(255) NOT NULL,
`price` int(8) NOT NULL,
`url` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`stock` int(11) NOT NULL,
`sale` int(11) NOT NULL,
`original_price` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `categorie_id`, `title`, `body`, `image`, `price`, `url`, `created_at`, `updated_at`, `stock`, `sale`, `original_price`) VALUES
(1, 1, 'green Tshirt', 'green Tshirt comfdsjklfh fh jkdfs', 'green_Tshirt.jpg', 100, 'green_Tshirt', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 30, 1, '120'),
(2, 1, 'pepurl shirt', 'gfdg fdsg jh fgj treutre hfgdh', 'purple_shirt.jpg', 120, 'purple_shirt', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 27, 0, ''),
(3, 2, 'Nice Shirt', 'fdsf af sdar fewt ewtr we', '248686-35-2.jpg', 10, 'Nice-Shirt', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 15, 1, '20'),
(4, 2, 'nice-dress', 'gsfdg dfsg festd gerwy re gtdfsg rfder reter ytfds hgfds h', 'dress-sexy.jpg', 30, 'nice-dress', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 40, 0, ''),
(5, 3, 'red-overAll', 'fgsdg fdstg fdsy rey fdsh fds h', 'kids-dtm-f-20171101-c1.jpeg', 25, 'red-overAll', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 64, 1, '30'),
(6, 3, 'red-sweder', 'gfd srf sry resy resw tyer ', 'R2C2.jpg', 20, 'red-sweder', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 5, 1, '60'),
(7, 4, 'blue-baby', 'gfa stga sfdg asdfg das g', 'd1f2958b34af8f7f5dfe86bece68de14.jpg', 40, 'blue-baby', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 6, 1, '60'),
(8, 4, 'red-baby', 'fgda gatgds yfdasg dsag ds ', 'newborn-baby-clothing-3.jpg', 60, 'red-baby', '2017-12-05 00:00:00', '2017-12-05 00:00:00', 8, 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `sales_roles`
--
CREATE TABLE `sales_roles` (
`sale_role` int(11) NOT NULL,
`sale` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sales_roles`
--
INSERT INTO `sales_roles` (`sale_role`, `sale`) VALUES
(0, 1),
(1, 0.1),
(2, 0.2),
(3, 0.3);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`city` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`profilepic` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`street` varchar(255) NOT NULL,
`ZIP` varchar(255) NOT NULL,
`phone` varchar(255) NOT NULL,
`streetNum` int(11) NOT NULL,
`State` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `updated_at`, `created_at`, `city`, `country`, `profilepic`, `last_name`, `street`, `ZIP`, `phone`, `streetNum`, `State`) VALUES
(4, 'Admin', 'admin@gmail.com', '$2y$10$KfMDeDqHIKTSATRmIN1RuO6ad8OoMJ4xZoLJUVdpk56BofFpj0/he', '2017-12-25 09:46:33', '2017-12-18 13:20:45', 'Czech republic', 'USA', 'kfir.png', 'admin', 'Ostrava', '42842', '06665478', 54, 'NC'),
(5, 'Kfir', 'kfir@gmail.com', '$2y$10$NTLaFoIUKyJhWCjO8grxHO6nCAD4cV8SFhiL7SnOh3keGPYkkvK96', '2017-12-24 15:27:49', '2017-12-18 13:21:39', 'tel aviv', 'israel', 'no_profile_pic.jpg', 'dayan', 'zabotinski', '3668', '035564786', 200, 'israel'),
(7, 'ofir', 'ofir@gmail.com', '$2y$10$Eq196p2cH6hSkXw/me7pBetJPE/qgIgGe7n0TbkloeN5C30Te0spS', '2017-12-20 09:23:15', '2017-12-20 09:23:15', 'ashdod', 'zimbabue', 'no_profile_pic.jpg', 'dayan', 'lorem', '5346', '05865452', 53, 'boloo'),
(8, 'cocod', 'coco@gmail.com', '$2y$10$IbjiRXl.3.hS/MtO7pB4/uFZYdtqBJMmQm/YuP2QoJoWW3ZPSvB0y', '2017-12-22 12:49:36', '2017-12-22 12:49:36', ' ramat gan', 'israel', 'no_profile_pic.jpg', 'ravid', 'arnon', '8674', '052454545', 45, 'isreal'),
(9, 'sagi', 'sagi@gmail.com', '$2y$10$VRCvpWGturycM4xOO4PjTeA4.TCQDhB51UgrJ0QNlo2XHZGcfDAYS', '2017-12-24 14:38:05', '2017-12-24 13:10:51', 'tel aviv', 'israel', 'no_profile_pic.jpg', 'dayan', 'gonen', '39939', '055546478', 14, 'israel'),
(10, 'koral', 'koralimenaya@gmail.com', '$2y$10$m.I/dBbggesleTPKCtuMMuk7l0UVvl4IwAvvWd1Axn0dwuTqfsANK', '2017-12-27 20:44:37', '2017-12-27 20:37:15', 'v', '0', 'no_profile_pic.jpg', 'koralimenayagmail.com', 'mmmmmmmmmmmm', '0', '0523303', 0, 'mmmmmmmmmmmm');
-- --------------------------------------------------------
--
-- Table structure for table `user_roles`
--
CREATE TABLE `user_roles` (
`uid` int(11) NOT NULL,
`role` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_roles`
--
INSERT INTO `user_roles` (`uid`, `role`) VALUES
(4, 6),
(5, 7),
(6, 7),
(7, 7),
(8, 7),
(9, 7),
(10, 7);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `url` (`url`);
--
-- Indexes for table `contents`
--
ALTER TABLE `contents`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `menus`
--
ALTER TABLE `menus`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `url` (`url`);
--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`orderid`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `url` (`url`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `contents`
--
ALTER TABLE `contents`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `menus`
--
ALTER TABLE `menus`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `orderid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

72
app/Categorie.php Normal file
View File

@ -0,0 +1,72 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Session , Image , DB;
class Categorie extends Model
{
public function products (){
return $this -> hasMany('App\Product');
}
static public function save_new($request){
$img = self::loadImage($request);
//defult Image
$image_name = $img ? $img : 'noimage.png';
//save the pic in the DB
$category = new self();
$category ->title = $request['title'];
$category ->article = $request['title'];
$category ->url = $request['url'];
$category ->image = $image_name;
$category ->save();
Session::flash('sm' , 'Category As been Saved!');
}
static public function find_item($id){
$sql = 'SELECT * FROM categories c WHERE c.id = ?';
$item = DB::select($sql,[$id] );
return $item;
}
static public function update_item($request , $id){
$image_name =self::loadImage($request);
//save the pic in the DB
$category = self::find($id);
$category ->title = $request['title'];
$category ->article = $request['title'];
$category ->url = $request['url'];
if ($image_name) {
$category ->image = $image_name;
}
$category ->save();
Session::flash('sm' , 'Category As been Updated!');
}
static private function loadImage($request){
$image_name = '';
if ($request->hasFile('image') && $request->file('image')->isValid()) {
//take the user pic to our server
$file = $request->file('image');
$image_name = date('Y.m.d.H.i.s') . '-' . $file->getClientOriginalName();
$request->file('image')->move( public_path() . '/images' , $image_name);
//take the origin pic and make a new one by using Image Class to provent viruses
$img = Image::make(public_path() . '/images'.'/' . $image_name);
//resize the pic to 300 Width
$img->resize(300, null, function ($constraint) {
$constraint->aspectRatio();
});
//save the new pic and overWrite the pic
$img ->save(public_path() . '/images'.'/' . $image_name);
}
return $image_name;
}
}

42
app/Console/Kernel.php Normal file
View File

@ -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');
}
}

31
app/Content.php Normal file
View File

@ -0,0 +1,31 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Session,DB;
class Content extends Model
{
static public function save_new($request){
$content = new self();
$content ->menu_id = $request['menu_id'];
$content ->title =$request['title'];
$content ->article = $request['article'];
$content ->save();
Session::flash('sm' , 'Article Has been saved!');
}
static public function findThis($id){
$sql = "SELECT * FROM contents c WHERE c.id = ?";
$content = DB::select($sql,[$id]);
return $content;
}
static public function update_item($data,$id){
$content = self::find($id);
$content ->menu_id = $data['menu_id'];
$content ->title =$data['title'];
$content ->article = $data['article'];
$content ->save();
Session::flash('sm' , 'Content Has been Updated!');
}
}

View File

@ -0,0 +1,53 @@
<?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.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @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);
}
}

View File

@ -0,0 +1,64 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\CategoryRequest;
use App\Categorie;
use Session;
class CategoriesController extends MainController
{
public function index()
{
self::$data['categories'] = Categorie::all()->toArray();
return view('cms.categories' , self::$data);
}
public function create()
{
return view('forms.addCategory' , self::$data);
}
public function store(CategoryRequest $request)
{
Categorie::save_new($request);
return redirect('cms/categories');
}
public function show($id)
{
self::$data['item'] = Categorie::find_item($id);
return view('cms.delete-categories' , self::$data);
}
public function edit($id)
{
self::$data['categories'] = Categorie::find_item($id);
return view('cms.cms-edit-categories' , self::$data);
}
public function update(CategoryRequest $request, $id)
{
Categorie::update_item($request,$id);
return redirect('cms/categories');
}
public function destroy($id)
{
Categorie::destroy($id);
Session::flash('sm' , 'Categorie Deleted');
return redirect('cms/categories');
}
}

View File

@ -0,0 +1,75 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use App\Order;
use App\Http\Requests\UpdateProfile;
class CmsController extends MainController
{
// public function dashboard(){
// self::$data['user'] = User::getUserInfo();
// return view('cms.cms-home' , self::$data);
// }
public function home(){
$users= self::$data['users'] = User::getAllUsers();
self::$data['totalOrders'] = self::filter(Order::getAllTotalOrders($users));
return view('cms.cms-home' , self::$data);
}
static public function filter($array){
$new = [];
foreach ($array as $value) {
$sum =0;
foreach ($value as $key) {
$sum = $sum + $key ->total;
}
$new[] = $sum;
}
return $new;
}
public function addLinks(){
return view('cms.cms-addLinks');
}
public function articles(){
return view('cms.articles');
}
public function charts(){
return view('cms.cms-charts' , self::$data);
}
public function usersInfo($uid){
$user = self::$data['user'] = User::getUserInfoCms($uid);
$orders = self::$data['userOrdes'] = Order::getUserOrders($user);
$total = Order::getAllTotalOrders($user);
self::$data['userTotalOrder'] = self::filter($total)[0];
return view('cms.cms-usersInfo' , self::$data);
}
static public function postUserInfo(UpdateProfile $request , $uid){
User::updateUserCms($request , $uid);
$users= self::$data['users'] = User::getAllUsers();
self::$data['totalOrders'] = self::filter(Order::getAllTotalOrders($users));
return view('cms.cms-home' , self::$data);
}
public function getUserOrders($uid){
self::$data['orders'] = Order::getUserOrders(User::getUserInfoCms($uid) );
return view('cms.showUserOrders' , self::$data);
}
public function getOrderById($oid){
self::$data['order'] = Order::getOrder($oid);
return view('cms.userOrder' , self::$data);
}
}

View File

@ -0,0 +1,68 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\ContentRequest;
use App\Menu;
use App\Content;
use Session;
class ContentController extends MainController
{
public function index()
{
self::$data['content'] = Content::all()->toArray();
// dd(self::$data);
return view('cms.content' , self::$data);
}
public function create()
{
return view('cms.cms-add-content' , self::$data);
}
public function store(ContentRequest $request)
{
Content::save_new($request);
return redirect('cms/content');
}
public function show($id)
{
self::$data['item'] = Content::findThis($id);
return view('cms.delete-contnet' , self::$data);
}
public function edit($id)
{
self::$data['content'] = Content::findThis($id);
return view('cms.edit_content' , self::$data);
}
public function update(ContentRequest $request, $id)
{
Content::update_item($request,$id);
return redirect('cms/content');
}
public function destroy($id)
{
Content::destroy($id);
Session::flash('sm' , 'Content Deleted');
return redirect('cms/content');
}
}

View File

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Menu;
class MainController extends Controller
{
static public $data = ['title' => 'Eshoper | '] ;
function __construct(){
self::$data['menu'] = Menu::all()->toArray();
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\MenuRequest;
use App\Menu;
use Session;
class MenuController extends MainController
{
public function index()
{
return view('cms.cms-menu' , self::$data);
}
public function create()
{
return view('forms.addMenu' , self::$data);
}
public function store(MenuRequest $request)
{
Menu::save_new($request);
return redirect('cms/menu');
}
public function show($id)
{
self::$data['item'] = Menu::find_item($id);
return view('cms.delete-menu' , self::$data);
}
public function edit($id)
{
self::$data['menu'] = Menu::find_item($id);
return view('cms.cms-edit-menu' , self::$data);
}
public function update(MenuRequest $request, $id)
{
Menu::update_item($request,$id);
return redirect('cms/menu');
}
public function destroy($id)
{
Menu::destroy($id);
Session::flash('sm' , 'Menu Deleted');
return redirect('cms/menu');
}
}

View File

@ -0,0 +1,54 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\ContactRequest;
use App\Http\Controllers\ShopController;
use App\Categorie;
use DB, Session;
use App\User;
use App\Message;
class PagesController extends MainController
{
public function home(){
self::$data['title'] .= 'Home Page';
self::$data['categories'] = Categorie::all()->toArray();
return view('content.home' , self::$data);
}
public function contact(){
if (Session::get('user_id') ) {
$user = User::getUserInfo();
self::$data['user'] = $user;
}
return view('content.contact' , self::$data);
}
public function postContact(ContactRequest $request){
Message::save_msg($request);
return redirect('contact');
}
//
// public function blog(){
// return view('content.blog' ,self::$data);
// }
public function content($url){
$contents = DB::table('contents')
->join('menus' , 'menus.id' , '=' , 'contents.menu_id')
->where('menus.url' , '=' , $url)
->get()
->toArray();
if (!$contents){
Abort(404);
} else{
self::$data['contents'] = $contents;
self::$data['title'] .= $contents[0]->mtitle;
return view('content.content',self::$data);
}
}
}

View File

@ -0,0 +1,64 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\ProductRequest;
use App\Categorie;
use App\Product;
use Session;
class ProductsController extends MainController
{
public function index()
{
self::$data['products'] = Product::all()->toArray();
return view('cms.products' , self::$data);
}
public function create()
{
self::$data['categories'] = Categorie::all()->toArray();
return view('forms.addProduct' , self::$data);
}
public function store(ProductRequest $request)
{
Product::save_new($request);
return redirect('cms/products');
}
public function show($id)
{
self::$data['item'] = Product::find_item($id);
return view('cms.delete-product' , self::$data);
}
public function edit($id)
{
self::$data['categories'] = Categorie::all()->toArray();
self::$data['product'] = Product::find_item($id);
return view('cms.cms-edit-product' , self::$data);
}
public function update(ProductRequest $request, $id)
{
Product::update_item($request,$id);
return redirect('cms/products');
}
public function destroy($id)
{
Product::destroy($id);
Session::flash('sm' , 'Product Deleted');
return redirect('cms/products');
}
}

View File

@ -0,0 +1,111 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Categorie;
use App\Product;
use resources;
use Cart;
use Session;
use App\Order;
use App\User;
use App\sales_role;
class ShopController extends MainController
{
public function categories(){
self::$data['title'] .= 'Shop categories';
self::$data['categories'] = Categorie::all()->toArray();
return view('shop.categories' ,self::$data);
}
public function product($cat_url){
// dd($cat_url);
$products = Product::getProducts($cat_url , self::$data);
return view('shop.products', self::$data);
}
public function item($cat_url,$prd_url){
if($product = Product::where('url','=',$prd_url)->first()){
self::$data['product'] = $product->toArray();
self::$data['title'] .= $product['title'];
// dd(self::$data['product']);
return view('shop.item' , self::$data);
}else{
abort(404);
}
}
public function addToCart(Request $request){
Product::addToCart($request);
}
public function checkOut(){
$cart = Cart::getContent() -> toArray();
self::$data['title'] .= 'Check-out';
self::$data['cart'] = $cart;
return view('shop.checkout' , self::$data);
}
public function clearCart(){
Session::flash('sm' ,'Cart Cleared');
Cart::clear();
return redirect('shop/checkout');
}
public function removeItem($id){
Cart::remove($id);
return redirect('shop/checkout');
}
// public function prePlaceOrder(){
// self::$data['title'] .= 'Wait!';
// self::$data['cart'] = Cart::getContent()->toArray();
// if (self::$data['user'] = User::getUserInfo() ) {
// return view('shop.pre-place-order' , self::$data);
// }else{
// return redirect('user/login');
// }
// // ;
// // dd(self::$data);
// }
static public function prePlaceOrder(){
if( Cart::isEmpty() ){
return redirect('shop');
}else{
if( ! Session::has('user_id') ){
return redirect('user/login?rt=shop/checkout');
}else{
// Order::saveNew();
self::$data['title'] .= 'Wait!';
self::$data['cart'] = Cart::getContent()->toArray();
self::$data['user'] = User::getUserInfo();
return view('shop.pre-place-order' , self::$data);
}
}
}
public function placeOrder(){
if (Cart::isEmpty() ) {
return redirect('shop');
}else {
if (!Session::has('user_id') ) {
return redirect('user/login?rt=shop/checkout');
}else {
Order::save_new();
return redirect('shop');
}
}
}
}

View File

@ -0,0 +1,118 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests\ChangePass;
use App\Http\Requests\LoginRequset;
use App\Http\Requests\UploadProfilePicRequest;
use App\Http\Requests\SignupRequest;
use App\Http\Requests\UpdateProfile;
use App\User;
use App\Order;
use Session;
class UserController extends MainController
{
function __construct(){
$this->middleware('signmid' , ['except' =>['uploadNewPic', 'changePic', 'orderedId','userOrderList','logOut' , 'profile' , 'postProfile' , 'changePass','postChangePass'] ]);
}
static public function getLogin(){
self::$data['title'] .= 'Log in';
return view('forms.login' , self::$data);
}
public function postLogin(LoginRequset $request){
$rt = !empty($request['rt']) ? $request['rt'] : '';
// dd($rt);
if (User::validate($request) ){
return redirect('' . $rt);
}else{
return view('forms.login' , self::$data) -> withErrors('Wrong Email / Password');
}
}
public function getSignup(){
return view('forms.signup' , self::$data);
}
public function postSignup(SignupRequest $request){
User::save_new($request);
return redirect('');
}
public function logOut(){
// $name = Session::get('user_name');
Session::flush();
Session::flash('sm' , ' you have loged Out ! ');
return redirect('user/login');
}
public function profile(){
$user = User::getUserInfo();
self::$data['user_orders'] = count(Order::getUserOrders($user));
self::$data['user'] = $user;
self::$data['title'] .= 'Profile Page';
return view('user.profile' , self::$data);
}
public function postProfile(UpdateProfile $request){
User::updateUser($request);
$user = User::getUserInfo();
self::$data['user_orders'] = count(Order::getUserOrders($user));
self::$data['user'] = $user;
return view('user.profile' , self::$data);
}
public function changePass(){
return view('user.changePass' , self::$data);
}
public function postChangePass(ChangePass $request){
if (User::getPass($request)) {
$user = User::getUserInfo();
self::$data['user_orders'] = count(Order::getUserOrders($user));
$user = User::getUserInfo();
self::$data['user'] = $user;
return view('user.profile' , self::$data);
}else{
return view('user.changePass' , self::$data);
}
}
public function userOrderList(){
$user = User::getUserInfo();
self::$data['user_orders'] = Order::getUserOrders($user);
self::$data['user'] = $user;
self::$data['title'] .= 'customer-orders';
return view('user.customer-orders' , self::$data);
}
public function orderedId($oid){
self::$data['order'] = Order::getOrder($oid);
self::$data['oid'] = $oid;
$user = self::$data['user'] = User::getUserInfo();
self::$data['user_orders'] = count(Order::getUserOrders($user));
return view('user.customer-order' , self::$data);
}
public function changePic($uid){
self::$data['user'] = User::find($uid)->toArray();
return view('user.changePic' , self::$data);
}
public function uploadNewPic(UploadProfilePicRequest $request , $uid){
User::update_Pic($request , $uid);
return redirect('user/profile');
}
}

64
app/Http/Kernel.php Normal file
View File

@ -0,0 +1,64 @@
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
'throttle:60,1',
'bindings',
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'cmsadmin' => \App\Http\Middleware\CmsAdmin::class,
'signmid' => \App\Http\Middleware\SignMid::class,
];
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Session;
class CmsAdmin
{
public function handle($request, Closure $next)
{
if (!Session::has('is_admin')) {
return redirect('user/login');
}else{
return $next($request);
}
}
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/home');
}
return $next($request);
}
}

View File

@ -0,0 +1,22 @@
<?php
namespace App\Http\Middleware;
use Closure , Session;
class SignMid
{
public function handle($request, Closure $next)
{
if (Session::has('user_id') ) {
return redirect('');
}else{
return $next($request);
}
}
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_confirmation',
];
}

View File

@ -0,0 +1,29 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
protected $proxies;
/**
* The current proxy header mappings.
*
* @var array
*/
protected $headers = [
Request::HEADER_FORWARDED => 'FORWARDED',
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
];
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//
];
}

View File

@ -0,0 +1,27 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class CategoryRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules(Request $request)
{
$unique = !empty($request['item_id']) ? ',' . $request['item_id'] :'';
return [
'title' => 'required',
'url' => 'required|regex:/^[a-z\d-]+$/|unique:categories,url'.$unique,
'article' => 'required',
'image' => 'image',
];
}
}

View File

@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ChangePass extends FormRequest{
public function authorize()
{
return true;
}
public function rules()
{
return [
'password' => 'required|min:6|max:10|confirmed',
'password_old' => 'required',
];
}
public function messages(){ //if i want to change the errors mgs!
return [
'password.min' => 'password needs to be Between 6-10 chars',
'password_old.required' => 'the Old Password is required',
];
}
}

View File

@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ContactRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|min:2',
'last_name' => 'required',
'email' => 'required|email',
'message' => 'required'
];
}
// public function messages(){ //if i want to change the errors mgs!
// return [
//
//
// ];
// }
}

View File

@ -0,0 +1,23 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class ContentRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'menu_id' => 'required',
'title' => 'required',
'article' => 'required',
];
}
}

View File

@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequset extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'email' => 'required|email',
'password' => 'required|min:6|max:10'
];
}
public function messages(){ //if i want to change the errors mgs!
return [
'password.min' => 'password needs to be Between 6-10 chars',
'password.max' => 'password needs to be Between 6-10 chars',
];
}
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class MenuRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules(Request $request)
{
$unique = !empty($request['item_id']) ? ',' . $request['item_id'] :'';
return [
'link' => 'required',
'title' => 'required',
'url' => 'required|regex:/^[a-z\d-]+$/|unique:menus,url'.$unique,
];
}
}

View File

@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;
class ProductRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules(Request $request)
{
$unique = !empty($request['item_id']) ? ',' . $request['item_id'] :'';
return [
'categorie_id' => 'required|numeric',
'title' => 'required',
'url' => 'required|regex:/^[a-z\d-]+$/|unique:products,url'.$unique,
'price' => 'required|numeric',
'stock' => 'required|numeric',
'sale' => 'required|numeric',
'body' => 'required',
'image' => 'image',
];
}
}

View File

@ -0,0 +1,39 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class SignupRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|min:2',
'last_name' => 'required|min:2',
'streetNum' => 'required|numeric',
'street' => 'required|string',
'city' => 'required|string',
'ZIP' => 'required|numeric',
'country' => 'required|string|min:2',
'phone' => 'required|min:8|max:10',
'email' => 'required|email|unique:users,email',
'password' => 'required|min:6|max:10|confirmed',
];
}
public function messages(){ //if i want to change the errors mgs!
return [
'password.min' => 'password needs to be Between 6-10 chars',
'password.max' => 'password needs to be Between 6-10 chars',
'phone.numeric' => 'phone must be only numbers , without spaciel chars',
];
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateProfile extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|min:2',
'last_name' => 'required|min:2',
'streetNum' => 'required',
'street' => 'required',
'city' => 'required',
'ZIP' => 'required',
'country' => 'required',
'phone' => 'required',
];
}
}

View File

@ -0,0 +1,27 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UploadProfilePicRequest extends FormRequest{
public function authorize()
{
return true;
}
public function rules()
{
return [
'image' => 'required|image',
];
}
public function messages(){ //if i want to change the errors mgs!
return [
'image.required' => ' The image field is required.
If you wish to Cancel click Cancel ',
];
}
}

35
app/Menu.php Normal file
View File

@ -0,0 +1,35 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Session , DB;
class Menu extends Model
{
static public function save_new($data){
$menu = new self();
$menu ->link = $data['link'];
$menu ->mtitle = $data['title'];
$menu ->url = $data['url'];
$menu ->save();
Session::flash('sm' , 'Menu Has been saved');
}
static public function find_item($id){
$sql = 'SELECT * FROM menus m WHERE m.id = ?';
$item = DB::select($sql,[$id] );
return $item;
}
static public function update_item($data,$id){
$menu = self::find($id);
$menu ->link = $data['link'];
$menu ->mtitle = $data['title'];
$menu ->url = $data['url'];
$menu ->save();
Session::flash('sm' , 'Menu Has been Updated!');
}
}

20
app/Message.php Normal file
View File

@ -0,0 +1,20 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB,Session;
class Message extends Model
{
static public function save_msg($data){
$message = new self();
$message ->name = $data['name'];
$message ->last_name = $data['last_name'];
$message ->email = $data['email'];
$message ->message = $data['message'];
$message -> save();
Session::flash('sm' , $data->name . ' Thank You For your message, we\'l talk soon ! ');
}
}

48
app/Order.php Normal file
View File

@ -0,0 +1,48 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Session, Cart , DB;
class Order extends Model
{
static public function save_new(){
$cartCollection = Cart::getContent();
$cart = $cartCollection->toArray();
$order = new self();
$order ->user_id = Session::get('user_id');
$order ->data = serialize($cart);
$order ->total = Cart::getTotal();
$order->status = 0;
// dd($order);
$order -> save();
Cart::clear();
Session::flash('sm', 'Thanks, you Order Saved!');
}
static public function getUserOrders($user){
$uid = $user[0]->id;
$sql = "SELECT * FROM orders o WHERE o.user_id = ? ORDER BY orderid";
$user_orders = DB::select($sql,[$uid] );
return $user_orders;
}
static public function getOrder($oid){
$sql = "SELECT * FROM orders o WHERE o.orderid = ?";
$user_order = DB::select($sql,[$oid] );
return $user_order;
}
static public function getAllTotalOrders($users){
$allOrders = [];
$sql = "SELECT total FROM orders o JOIN users u ON u.id = ? AND o.user_id = ?";
foreach ($users as $user) {
$allOrders []= DB::select($sql,[$user->id , $user->id]);
}
return $allOrders;
}
}

112
app/Product.php Normal file
View File

@ -0,0 +1,112 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Cart;
use Session , Image , DB;
class Product extends Model
{
static public function getProducts($cat_url , &$data){
if ($category = Categorie::where('url','=',$cat_url)->first()) {
$category = $category ->toArray();
$data['title'] .= $category['title'] . ' Products';
$data['cat_url'] = $cat_url;
if ($products = Categorie::find($category['id'])->products) {
$data['products'] = $products->toArray();
}else {
//No Products Found
}
}else{
abort(404);
}
}
static public function addToCart($data){
if(!empty ($data['id']) && is_numeric($data['id'])){
// if(! Cart::get($data['id'])){
if($product = self::find($data['id'])){
$product = $product -> toArray();
Cart::add(date('H.i.s') , $product['title'] , $product['price'] , $data['quantity'], ['size' => $data['size'] ,'img' => $product['image'] ]);
Session::flash('sm' , $product['title'] . ' Added To Cart!');
}
// }else{
// Session::flash('sm-error' , 'Already In Cart');
// }
}
}
static public function save_new($request){
$img = self::loadImage($request);
//defult Image
$image_name = $img ? $img : 'noimage.png';
//save the pic in the DB
$product = new self();
$product ->categorie_id = $request['categorie_id'];
$product ->title = $request['title'];
$product ->url = $request['url'];
$product ->price = $request['price'];
$product ->stock = $request['stock'];
$product ->sale = $request['sale'];
$product ->body = $request['body'];
$product ->image = $image_name;
$product ->save();
Session::flash('sm' , 'Product As been Saved!');
}
static public function find_item($id){
$sql = 'SELECT * FROM products p WHERE p.id = ?';
$item = DB::select($sql,[$id] );
return $item;
}
static public function update_item($request , $id){
$image_name =self::loadImage($request);
//save the pic in the DB
$product = self::find($id);
$product ->categorie_id = $request['categorie_id'];
$product ->title = $request['title'];
$product ->url = $request['url'];
$product ->price = $request['price'];
$product ->stock = $request['stock'];
$product ->sale = $request['sale'];
$product ->body = $request['body'];
if ($image_name) {
$product ->image = $image_name;
}
$product ->save();
Session::flash('sm' , $request['title'].' Product As been Updated!');
}
static private function loadImage($request){
$image_name = '';
if ($request->hasFile('image') && $request->file('image')->isValid()) {
//take the user pic to our server
$file = $request->file('image');
$image_name = date('Y.m.d.H.i.s') . '-' . $file->getClientOriginalName();
$request->file('image')->move( public_path() . '/images' , $image_name);
//take the origin pic and make a new one by using Image Class to provent viruses
$img = Image::make(public_path() . '/images'.'/' . $image_name);
//resize the pic to 300 Width
$img->resize(300, null, function ($constraint) {
$constraint->aspectRatio();
});
//save the new pic and overWrite the pic
$img ->save(public_path() . '/images'.'/' . $image_name);
}
return $image_name;
}
}

View File

@ -0,0 +1,28 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}

View File

@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
//
}
}

View File

@ -0,0 +1,21 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Broadcast;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}

View File

@ -0,0 +1,32 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'App\Events\Event' => [
'App\Listeners\EventListener',
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}

View File

@ -0,0 +1,73 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
//
parent::boot();
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
//
}
/**
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}

160
app/User.php Normal file
View File

@ -0,0 +1,160 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB,Session, Hash , Image;
class User extends Model
{
static public function validate($request){
$valid = false;
$email = $request['email'];
$password = $request['password'];
$sql = "SELECT * FROM users u JOIN user_roles r ON u.id = r.uid WHERE u.email = ?";
$user = DB::select($sql,[$email]);
if($user){
$user = $user[0];
if (Hash::check( $password ,$user->password ) ) {
if ($user->role == 6) Session::put('is_admin' , true);
Session::put('user_id' , $user->id);
Session::put('user_name' , $user->name);
Session::flash('sm' , 'Welcome Back ' . $user->name);
$valid = true;
}else{
//Wrong Password
}
}else{
//User Not Found
}
return $valid;
}
static public function save_new($data){
$user = new self();
$user->name = $data['name'];
$user->email = $data['email'];
$user->password = bcrypt($data['password']);
$user->last_name = $data['last_name'];
$user->streetNum = $data['streetNum'];
$user ->city = $data['city'];
$user ->ZIP = $data['ZIP'];
$user->country = $data['country'];
$user->phone = $data['phone'];
$user ->profilePic = 'no_profile_pic.jpg';
$user->street = $data['street'];
$user ->state = $data['state'];
$user->save();
$uid = $user ->id;
DB::insert("INSERT INTO user_roles VALUES($uid,7)" );
Session::put('user_id' , $uid);
Session::put('user_name' , $data->name);
Session::flash('sm' , $data->name . ' Your account created , you\'re Now LogedIn ');
}
static public function getUserInfo(){
$sql = "SELECT * FROM users u WHERE u.id = ?";
$user = DB::select($sql , [Session::get('user_id')]);
return $user;
}
static public function updateUser($data){
$user = User::find(Session::get('user_id') );
$user ->name = $data['name'];
$user ->last_name = $data['last_name'];
$user ->streetNum = $data['streetNum'];
$user ->street = $data['street'];
$user ->city = $data['city'];
$user ->ZIP = $data['ZIP'];
$user ->country = $data['country'];
$user ->phone =$data['phone'];
Session::put('user_name' , $data['name']);
Session::flash('sm' , $data->name . ' Your account as Been Updated! ');
$user ->save();
}
static public function getPass($data){
$uid = Session::get('user_id');
$sql = "SELECT password FROM users u WHERE u.id = ? ";
$password_old = $data['password_old'];
$user_password = DB::select($sql,[$uid]);
if (Hash::check( $password_old , $user_password[0]->{'password'} ) ) {
$user = User::find(Session::get('user_id') );
$user ->password = bcrypt($data['password']);
$user ->save();
Session::flash('sm' , Session::get('user_name') . ' Your Password as Been Updated! ');
return true;
}else{
Session::flash('sm-error' , Session::get('user_name') . ' Please Enter your current Password ');
return false;
}
}
static public function getAllUsers(){
if(Session::get('is_admin') ){
$sql = "SELECT * FROM users u JOIN user_roles r ON u.id = r.uid";
return DB::select($sql , []);
}
}
static public function getUserInfoCms($uid){
if(is_numeric($uid)){
$sql = "SELECT * FROM users u WHERE u.id = ?";
return DB::select($sql , [$uid]);
}
}
static public function update_Pic($request , $id){
$image_name = self::loadImage($request);
//save the pic in the DB
$user = self::find($id);
if ($image_name) {
$user ->profilepic = $image_name;
}
$user ->save();
Session::flash('sm' , $user['name'].' Your Pic As been Updated!');
}
static private function loadImage($request){
$image_name = '';
if ($request->hasFile('image') && $request->file('image')->isValid()) {
//take the user pic to our server
$file = $request->file('image');
$image_name = date('Y.m.d.H.i.s') . '-' . $file->getClientOriginalName();
$request->file('image')->move( public_path() . '/images/profilePics' , $image_name);
//take the origin pic and make a new one by using Image Class to provent viruses
$img = Image::make(public_path() . '/images'.'/profilePics/' . $image_name);
//resize the pic to 300 Width
$img->resize(300, null, function ($constraint) {
$constraint->aspectRatio();
});
//save the new pic and overWrite the pic
$img ->save(public_path() . '/images'.'/profilePics/' . $image_name);
}
return $image_name;
}
static public function updateUserCms($request , $uid){
$user = User::find($uid);
$user ->name = $request['name'];
$user ->last_name = $request['last_name'];
$user ->streetNum = $request['streetNum'];
$user ->street = $request['street'];
$user ->city = $request['city'];
$user ->ZIP = $request['ZIP'];
$user ->country = $request['country'];
$user ->phone =$request['phone'];
Session::flash('sm' , $request->name . ' The account as Been Updated! ');
$user ->save();
}
}

14
app/sales_role.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB;
class sales_role extends Model
{
static public function getAll(){
$sql = "SELECT * FROM sales_roles";
$sales_role = DB::select($sql,[] );
return $sales_role;
}
}

53
artisan Normal file
View File

@ -0,0 +1,53 @@
#!/usr/bin/env php
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/
$kernel->terminate($input, $status);
exit($status);

55
bootstrap/app.php Normal file
View File

@ -0,0 +1,55 @@
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;

38
bootstrap/cache/packages.php vendored Normal file
View File

@ -0,0 +1,38 @@
<?php return array (
'fideloper/proxy' =>
array (
'providers' =>
array (
0 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
),
),
'laravel/tinker' =>
array (
'providers' =>
array (
0 => 'Laravel\\Tinker\\TinkerServiceProvider',
),
),
'darryldecode/cart' =>
array (
'providers' =>
array (
0 => 'Darryldecode\\Cart\\CartServiceProvider',
),
'aliases' =>
array (
'Cart' => 'Darryldecode\\Cart\\Facades\\CartFacade',
),
),
'intervention/image' =>
array (
'providers' =>
array (
0 => 'Intervention\\Image\\ImageServiceProvider',
),
'aliases' =>
array (
'Image' => 'Intervention\\Image\\Facades\\Image',
),
),
);

201
bootstrap/cache/services.php vendored Normal file
View File

@ -0,0 +1,201 @@
<?php return array (
'providers' =>
array (
0 => 'Illuminate\\Auth\\AuthServiceProvider',
1 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
2 => 'Illuminate\\Bus\\BusServiceProvider',
3 => 'Illuminate\\Cache\\CacheServiceProvider',
4 => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
5 => 'Illuminate\\Cookie\\CookieServiceProvider',
6 => 'Illuminate\\Database\\DatabaseServiceProvider',
7 => 'Illuminate\\Encryption\\EncryptionServiceProvider',
8 => 'Illuminate\\Filesystem\\FilesystemServiceProvider',
9 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider',
10 => 'Illuminate\\Hashing\\HashServiceProvider',
11 => 'Illuminate\\Mail\\MailServiceProvider',
12 => 'Illuminate\\Notifications\\NotificationServiceProvider',
13 => 'Illuminate\\Pagination\\PaginationServiceProvider',
14 => 'Illuminate\\Pipeline\\PipelineServiceProvider',
15 => 'Illuminate\\Queue\\QueueServiceProvider',
16 => 'Illuminate\\Redis\\RedisServiceProvider',
17 => 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider',
18 => 'Illuminate\\Session\\SessionServiceProvider',
19 => 'Illuminate\\Translation\\TranslationServiceProvider',
20 => 'Illuminate\\Validation\\ValidationServiceProvider',
21 => 'Illuminate\\View\\ViewServiceProvider',
22 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
23 => 'Laravel\\Tinker\\TinkerServiceProvider',
24 => 'Darryldecode\\Cart\\CartServiceProvider',
25 => 'Intervention\\Image\\ImageServiceProvider',
26 => 'Darryldecode\\Cart\\CartServiceProvider',
27 => 'Intervention\\Image\\ImageServiceProvider',
28 => 'App\\Providers\\AppServiceProvider',
29 => 'App\\Providers\\AuthServiceProvider',
30 => 'App\\Providers\\EventServiceProvider',
31 => 'App\\Providers\\RouteServiceProvider',
),
'eager' =>
array (
0 => 'Illuminate\\Auth\\AuthServiceProvider',
1 => 'Illuminate\\Cookie\\CookieServiceProvider',
2 => 'Illuminate\\Database\\DatabaseServiceProvider',
3 => 'Illuminate\\Encryption\\EncryptionServiceProvider',
4 => 'Illuminate\\Filesystem\\FilesystemServiceProvider',
5 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider',
6 => 'Illuminate\\Notifications\\NotificationServiceProvider',
7 => 'Illuminate\\Pagination\\PaginationServiceProvider',
8 => 'Illuminate\\Session\\SessionServiceProvider',
9 => 'Illuminate\\View\\ViewServiceProvider',
10 => 'Fideloper\\Proxy\\TrustedProxyServiceProvider',
11 => 'Darryldecode\\Cart\\CartServiceProvider',
12 => 'Intervention\\Image\\ImageServiceProvider',
13 => 'Darryldecode\\Cart\\CartServiceProvider',
14 => 'Intervention\\Image\\ImageServiceProvider',
15 => 'App\\Providers\\AppServiceProvider',
16 => 'App\\Providers\\AuthServiceProvider',
17 => 'App\\Providers\\EventServiceProvider',
18 => 'App\\Providers\\RouteServiceProvider',
),
'deferred' =>
array (
'Illuminate\\Broadcasting\\BroadcastManager' => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
'Illuminate\\Contracts\\Broadcasting\\Factory' => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
'Illuminate\\Contracts\\Broadcasting\\Broadcaster' => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
'Illuminate\\Bus\\Dispatcher' => 'Illuminate\\Bus\\BusServiceProvider',
'Illuminate\\Contracts\\Bus\\Dispatcher' => 'Illuminate\\Bus\\BusServiceProvider',
'Illuminate\\Contracts\\Bus\\QueueingDispatcher' => 'Illuminate\\Bus\\BusServiceProvider',
'cache' => 'Illuminate\\Cache\\CacheServiceProvider',
'cache.store' => 'Illuminate\\Cache\\CacheServiceProvider',
'memcached.connector' => 'Illuminate\\Cache\\CacheServiceProvider',
'command.cache.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.cache.forget' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.clear-compiled' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.auth.resets.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.config.cache' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.config.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.down' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.environment' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.key.generate' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.fresh' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.install' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.refresh' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.reset' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.rollback' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.status' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.optimize' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.package.discover' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.preset' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.failed' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.flush' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.forget' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.listen' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.restart' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.retry' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.work' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.route.cache' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.route.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.route.list' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.seed' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'Illuminate\\Console\\Scheduling\\ScheduleFinishCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'Illuminate\\Console\\Scheduling\\ScheduleRunCommand' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.storage.link' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.up' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.view.clear' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.app.name' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.auth.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.cache.table' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.console.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.controller.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.event.generate' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.event.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.exception.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.factory.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.job.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.listener.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.mail.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.middleware.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.migrate.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.model.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.notification.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.notification.table' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.policy.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.provider.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.failed-table' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.queue.table' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.request.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.resource.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.rule.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.seeder.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.session.table' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.serve' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.test.make' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'command.vendor.publish' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'migrator' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'migration.repository' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'migration.creator' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'composer' => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',
'hash' => 'Illuminate\\Hashing\\HashServiceProvider',
'mailer' => 'Illuminate\\Mail\\MailServiceProvider',
'swift.mailer' => 'Illuminate\\Mail\\MailServiceProvider',
'swift.transport' => 'Illuminate\\Mail\\MailServiceProvider',
'Illuminate\\Mail\\Markdown' => 'Illuminate\\Mail\\MailServiceProvider',
'Illuminate\\Contracts\\Pipeline\\Hub' => 'Illuminate\\Pipeline\\PipelineServiceProvider',
'queue' => 'Illuminate\\Queue\\QueueServiceProvider',
'queue.worker' => 'Illuminate\\Queue\\QueueServiceProvider',
'queue.listener' => 'Illuminate\\Queue\\QueueServiceProvider',
'queue.failer' => 'Illuminate\\Queue\\QueueServiceProvider',
'queue.connection' => 'Illuminate\\Queue\\QueueServiceProvider',
'redis' => 'Illuminate\\Redis\\RedisServiceProvider',
'redis.connection' => 'Illuminate\\Redis\\RedisServiceProvider',
'auth.password' => 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider',
'auth.password.broker' => 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider',
'translator' => 'Illuminate\\Translation\\TranslationServiceProvider',
'translation.loader' => 'Illuminate\\Translation\\TranslationServiceProvider',
'validator' => 'Illuminate\\Validation\\ValidationServiceProvider',
'validation.presence' => 'Illuminate\\Validation\\ValidationServiceProvider',
'command.tinker' => 'Laravel\\Tinker\\TinkerServiceProvider',
),
'when' =>
array (
'Illuminate\\Broadcasting\\BroadcastServiceProvider' =>
array (
),
'Illuminate\\Bus\\BusServiceProvider' =>
array (
),
'Illuminate\\Cache\\CacheServiceProvider' =>
array (
),
'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider' =>
array (
),
'Illuminate\\Hashing\\HashServiceProvider' =>
array (
),
'Illuminate\\Mail\\MailServiceProvider' =>
array (
),
'Illuminate\\Pipeline\\PipelineServiceProvider' =>
array (
),
'Illuminate\\Queue\\QueueServiceProvider' =>
array (
),
'Illuminate\\Redis\\RedisServiceProvider' =>
array (
),
'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider' =>
array (
),
'Illuminate\\Translation\\TranslationServiceProvider' =>
array (
),
'Illuminate\\Validation\\ValidationServiceProvider' =>
array (
),
'Laravel\\Tinker\\TinkerServiceProvider' =>
array (
),
),
);

58
composer.json Normal file
View File

@ -0,0 +1,58 @@
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"darryldecode/cart": "^3.0",
"fideloper/proxy": "~3.3",
"intervention/image": "^2.4",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}

4164
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

234
config/app.php Normal file
View File

@ -0,0 +1,234 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
|
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services your application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
'log' => env('APP_LOG', 'single'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Darryldecode\Cart\CartServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
/*
* Package Service Providers...
*/
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Cart' => Darryldecode\Cart\Facades\CartFacade::class,
'Image' => Intervention\Image\Facades\Image::class,
],
];

102
config/auth.php Normal file
View File

@ -0,0 +1,102 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
],
],
];

58
config/broadcasting.php Normal file
View File

@ -0,0 +1,58 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "redis", "log", "null"
|
*/
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
//
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];

94
config/cache.php Normal file
View File

@ -0,0 +1,94 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
| Supported: "apc", "array", "database", "file", "memcached", "redis"
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => env(
'CACHE_PREFIX',
str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
),
];

120
config/database.php Normal file
View File

@ -0,0 +1,120 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
];

68
config/filesystems.php Normal file
View File

@ -0,0 +1,68 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default' => env('FILESYSTEM_DRIVER', 'local'),
/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/
'cloud' => env('FILESYSTEM_CLOUD', 's3'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "s3", "rackspace"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
],
],
];

123
config/mail.php Normal file
View File

@ -0,0 +1,123 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
| "sparkpost", "log", "array"
|
*/
'driver' => env('MAIL_DRIVER', 'smtp'),
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/
'port' => env('MAIL_PORT', 587),
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/
'sendmail' => '/usr/sbin/sendmail -bs',
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];

85
config/queue.php Normal file
View File

@ -0,0 +1,85 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
| Supported: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'default' => env('QUEUE_DRIVER', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
],
'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
'region' => 'us-east-1',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'retry_after' => 90,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];

38
config/services.php Normal file
View File

@ -0,0 +1,38 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, SparkPost and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
],
'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => 'us-east-1',
],
'sparkpost' => [
'secret' => env('SPARKPOST_SECRET'),
],
'stripe' => [
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],
];

197
config/session.php Normal file
View File

@ -0,0 +1,197 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using the "apc" or "memcached" session drivers, you may specify a
| cache store that should be used for these sessions. This value must
| correspond with one of the application's configured cache stores.
|
*/
'store' => null,
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => env(
'SESSION_COOKIE',
str_slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => env('SESSION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE', false),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
'http_only' => true,
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| do not enable this as other CSRF protection services are in place.
|
| Supported: "lax", "strict"
|
*/
'same_site' => null,
];

33
config/view.php Normal file
View File

@ -0,0 +1,33 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => realpath(storage_path('framework/views')),
];

View File

@ -0,0 +1,25 @@
<?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/
$factory->define(App\User::class, function (Faker $faker) {
static $password;
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10),
];
});

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
}

View File

@ -0,0 +1,16 @@
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
}
}

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.17",
"bootstrap-sass": "^3.3.7",
"cross-env": "^5.1",
"jquery": "^3.2",
"laravel-mix": "^1.0",
"lodash": "^4.17.4",
"vue": "^2.5.7"
}
}

31
phpunit.xml Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>

9
public/css/app.css Normal file

File diff suppressed because one or more lines are too long

26
public/css/style.css Normal file
View File

@ -0,0 +1,26 @@
li.welcome:hover{
color: #633b70;
}
.error{
color:red;
}
nav.navbar-expand-lg{
position:fixed;
width: 100%;
z-index: 999;
background-color: gray;
/* background-color: #E6E6E6; */
/* opacity: 0.9; */
}
nav.navbar-expand-lg ul li a{
color: black;
}
.container{
padding-top: 80px;
}
.nav-item{
color: white;
}

0
public/favicon.ico Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
public/images/FirstPic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

BIN
public/images/R2C2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

BIN
public/images/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
public/images/noimage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
public/images/secondPic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Some files were not shown because too many files have changed in this diff Show More