├── public ├── favicon.ico ├── robots.txt ├── app │ ├── img │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── eye.png │ │ ├── ppc.png │ │ ├── amex.png │ │ ├── book1.png │ │ ├── book2.png │ │ ├── book3.png │ │ ├── book4.png │ │ ├── book5.png │ │ ├── book6.png │ │ ├── book7.png │ │ ├── book8.png │ │ ├── book9.png │ │ ├── case1.jpg │ │ ├── case2.jpg │ │ ├── case3.jpg │ │ ├── case4.jpg │ │ ├── case5.jpg │ │ ├── case6.jpg │ │ ├── case7.jpg │ │ ├── case8.jpg │ │ ├── post1.jpg │ │ ├── post2.jpg │ │ ├── post3.jpg │ │ ├── post4.jpg │ │ ├── visa.png │ │ ├── 404-img.png │ │ ├── analysis.jpg │ │ ├── avatar.png │ │ ├── avatar1.png │ │ ├── avatar2.png │ │ ├── avatar3.png │ │ ├── avatar4.png │ │ ├── avatar5.png │ │ ├── avatar6.png │ │ ├── avatar7.png │ │ ├── avatar9.png │ │ ├── contact4.png │ │ ├── contact5.png │ │ ├── contact6.png │ │ ├── contact7.png │ │ ├── contact8.png │ │ ├── contact9.png │ │ ├── discover.png │ │ ├── elements.png │ │ ├── logo-eye.png │ │ ├── mac-book.png │ │ ├── menu-bg.png │ │ ├── offers1.png │ │ ├── pay-pal.png │ │ ├── pricing1.png │ │ ├── pricing2.png │ │ ├── pricing3.png │ │ ├── profit.png │ │ ├── request.png │ │ ├── slider1.png │ │ ├── slider2.png │ │ ├── slider3.png │ │ ├── slider4.png │ │ ├── slider5.png │ │ ├── subscr1.png │ │ ├── video2.png │ │ ├── avatar-bg.png │ │ ├── features1.png │ │ ├── features2.png │ │ ├── features3.png │ │ ├── features4.png │ │ ├── features5.png │ │ ├── features6.png │ │ ├── info-box1.png │ │ ├── info-box10.png │ │ ├── info-box11.png │ │ ├── info-box12.png │ │ ├── info-box13.png │ │ ├── info-box14.png │ │ ├── info-box15.png │ │ ├── info-box16.png │ │ ├── info-box17.png │ │ ├── info-box18.png │ │ ├── info-box19.png │ │ ├── info-box2.png │ │ ├── info-box20.png │ │ ├── info-box21.png │ │ ├── info-box22.png │ │ ├── info-box23.png │ │ ├── info-box24.png │ │ ├── info-box25.png │ │ ├── info-box26.png │ │ ├── info-box27.png │ │ ├── info-box28.png │ │ ├── info-box3.png │ │ ├── info-box4.png │ │ ├── info-box5.png │ │ ├── info-box6.png │ │ ├── info-box7.png │ │ ├── info-box8.png │ │ ├── info-box9.png │ │ ├── local-seo1.jpg │ │ ├── local-seo2.jpg │ │ ├── local-seo3.jpg │ │ ├── marketing.png │ │ ├── mastercard.png │ │ ├── mountain1.png │ │ ├── mountain2.png │ │ ├── seoscore1.png │ │ ├── seoscore2.png │ │ ├── seoscore3.png │ │ ├── services1.png │ │ ├── services2.png │ │ ├── services3.png │ │ ├── services4.png │ │ ├── services5.png │ │ ├── solutions.jpg │ │ ├── bg-boxed-blue.jpg │ │ ├── bg-boxed-dark.jpg │ │ ├── bg-boxed-red.jpg │ │ ├── blog-details.jpg │ │ ├── cart-product4.png │ │ ├── cart-product5.png │ │ ├── cart-product6.png │ │ ├── client-white1.png │ │ ├── client-white2.png │ │ ├── client-white3.png │ │ ├── client-white4.png │ │ ├── client-white5.png │ │ ├── client-white6.png │ │ ├── client1-hover.png │ │ ├── client2-hover.png │ │ ├── client3-hover.png │ │ ├── client4-hover.png │ │ ├── client5-hover.png │ │ ├── client6-hover.png │ │ ├── description1.jpg │ │ ├── google-logo.png │ │ ├── post-author1.png │ │ ├── post-author2.png │ │ ├── post-author3.png │ │ ├── pricing-dots.png │ │ ├── results-ver2.png │ │ ├── seo-analysis.png │ │ ├── slider-photo1.jpg │ │ ├── slider-photo2.jpg │ │ ├── slider-photo3.jpg │ │ ├── slider-photo4.jpg │ │ ├── slider-photo5.jpg │ │ ├── social-photo.png │ │ ├── social-photo2.png │ │ ├── subscr-gear.png │ │ ├── teammember1.png │ │ ├── teammember2.png │ │ ├── teammember3.png │ │ ├── teammember4.png │ │ ├── testimonial1.png │ │ ├── testimonial2.png │ │ ├── video-format.png │ │ ├── bg-boxed-black.jpg │ │ ├── bg-boxed-light.jpg │ │ ├── description-mac.png │ │ ├── load-more-arrow.png │ │ ├── load-more-line.png │ │ ├── local-seo-main.jpg │ │ ├── pattern-bg-blue.jpg │ │ ├── pattern-bg-gray.jpg │ │ ├── pattern-bg-lime.jpg │ │ ├── pattern-bg-red.jpg │ │ ├── pattern-bg-rose.jpg │ │ ├── photo-elements1.jpg │ │ ├── photo-elements2.jpg │ │ ├── photo-elements3.jpg │ │ ├── photo-elements4.jpg │ │ ├── photo-elements5.jpg │ │ ├── product-details.png │ │ ├── reviews-avatar1.png │ │ ├── reviews-avatar2.png │ │ ├── reviews-avatar3.png │ │ ├── subscr-mailopen.png │ │ ├── time-line-thumb.png │ │ ├── avatar-b-details.png │ │ ├── background-element.png │ │ ├── bg-boxed-primary.jpg │ │ ├── pattern-bg-breez.jpg │ │ ├── pattern-bg-brown.jpg │ │ ├── pattern-bg-green.jpg │ │ ├── pattern-bg-olive.jpg │ │ ├── pattern-bg-orange.jpg │ │ ├── pattern-bg-violet.jpg │ │ ├── product-solution.png │ │ ├── blog-details-author.png │ │ ├── pattern-bg-lightblue.jpg │ │ ├── pattern-bg-lightgray.jpg │ │ ├── testimonial-author1.jpg │ │ ├── testimonial-author2.jpg │ │ ├── pattern-bg-lightviolet.jpg │ │ ├── stunning-header-photo1.jpg │ │ ├── stunning-header-photo2.jpg │ │ ├── stunning-header-photo3.jpg │ │ ├── stunning-header-photo4.jpg │ │ ├── stunning-header-photo5.jpg │ │ └── stunning-header-photo6.jpg │ ├── fonts │ │ ├── seosightbe82.ttf │ │ ├── seosightbe82.woff │ │ ├── fontawesome-webfont3295.eot │ │ ├── fontawesome-webfont3295.ttf │ │ ├── fontawesome-webfontd41d.eot │ │ ├── fontawesome-webfont3295.woff │ │ └── fontawesome-webfont3295.woff2 │ ├── css │ │ ├── mCSB_buttons.html │ │ └── custom-styles.css │ ├── svg │ │ ├── circle-facebook.svg │ │ ├── twitter.svg │ │ ├── youtube.svg │ │ ├── rss.svg │ │ ├── video-control.svg │ │ └── google.svg │ └── js │ │ ├── donut-chart.js │ │ ├── animation.velocity.min.js │ │ └── ajax-pagination.js ├── design │ ├── post.jpg │ └── user.jpg ├── .htaccess └── index.php ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ └── CategorySeeder.php ├── migrations │ ├── 2018_10_02_184127_create_tags_table.php │ ├── 2018_10_02_134400_create_categories_table.php │ ├── 2018_10_02_184136_post_tag.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2018_10_03_120455_create_profiles_table.php │ ├── 2018_10_03_152556_create_settings_table.php │ ├── 2014_10_12_000000_create_users_table.php │ └── 2018_10_02_134354_create_posts_table.php └── factories │ └── ModelFactory.php ├── resources ├── views │ ├── layouts │ │ ├── menu.blade.php │ │ ├── app.blade.php │ │ ├── partials │ │ │ ├── disqus.blade.php │ │ │ ├── posts_by_category.blade.php │ │ │ └── subscribe_form.blade.php │ │ ├── header.blade.php │ │ └── navbar.blade.php │ ├── admin │ │ ├── layouts │ │ │ └── message.blade.php │ │ ├── tags │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── categories │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── users │ │ │ ├── create.blade.php │ │ │ ├── index.blade.php │ │ │ └── profile.blade.php │ │ ├── home.blade.php │ │ ├── posts │ │ │ ├── index.blade.php │ │ │ ├── trashed.blade.php │ │ │ ├── edit.blade.php │ │ │ └── create.blade.php │ │ └── settings │ │ │ └── index.blade.php │ ├── welcome.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ └── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ ├── tag.blade.php │ ├── search.blade.php │ └── category.blade.php ├── sass │ ├── app.scss │ └── _variables.scss ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ └── passwords.php └── js │ ├── components │ └── ExampleComponent.vue │ ├── app.js │ └── bootstrap.js ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore ├── debugbar │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── .gitattributes ├── app ├── Setting.php ├── Profile.php ├── Http │ ├── helper.php │ ├── Controllers │ │ ├── TagsController.php │ │ ├── FrontendController.php │ │ ├── Controller.php │ │ ├── SearchController.php │ │ ├── Admin │ │ │ ├── SettingsController.php │ │ │ ├── UsersController.php │ │ │ ├── TagsController.php │ │ │ └── CategoriesController.php │ │ ├── HomeController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ └── ProfilesController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── Admin.php │ │ ├── Authenticate.php │ │ ├── TrustProxies.php │ │ ├── VerifyCsrfToken.php │ │ └── RedirectIfAuthenticated.php │ ├── Requests │ │ └── StorePostForm.php │ └── Kernel.php ├── Upload │ └── Upload.php ├── Tag.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── AppServiceProvider.php │ └── RouteServiceProvider.php ├── Category.php ├── Console │ └── Kernel.php ├── Queries │ └── PostQuery.php ├── Exceptions │ └── Handler.php ├── User.php └── Post.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .editorconfig ├── README.md ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── .env.example ├── package.json ├── config ├── view.php ├── newsletter.php ├── services.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── logging.php ├── queue.php ├── cache.php └── auth.php ├── phpunit.xml ├── artisan └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /resources/views/layouts/menu.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/app/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/1.png -------------------------------------------------------------------------------- /public/app/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/2.png -------------------------------------------------------------------------------- /public/app/img/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/3.jpg -------------------------------------------------------------------------------- /public/app/img/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/4.jpg -------------------------------------------------------------------------------- /public/app/img/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/5.jpg -------------------------------------------------------------------------------- /public/app/img/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/6.jpg -------------------------------------------------------------------------------- /public/app/img/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/eye.png -------------------------------------------------------------------------------- /public/app/img/ppc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/ppc.png -------------------------------------------------------------------------------- /public/design/post.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/design/post.jpg -------------------------------------------------------------------------------- /public/design/user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/design/user.jpg -------------------------------------------------------------------------------- /public/app/img/amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/amex.png -------------------------------------------------------------------------------- /public/app/img/book1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book1.png -------------------------------------------------------------------------------- /public/app/img/book2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book2.png -------------------------------------------------------------------------------- /public/app/img/book3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book3.png -------------------------------------------------------------------------------- /public/app/img/book4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book4.png -------------------------------------------------------------------------------- /public/app/img/book5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book5.png -------------------------------------------------------------------------------- /public/app/img/book6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book6.png -------------------------------------------------------------------------------- /public/app/img/book7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book7.png -------------------------------------------------------------------------------- /public/app/img/book8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book8.png -------------------------------------------------------------------------------- /public/app/img/book9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/book9.png -------------------------------------------------------------------------------- /public/app/img/case1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case1.jpg -------------------------------------------------------------------------------- /public/app/img/case2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case2.jpg -------------------------------------------------------------------------------- /public/app/img/case3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case3.jpg -------------------------------------------------------------------------------- /public/app/img/case4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case4.jpg -------------------------------------------------------------------------------- /public/app/img/case5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case5.jpg -------------------------------------------------------------------------------- /public/app/img/case6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case6.jpg -------------------------------------------------------------------------------- /public/app/img/case7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case7.jpg -------------------------------------------------------------------------------- /public/app/img/case8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/case8.jpg -------------------------------------------------------------------------------- /public/app/img/post1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post1.jpg -------------------------------------------------------------------------------- /public/app/img/post2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post2.jpg -------------------------------------------------------------------------------- /public/app/img/post3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post3.jpg -------------------------------------------------------------------------------- /public/app/img/post4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post4.jpg -------------------------------------------------------------------------------- /public/app/img/visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/visa.png -------------------------------------------------------------------------------- /public/app/img/404-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/404-img.png -------------------------------------------------------------------------------- /public/app/img/analysis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/analysis.jpg -------------------------------------------------------------------------------- /public/app/img/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar.png -------------------------------------------------------------------------------- /public/app/img/avatar1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar1.png -------------------------------------------------------------------------------- /public/app/img/avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar2.png -------------------------------------------------------------------------------- /public/app/img/avatar3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar3.png -------------------------------------------------------------------------------- /public/app/img/avatar4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar4.png -------------------------------------------------------------------------------- /public/app/img/avatar5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar5.png -------------------------------------------------------------------------------- /public/app/img/avatar6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar6.png -------------------------------------------------------------------------------- /public/app/img/avatar7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar7.png -------------------------------------------------------------------------------- /public/app/img/avatar9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar9.png -------------------------------------------------------------------------------- /public/app/img/contact4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact4.png -------------------------------------------------------------------------------- /public/app/img/contact5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact5.png -------------------------------------------------------------------------------- /public/app/img/contact6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact6.png -------------------------------------------------------------------------------- /public/app/img/contact7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact7.png -------------------------------------------------------------------------------- /public/app/img/contact8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact8.png -------------------------------------------------------------------------------- /public/app/img/contact9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/contact9.png -------------------------------------------------------------------------------- /public/app/img/discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/discover.png -------------------------------------------------------------------------------- /public/app/img/elements.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/elements.png -------------------------------------------------------------------------------- /public/app/img/logo-eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/logo-eye.png -------------------------------------------------------------------------------- /public/app/img/mac-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/mac-book.png -------------------------------------------------------------------------------- /public/app/img/menu-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/menu-bg.png -------------------------------------------------------------------------------- /public/app/img/offers1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/offers1.png -------------------------------------------------------------------------------- /public/app/img/pay-pal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pay-pal.png -------------------------------------------------------------------------------- /public/app/img/pricing1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pricing1.png -------------------------------------------------------------------------------- /public/app/img/pricing2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pricing2.png -------------------------------------------------------------------------------- /public/app/img/pricing3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pricing3.png -------------------------------------------------------------------------------- /public/app/img/profit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/profit.png -------------------------------------------------------------------------------- /public/app/img/request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/request.png -------------------------------------------------------------------------------- /public/app/img/slider1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider1.png -------------------------------------------------------------------------------- /public/app/img/slider2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider2.png -------------------------------------------------------------------------------- /public/app/img/slider3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider3.png -------------------------------------------------------------------------------- /public/app/img/slider4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider4.png -------------------------------------------------------------------------------- /public/app/img/slider5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider5.png -------------------------------------------------------------------------------- /public/app/img/subscr1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/subscr1.png -------------------------------------------------------------------------------- /public/app/img/video2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/video2.png -------------------------------------------------------------------------------- /public/app/img/avatar-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar-bg.png -------------------------------------------------------------------------------- /public/app/img/features1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features1.png -------------------------------------------------------------------------------- /public/app/img/features2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features2.png -------------------------------------------------------------------------------- /public/app/img/features3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features3.png -------------------------------------------------------------------------------- /public/app/img/features4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features4.png -------------------------------------------------------------------------------- /public/app/img/features5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features5.png -------------------------------------------------------------------------------- /public/app/img/features6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/features6.png -------------------------------------------------------------------------------- /public/app/img/info-box1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box1.png -------------------------------------------------------------------------------- /public/app/img/info-box10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box10.png -------------------------------------------------------------------------------- /public/app/img/info-box11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box11.png -------------------------------------------------------------------------------- /public/app/img/info-box12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box12.png -------------------------------------------------------------------------------- /public/app/img/info-box13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box13.png -------------------------------------------------------------------------------- /public/app/img/info-box14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box14.png -------------------------------------------------------------------------------- /public/app/img/info-box15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box15.png -------------------------------------------------------------------------------- /public/app/img/info-box16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box16.png -------------------------------------------------------------------------------- /public/app/img/info-box17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box17.png -------------------------------------------------------------------------------- /public/app/img/info-box18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box18.png -------------------------------------------------------------------------------- /public/app/img/info-box19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box19.png -------------------------------------------------------------------------------- /public/app/img/info-box2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box2.png -------------------------------------------------------------------------------- /public/app/img/info-box20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box20.png -------------------------------------------------------------------------------- /public/app/img/info-box21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box21.png -------------------------------------------------------------------------------- /public/app/img/info-box22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box22.png -------------------------------------------------------------------------------- /public/app/img/info-box23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box23.png -------------------------------------------------------------------------------- /public/app/img/info-box24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box24.png -------------------------------------------------------------------------------- /public/app/img/info-box25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box25.png -------------------------------------------------------------------------------- /public/app/img/info-box26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box26.png -------------------------------------------------------------------------------- /public/app/img/info-box27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box27.png -------------------------------------------------------------------------------- /public/app/img/info-box28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box28.png -------------------------------------------------------------------------------- /public/app/img/info-box3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box3.png -------------------------------------------------------------------------------- /public/app/img/info-box4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box4.png -------------------------------------------------------------------------------- /public/app/img/info-box5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box5.png -------------------------------------------------------------------------------- /public/app/img/info-box6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box6.png -------------------------------------------------------------------------------- /public/app/img/info-box7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box7.png -------------------------------------------------------------------------------- /public/app/img/info-box8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box8.png -------------------------------------------------------------------------------- /public/app/img/info-box9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/info-box9.png -------------------------------------------------------------------------------- /public/app/img/local-seo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/local-seo1.jpg -------------------------------------------------------------------------------- /public/app/img/local-seo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/local-seo2.jpg -------------------------------------------------------------------------------- /public/app/img/local-seo3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/local-seo3.jpg -------------------------------------------------------------------------------- /public/app/img/marketing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/marketing.png -------------------------------------------------------------------------------- /public/app/img/mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/mastercard.png -------------------------------------------------------------------------------- /public/app/img/mountain1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/mountain1.png -------------------------------------------------------------------------------- /public/app/img/mountain2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/mountain2.png -------------------------------------------------------------------------------- /public/app/img/seoscore1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/seoscore1.png -------------------------------------------------------------------------------- /public/app/img/seoscore2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/seoscore2.png -------------------------------------------------------------------------------- /public/app/img/seoscore3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/seoscore3.png -------------------------------------------------------------------------------- /public/app/img/services1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/services1.png -------------------------------------------------------------------------------- /public/app/img/services2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/services2.png -------------------------------------------------------------------------------- /public/app/img/services3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/services3.png -------------------------------------------------------------------------------- /public/app/img/services4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/services4.png -------------------------------------------------------------------------------- /public/app/img/services5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/services5.png -------------------------------------------------------------------------------- /public/app/img/solutions.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/solutions.jpg -------------------------------------------------------------------------------- /public/app/img/bg-boxed-blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-blue.jpg -------------------------------------------------------------------------------- /public/app/img/bg-boxed-dark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-dark.jpg -------------------------------------------------------------------------------- /public/app/img/bg-boxed-red.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-red.jpg -------------------------------------------------------------------------------- /public/app/img/blog-details.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/blog-details.jpg -------------------------------------------------------------------------------- /public/app/img/cart-product4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/cart-product4.png -------------------------------------------------------------------------------- /public/app/img/cart-product5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/cart-product5.png -------------------------------------------------------------------------------- /public/app/img/cart-product6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/cart-product6.png -------------------------------------------------------------------------------- /public/app/img/client-white1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white1.png -------------------------------------------------------------------------------- /public/app/img/client-white2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white2.png -------------------------------------------------------------------------------- /public/app/img/client-white3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white3.png -------------------------------------------------------------------------------- /public/app/img/client-white4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white4.png -------------------------------------------------------------------------------- /public/app/img/client-white5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white5.png -------------------------------------------------------------------------------- /public/app/img/client-white6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client-white6.png -------------------------------------------------------------------------------- /public/app/img/client1-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client1-hover.png -------------------------------------------------------------------------------- /public/app/img/client2-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client2-hover.png -------------------------------------------------------------------------------- /public/app/img/client3-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client3-hover.png -------------------------------------------------------------------------------- /public/app/img/client4-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client4-hover.png -------------------------------------------------------------------------------- /public/app/img/client5-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client5-hover.png -------------------------------------------------------------------------------- /public/app/img/client6-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/client6-hover.png -------------------------------------------------------------------------------- /public/app/img/description1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/description1.jpg -------------------------------------------------------------------------------- /public/app/img/google-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/google-logo.png -------------------------------------------------------------------------------- /public/app/img/post-author1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post-author1.png -------------------------------------------------------------------------------- /public/app/img/post-author2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post-author2.png -------------------------------------------------------------------------------- /public/app/img/post-author3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/post-author3.png -------------------------------------------------------------------------------- /public/app/img/pricing-dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pricing-dots.png -------------------------------------------------------------------------------- /public/app/img/results-ver2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/results-ver2.png -------------------------------------------------------------------------------- /public/app/img/seo-analysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/seo-analysis.png -------------------------------------------------------------------------------- /public/app/img/slider-photo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider-photo1.jpg -------------------------------------------------------------------------------- /public/app/img/slider-photo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider-photo2.jpg -------------------------------------------------------------------------------- /public/app/img/slider-photo3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider-photo3.jpg -------------------------------------------------------------------------------- /public/app/img/slider-photo4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider-photo4.jpg -------------------------------------------------------------------------------- /public/app/img/slider-photo5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/slider-photo5.jpg -------------------------------------------------------------------------------- /public/app/img/social-photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/social-photo.png -------------------------------------------------------------------------------- /public/app/img/social-photo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/social-photo2.png -------------------------------------------------------------------------------- /public/app/img/subscr-gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/subscr-gear.png -------------------------------------------------------------------------------- /public/app/img/teammember1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/teammember1.png -------------------------------------------------------------------------------- /public/app/img/teammember2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/teammember2.png -------------------------------------------------------------------------------- /public/app/img/teammember3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/teammember3.png -------------------------------------------------------------------------------- /public/app/img/teammember4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/teammember4.png -------------------------------------------------------------------------------- /public/app/img/testimonial1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/testimonial1.png -------------------------------------------------------------------------------- /public/app/img/testimonial2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/testimonial2.png -------------------------------------------------------------------------------- /public/app/img/video-format.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/video-format.png -------------------------------------------------------------------------------- /public/app/fonts/seosightbe82.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/seosightbe82.ttf -------------------------------------------------------------------------------- /public/app/fonts/seosightbe82.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/seosightbe82.woff -------------------------------------------------------------------------------- /public/app/img/bg-boxed-black.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-black.jpg -------------------------------------------------------------------------------- /public/app/img/bg-boxed-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-light.jpg -------------------------------------------------------------------------------- /public/app/img/description-mac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/description-mac.png -------------------------------------------------------------------------------- /public/app/img/load-more-arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/load-more-arrow.png -------------------------------------------------------------------------------- /public/app/img/load-more-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/load-more-line.png -------------------------------------------------------------------------------- /public/app/img/local-seo-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/local-seo-main.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-blue.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-gray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-gray.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-lime.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-lime.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-red.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-red.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-rose.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-rose.jpg -------------------------------------------------------------------------------- /public/app/img/photo-elements1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/photo-elements1.jpg -------------------------------------------------------------------------------- /public/app/img/photo-elements2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/photo-elements2.jpg -------------------------------------------------------------------------------- /public/app/img/photo-elements3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/photo-elements3.jpg -------------------------------------------------------------------------------- /public/app/img/photo-elements4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/photo-elements4.jpg -------------------------------------------------------------------------------- /public/app/img/photo-elements5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/photo-elements5.jpg -------------------------------------------------------------------------------- /public/app/img/product-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/product-details.png -------------------------------------------------------------------------------- /public/app/img/reviews-avatar1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/reviews-avatar1.png -------------------------------------------------------------------------------- /public/app/img/reviews-avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/reviews-avatar2.png -------------------------------------------------------------------------------- /public/app/img/reviews-avatar3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/reviews-avatar3.png -------------------------------------------------------------------------------- /public/app/img/subscr-mailopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/subscr-mailopen.png -------------------------------------------------------------------------------- /public/app/img/time-line-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/time-line-thumb.png -------------------------------------------------------------------------------- /public/app/img/avatar-b-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/avatar-b-details.png -------------------------------------------------------------------------------- /public/app/img/background-element.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/background-element.png -------------------------------------------------------------------------------- /public/app/img/bg-boxed-primary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/bg-boxed-primary.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-breez.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-breez.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-brown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-brown.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-green.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-green.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-olive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-olive.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-orange.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-orange.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-violet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-violet.jpg -------------------------------------------------------------------------------- /public/app/img/product-solution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/product-solution.png -------------------------------------------------------------------------------- /public/app/img/blog-details-author.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/blog-details-author.png -------------------------------------------------------------------------------- /public/app/img/pattern-bg-lightblue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-lightblue.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-lightgray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-lightgray.jpg -------------------------------------------------------------------------------- /public/app/img/testimonial-author1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/testimonial-author1.jpg -------------------------------------------------------------------------------- /public/app/img/testimonial-author2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/testimonial-author2.jpg -------------------------------------------------------------------------------- /public/app/img/pattern-bg-lightviolet.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/pattern-bg-lightviolet.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo1.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo2.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo3.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo4.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo5.jpg -------------------------------------------------------------------------------- /public/app/img/stunning-header-photo6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/img/stunning-header-photo6.jpg -------------------------------------------------------------------------------- /public/app/fonts/fontawesome-webfont3295.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/fontawesome-webfont3295.eot -------------------------------------------------------------------------------- /public/app/fonts/fontawesome-webfont3295.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/fontawesome-webfont3295.ttf -------------------------------------------------------------------------------- /public/app/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /public/app/fonts/fontawesome-webfont3295.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/fontawesome-webfont3295.woff -------------------------------------------------------------------------------- /public/app/fonts/fontawesome-webfont3295.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theafaid/Engr/HEAD/public/app/fonts/fontawesome-webfont3295.woff2 -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /app/Setting.php: -------------------------------------------------------------------------------- 1 | 3 | @include('layouts.navbar') 4 | @yield('content') 5 | @include('layouts.partials.subscribe_form') 6 | 7 | @include('layouts.footer'); -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | /.idea 7 | /.vscode 8 | /.vagrant 9 | Homestead.json 10 | Homestead.yaml 11 | npm-debug.log 12 | yarn-error.log 13 | .env 14 | .phpunit.result.cache 15 | -------------------------------------------------------------------------------- /app/Http/helper.php: -------------------------------------------------------------------------------- 1 | hasFile($file)){ 7 | return request()->file($file)->store($place); 8 | } 9 | return null; 10 | } 11 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.yml] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Engr 2 | Engr is a simple blog application for sharing informations & knowledge between engineers . 3 | it created using Php(Laravel) 4 | 5 | How to use Engr ? 6 | 7 | * Download the project 8 | * Run composer install 9 | * Configure the .env file 10 | * You are done :) 11 | -------------------------------------------------------------------------------- /app/Http/Controllers/TagsController.php: -------------------------------------------------------------------------------- 1 | $tag->name, 12 | 'posts' => $tag->posts 13 | ]); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | 2 | // Fonts 3 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 4 | 5 | // Variables 6 | @import 'variables'; 7 | 8 | // Bootstrap 9 | @import '~bootstrap/scss/bootstrap'; 10 | 11 | .navbar-laravel { 12 | background-color: #fff; 13 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); 14 | } 15 | -------------------------------------------------------------------------------- /app/Http/Controllers/FrontendController.php: -------------------------------------------------------------------------------- 1 | \App\Post::withoutGlobalScope('user')->latest()->take(3)->get() 10 | ]); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/Tag.php: -------------------------------------------------------------------------------- 1 | belongsToMany('App\Post'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /public/app/css/mCSB_buttons.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 404 Not Found 4 | 5 |

Not Found

6 |

The requested URL /html-seosight/css/mCSB_buttons.png was not found on this server.

7 |
8 |
Apache/2.2.27 (CentOS) Server at theme.crumina.net Port 80
9 | 10 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f8fafc; 4 | 5 | // Typography 6 | $font-family-sans-serif: "Nunito", sans-serif; 7 | $font-size-base: 0.9rem; 8 | $line-height-base: 1.6; 9 | 10 | // Colors 11 | $blue: #3490dc; 12 | $indigo: #6574cd; 13 | $purple: #9561e2; 14 | $pink: #f66D9b; 15 | $red: #e3342f; 16 | $orange: #f6993f; 17 | $yellow: #ffed4a; 18 | $green: #38c172; 19 | $teal: #4dc0b5; 20 | $cyan: #6cb2eb; 21 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | has('q')){ 10 | return view('search', [ 11 | 'name' => request('q'), 12 | 'posts' => Post::where('title', 'like', "%".request('q')."%")->get(), 13 | ]); 14 | } 15 | 16 | return abort(404); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/Admin.php: -------------------------------------------------------------------------------- 1 | user()->admin == false) return abort(403); 19 | return $next($request); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | has('success')) 2 |
3 | {{ session()->get('success') }} 4 |
5 | @endif 6 | 7 | @if(session()->has('error')) 8 |
9 | {{ session()->get('error') }} 10 |
11 | @endif 12 | 13 | @if(count($errors)) 14 |
15 |
16 | @foreach($errors->all() as $err) 17 |
  • {{ $err }}
  • 18 | @endforeach 19 |
    20 |
    21 | @endif -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
    7 | @include('layouts.partials.latest_posts_lists') 8 |
    9 | 10 | 11 |
    12 |
    13 |
    14 |
    15 | @include('layouts.partials.posts_by_category') 16 |
    17 |
    18 |
    19 |
    20 | @endsection -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 15 | $this->call(CategorySeeder::class); 16 | factory(App\User::class, 1)->create(); 17 | factory(App\Post::class, 100)->create(); 18 | factory(App\Tag::class, 20)->create(); 19 | \Artisan::call('cache:clear'); 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /public/app/css/custom-styles.css: -------------------------------------------------------------------------------- 1 | .container-custom{ 2 | display: table-cell; 3 | padding: 0px 73px; 4 | height: 80px; 5 | vertical-align: middle; 6 | } 7 | .container-custom p{ 8 | display: inline-block; 9 | } 10 | .site-custom-logo{ 11 | height: 60px; 12 | border: 1px solid purple; 13 | width: 260px; 14 | display: inline-block; 15 | } 16 | .site-custom-search{ 17 | height: 60px; 18 | border: 1px solid purple; 19 | width: 260px; 20 | display: inline-block; 21 | } 22 | #custom-search{ 23 | width: 700px; 24 | } 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/views/admin/tags/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 | 5 |
    Create a new tag
    6 |
    7 |
    8 | @csrf 9 |
    10 | Tag Name 11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 |
    18 |
    19 | @endsection -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /app/Category.php: -------------------------------------------------------------------------------- 1 | posts->each->forceDelete(); 14 | }); 15 | 16 | } 17 | public function path(){ 18 | return "/category/{$this->slug}/posts"; 19 | } 20 | public function getRouteKeyName(){ 21 | return 'slug'; 22 | } 23 | public function posts(){ 24 | return $this->hasMany('App\Post'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /resources/views/layouts/partials/disqus.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | 15 | 16 | -------------------------------------------------------------------------------- /resources/views/admin/categories/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 | 5 |
    Create a new post
    6 |
    7 |
    8 | @csrf 9 |
    10 | Category Name 11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 |
    18 |
    19 | @endsection -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/admin/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/admin/tags/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 |
    Edit a tag
    5 |
    6 |
    7 | @csrf 8 | {{ method_field('PATCH') }} 9 |
    10 | Category Name 11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 |
    18 |
    19 | @endsection -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /public/app/svg/circle-facebook.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | window.Vue = require('vue'); 11 | 12 | /** 13 | * Next, we will create a fresh Vue application instance and attach it to 14 | * the page. Then, you may begin adding components to this application 15 | * or customize the JavaScript scaffolding to fit your unique needs. 16 | */ 17 | 18 | Vue.component('example-component', require('./components/ExampleComponent.vue')); 19 | 20 | const app = new Vue({ 21 | el: '#app' 22 | }); 23 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/views/admin/categories/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 |
    Create a new post
    5 |
    6 |
    7 | @csrf 8 | {{ method_field('PATCH') }} 9 |
    10 | Category Name 11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 |
    18 |
    19 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/SettingsController.php: -------------------------------------------------------------------------------- 1 | validate([ 15 | 'site_name' => 'string|required|max:255', 16 | 'contact_number'=> 'string|max:13|required', 17 | 'contact_email' => 'string|email|max:255|required', 18 | 'address' => 'string|max:255|required' 19 | ]); 20 | 21 | Setting::first()->update($data); 22 | session()->flash('success', 'Settings Updated Successfully'); 23 | return back(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /database/migrations/2018_10_02_184127_create_tags_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('tags'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=homestead 13 | DB_USERNAME=homestead 14 | DB_PASSWORD=secret 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | 33 | PUSHER_APP_ID= 34 | PUSHER_APP_KEY= 35 | PUSHER_APP_SECRET= 36 | PUSHER_APP_CLUSTER=mt1 37 | 38 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 39 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 40 | -------------------------------------------------------------------------------- /database/migrations/2018_10_02_134400_create_categories_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('slug'); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('categories'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2018_10_02_184136_post_tag.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('post_id'); 19 | $table->integer('tag_id'); 20 | // $table->primary(['post_id', 'slug_id']); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /app/Http/Requests/StorePostForm.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'body' => 'required|string|max:20000', 29 | 'category' => 'required|string|exists:categories,slug', 30 | 'image' => 'sometimes|nullable|image|mimes:jpg,jpeg,png', 31 | 'tags' => 'min:1|array|exists:tags,id' 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 15 | } 16 | 17 | /** 18 | * Show the application dashboard. 19 | * 20 | * @return \Illuminate\Http\Response 21 | */ 22 | public function index() 23 | { 24 | $users = \App\User::count(); 25 | $categories = \App\Category::count(); 26 | $published = \App\Post::count(); 27 | $trashed = \App\Post::onlyTrashed()->count(); 28 | return view('admin.home', [ 29 | 'users' => $users, 30 | 'categoriesCount' => $categories, 31 | 'published' => $published, 32 | 'trashed' => $trashed 33 | ]); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/views/admin/users/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 |
    Create a new user
    5 |
    6 |
    7 | @csrf 8 |
    9 | Name 10 | 11 |
    12 | 13 |
    14 | Email 15 | 16 |
    17 | 18 |
    19 | Password 20 | 21 |
    22 |
    23 | 24 |
    25 |
    26 |
    27 |
    28 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/tags/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | 3 | @section('content') 4 | 5 |

    Tags

    6 | @if(count($tags)) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | @foreach($tags as $tag) 16 | 17 | 18 | 24 | 25 | 32 | 33 | @endforeach 34 |
    NameSlugEditDelete
    {{ $tag->name }} 19 | 20 | Edit 21 | 22 | 23 | 26 |
    27 | @csrf 28 | {{ method_field('DELETE') }} 29 | 30 |
    31 |
    35 | @else 36 |
    No Tags Yet!
    37 | @endif 38 | @endsection -------------------------------------------------------------------------------- /public/app/svg/twitter.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/app/svg/youtube.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Verify Your Email Address') }}
    9 | 10 |
    11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, {{ __('click here to request another') }}. 19 |
    20 |
    21 |
    22 |
    23 |
    24 | @endsection 25 | -------------------------------------------------------------------------------- /database/migrations/2018_10_03_120455_create_profiles_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->unsignedInteger('user_id'); 19 | $table->string('avatar')->nullable(); 20 | $table->text('about')->nullable(); 21 | $table->string('facebook')->nullable(); 22 | $table->string('youtube')->nullable(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('profiles'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2018_10_03_152556_create_settings_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('site_name'); 19 | $table->string('contact_number')->nullable(); 20 | $table->string('contact_email')->nullable(); 21 | $table->string('address')->nullable(); 22 | $table->text('about')->nullable(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('settings'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /public/app/js/donut-chart.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | labels: [ 3 | "Claritas est etiam processus", 4 | "Mirum est notare quam littera", 5 | "Investigationes demonstraverunt", 6 | "Eodem modo typi" 7 | ], 8 | datasets: [ 9 | { 10 | data: [48, 23, 17, 22], 11 | backgroundColor: [ 12 | "#4cc2c0", 13 | "#3cb878", 14 | "#fcb03b", 15 | "#f15b26" 16 | ] 17 | }] 18 | }; 19 | var ctx = document.getElementById("myChart"); 20 | $(document).ready(function () { 21 | 22 | $('#myChart').waypoint(function () { 23 | var myDoughnutChart = new Chart(ctx, { 24 | type: 'doughnut', 25 | data: data, 26 | options: { 27 | legend: { 28 | display: false 29 | } 30 | }, 31 | animation: { 32 | animateScale: true 33 | } 34 | }); 35 | this.destroy(); 36 | }, {offset: '75%'}); 37 | }); 38 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->boolean('admin')->default(0); 23 | $table->rememberToken(); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('users'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /resources/views/admin/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | 3 | @section('title') 4 | {{ config('app.name', 'Laravel') }} Dashboard 5 | @endsection 6 | 7 | @section('content') 8 | 9 | 12 | 13 | 16 | 17 | 18 | 21 | 22 | 25 | @endsection 26 | -------------------------------------------------------------------------------- /app/Queries/PostQuery.php: -------------------------------------------------------------------------------- 1 | with('tags')->first(); 16 | abort_if(!$post, 404); 17 | $post->recordVisit(); 18 | $nextPost = Post::where('id', '>', $post->id)->orderBy('id','asc')->first(); 19 | $prevPost = Post::where('id', '<', $post->id)->orderBy('id','desc')->first(); 20 | return view('single', [ 21 | 'post' => $post, 22 | 'next' => $nextPost, 23 | 'prev' => $prevPost 24 | ]); 25 | } 26 | 27 | protected static function category($category){ 28 | return view('category', [ 29 | 'name' => $category->name, 30 | 'posts' => $category->posts, 31 | 'tags' => \App\Tag::all() 32 | ]); 33 | } 34 | } -------------------------------------------------------------------------------- /database/seeds/CategorySeeder.php: -------------------------------------------------------------------------------- 1 | 'Electrical', 16 | 'slug' => 'electrical' 17 | ]); 18 | 19 | \App\Category::create([ 20 | 'name' => 'Civil', 21 | 'slug' => 'civil' 22 | ]); 23 | 24 | \App\Category::create([ 25 | 'name' => 'Mechanical', 26 | 'slug' => 'mechanical' 27 | ]); 28 | \App\Category::create([ 29 | 'name' => 'Systems&Computers', 30 | 'slug' => 'systems&computers' 31 | ]); 32 | \App\Category::create([ 33 | 'name' => 'Petroleum', 34 | 'slug' => 'petroleum' 35 | ]); 36 | 37 | \App\Category::create([ 38 | 'name' => 'Architecture', 39 | 'slug' => 'architecture' 40 | ]); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "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", 9 | "prod": "npm run production", 10 | "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" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.18", 14 | "bootstrap": "^4.0.0", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^2.0", 18 | "lodash": "^4.17.5", 19 | "popper.js": "^1.12", 20 | "vue": "^2.5.7" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /database/migrations/2018_10_02_134354_create_posts_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('title'); 19 | $table->text('body'); 20 | $table->string('slug'); 21 | $table->string('image')->nullable(); 22 | $table->unsignedInteger('category_id'); 23 | $table->unsignedInteger('user_id'); 24 | $table->integer('views')->default(0); 25 | $table->softDeletes(); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('posts'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /resources/views/admin/categories/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | 3 | @section('content') 4 | 5 |

    Categories

    6 | @if(count($categories)) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | @foreach($categories as $category) 16 | 17 | 18 | 19 | 25 | 26 | 33 | 34 | @endforeach 35 |
    NameSlugEditDelete
    {{ $category->name }}{{ $category->slug }} 20 | 21 | Edit 22 | 23 | 24 | 27 |
    28 | @csrf 29 | {{ method_field('DELETE') }} 30 | 31 |
    32 |
    36 | @else 37 |
    No Categories Yet! you cannot create any until you create at least one category 38 |
    39 | @endif 40 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | user()->admin; 18 | }); 19 | 20 | \View::composer("*", function($view){ 21 | $settings = \Cache::rememberForever("settings", function(){ 22 | return \App\Setting::first(); 23 | }); 24 | 25 | $categories = \Cache::rememberForever("categories", function(){ 26 | return \App\Category::all(); 27 | }); 28 | return $view->with('settings', $settings)->with('categories', $categories); 29 | }); 30 | 31 | \Schema::defaultStringLength(191); 32 | } 33 | 34 | /** 35 | * Register any application services. 36 | * 37 | * @return void 38 | */ 39 | public function register() 40 | { 41 | // 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /public/app/svg/rss.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Unit 14 | 15 | 16 | 17 | ./tests/Feature 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | Published Posts 5 | 6 | @if(count($posts)) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | @foreach($posts as $post) 19 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | 33 | 34 | 41 | 42 | @endforeach 43 |
    TitleImageCategoryByAtEditTrash
    {{ str_limit($post->title, 20) }} 22 | 23 | {{ $post->category->name }}{{ $post->user->name }}{{ $post->created_at }} 29 | 30 | Edit 31 | 32 | 35 |
    36 | @csrf 37 | {{ method_field('DELETE') }} 38 | 39 |
    40 |
    44 | @else 45 |
    No Posts Yet!
    46 | @endif 47 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/users/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | 3 | @section('content') 4 |

    All Users

    5 | 6 | @if(count($users)) 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | @foreach($users as $user) 17 | 18 | 21 | 22 | 23 | 30 | 31 | 38 | 39 | @endforeach 40 |
    ImageNameEmailPermissionsDelete
    19 | 20 | {{$user->name}}{{ $user->email }} 24 |
    25 | @csrf 26 | {{ method_field('PATCH') }} 27 | 28 |
    29 |
    32 |
    33 | @csrf 34 | {{ method_field('DELETE') }} 35 | 36 |
    37 |
    41 | @else 42 |
    No users Yet!
    43 | @endif 44 | @endsection -------------------------------------------------------------------------------- /config/newsletter.php: -------------------------------------------------------------------------------- 1 | env('MAILCHIMP_APIKEY'), 10 | 11 | /* 12 | * The listName to use when no listName has been specified in a method. 13 | */ 14 | 'defaultListName' => 'Engr.', 15 | 16 | /* 17 | * Here you can define properties of the lists. 18 | */ 19 | 'lists' => [ 20 | 21 | /* 22 | * This key is used to identify this list. It can be used 23 | * as the listName parameter provided in the various methods. 24 | * 25 | * You can set it to any string you want and you can add 26 | * as many lists as you want. 27 | */ 28 | 'Engr.' => [ 29 | 30 | /* 31 | * A MailChimp list id. Check the MailChimp docs if you don't know 32 | * how to get this value: 33 | * http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id. 34 | */ 35 | 'id' => env('MAILCHIMP_LIST_ID'), 36 | ], 37 | ], 38 | 39 | /* 40 | * If you're having trouble with https connections, set this to false. 41 | */ 42 | 'ssl' => true, 43 | 44 | ]; 45 | -------------------------------------------------------------------------------- /resources/views/admin/settings/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 |
    Edit Site Setting
    5 |
    6 |
    7 | @csrf 8 | {{ method_field('PATCH') }} 9 |
    10 | Site Name 11 | 12 |
    13 | 14 |
    15 | Contact Number 16 | 17 |
    18 | 19 |
    20 | Contact Email 21 | 22 |
    23 | 24 |
    25 | Address 26 | 27 |
    28 | 29 |
    30 | 31 |
    32 |
    33 |
    34 |
    35 | @endsection -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'ses' => [ 24 | 'key' => env('SES_KEY'), 25 | 'secret' => env('SES_SECRET'), 26 | 'region' => env('SES_REGION', 'us-east-1'), 27 | ], 28 | 29 | 'sparkpost' => [ 30 | 'secret' => env('SPARKPOST_SECRET'), 31 | ], 32 | 33 | 'stripe' => [ 34 | 'model' => App\User::class, 35 | 'key' => env('STRIPE_KEY'), 36 | 'secret' => env('STRIPE_SECRET'), 37 | ], 38 | 39 | 'newsletter' => [ 40 | 'key' => env('MAILCHIMP_APIKEY='), 41 | 'list_id' => env('MAILCHIMP_LIST_ID') 42 | ], 43 | 44 | ]; 45 | -------------------------------------------------------------------------------- /resources/views/admin/posts/trashed.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | 3 | @section('content') 4 |

    Trashed Posts

    5 | @if(count($trashed)) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | @foreach($trashed as $post) 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 33 | 34 | 35 | 42 | 43 | 44 | @endforeach 45 |
    TitleImageCategoryByDeleted AtRestoreDelete Permanently
    {{ str_limit($post->title, 20) }} 21 | 22 | {{ $post->category->name }}{{ $post->user->name }}{{ $post->deleted_at->diffForHumans() }} 28 |
    29 | @csrf 30 | 31 |
    32 |
    36 |
    37 | @csrf 38 | {{ method_field('DELETE') }} 39 | 40 |
    41 |
    46 | @else 47 |
    No Trashed Posts !
    48 | @endif 49 | @endsection -------------------------------------------------------------------------------- /public/app/js/animation.velocity.min.js: -------------------------------------------------------------------------------- 1 | /*! ScrollMagic v2.0.5 | (c) 2015 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */ 2 | !function(e,i){"function"==typeof define&&define.amd?define(["ScrollMagic","velocity"],i):"object"==typeof exports?i(require("scrollmagic"),require("velocity")):i(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.Velocity||e.jQuery&&e.jQuery.Velocity)}(this,function(e,i){"use strict";var t="animation.velocity",o=0;e.Scene.extend(function(){var r,u,n,c,l=this,s=e._util,a=0;l.on("progress.plugin_velocity",function(){v()}),l.on("destroy.plugin_velocity",function(e){l.off("*.plugin_velocity"),l.removeVelocity(e.reset)});var f=function(e,t,o){s.type.Array(e)?e.forEach(function(e){f(e,t,o)}):(i.Utilities.data(e,c)||i.Utilities.data(e,c,{reverseProps:s.css(e,Object.keys(u))}),i(e,t,o),void 0!==o.queue&&i.Utilities.dequeue(e,o.queue))},y=function(e,t){if(s.type.Array(e))e.forEach(function(e){y(e,t)});else{var o=i.Utilities.data(e,c);o&&o.reverseProps&&(i(e,o.reverseProps,t),void 0!==t.queue&&i.Utilities.dequeue(e,t.queue))}},v=function(){if(r){var e=l.progress();e!=a&&(0===l.duration()&&(e>0?f(r,u,n):y(r,n)),a=e)}};l.setVelocity=function(e,i,a){return r&&l.removeVelocity(),r=s.get.elements(e),u=i||{},n=a||{},c="ScrollMagic."+t+"["+o++ +"]",void 0!==n.queue&&(n.queue=c+"_queue"),v(),l},l.removeVelocity=function(e){return r&&(void 0!==n.queue&&i(r,"stop",n.queue),e&&y(r,{duration:0}),r.forEach(function(e){i.Utilities.removeData(e,c)}),r=u=n=c=void 0),l}})}); -------------------------------------------------------------------------------- /resources/views/tag.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | 5 | 6 |
    7 |
    8 |

    Tag: {{ $name }}

    9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 |
    19 |
    20 | @if($posts) 21 |
    22 |
    23 | @foreach($posts as $post) 24 |
    25 |
    26 |
    27 | our case 28 |
    29 |
    {{ $post->title }}
    30 |
    31 |
    32 | @endforeach 33 |
    34 |
    35 | 36 | @else 37 |
    No Posts Founded !
    38 | @endif 39 | 40 |
    41 |
    42 |
    43 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/partials/posts_by_category.blade.php: -------------------------------------------------------------------------------- 1 | @foreach($categories as $category) 2 |
    3 |
    4 |
    5 |
    6 |

    {{ $category->name }}

    7 |
    8 | 9 | 10 |
    11 |
    12 |
    13 |
    14 |
    15 |
    16 | @foreach($category->posts()->take(3)->get() as $post) 17 |
    18 |
    19 |
    20 | our case 21 |
    22 |
    {{ $post->title }}
    23 |
    24 |
    25 | @endforeach 26 | 27 | {{--@foreach(\App\Post::where('category_id', $category->id)->get() as $post)--}} 28 | {{--{{$post}}--}} 29 | {{--@endforeach--}} 30 |
    31 |
    32 |
    33 |
    34 | @endforeach -------------------------------------------------------------------------------- /resources/views/search.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | 5 | 6 |
    7 |
    8 |

    Search Result For: {{ $name }}

    9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 |
    19 |
    20 |
    21 | @if(count($posts)) 22 |
    23 | @foreach($posts as $post) 24 |
    25 |
    26 |
    27 | our case 28 |
    29 |
    {{ $post->title }}
    30 |
    31 |
    32 | @endforeach 33 |
    34 | @else 35 |
    We Can't found any matches for "{{ $name }}"
    36 | @endif 37 |
    38 | 39 | 40 |
    41 |
    42 |
    43 |
    44 | @endsection -------------------------------------------------------------------------------- /resources/views/layouts/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Engr. 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /resources/views/layouts/partials/subscribe_form.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |
    5 |
    6 |
    7 | 27 |
    28 |
    29 |
    30 |
    31 | 32 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /resources/views/admin/users/profile.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 |
    Edit Your Profile
    5 |
    6 |
    7 | @csrf 8 | {{ method_field('PATCH') }} 9 |
    10 | Name 11 | 12 |
    13 | 14 |
    15 | Email 16 | 17 |
    18 | 19 |
    20 | Password 21 | 22 |
    23 | 24 |
    25 | Avatar 26 | 27 | 28 |
    29 | 30 |
    31 | Facebook 32 | 33 |
    34 | 35 |
    36 | Youtube 37 | 38 |
    39 | 40 |
    41 | About You 42 | 43 |
    44 | 45 | 46 |
    47 | 48 |
    49 |
    50 |
    51 |
    52 | @endsection -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | profile()->create(['user_id' => $user->id]); 29 | }); 30 | static::deleting(function($user){ 31 | // delete user posts 32 | $user->posts->each->delete(); 33 | // delete user profile 34 | $user->profile->delete(); 35 | }); 36 | } 37 | 38 | /** 39 | * The attributes that should be hidden for arrays. 40 | * 41 | * @var array 42 | */ 43 | protected $hidden = [ 44 | 'password', 'remember_token', 45 | ]; 46 | 47 | /** 48 | * @return \Illuminate\Database\Eloquent\Relations\HasOne 49 | */ 50 | public function profile(){ 51 | return $this->hasOne('App\Profile'); 52 | } 53 | 54 | /** 55 | * @return string 56 | */ 57 | public function image(){ 58 | $value = $this->profile->avatar; 59 | if(filter_var($value, FILTER_VALIDATE_URL) !== false) return $value; // image is link 60 | return $value ? "/storage/{$value}" : "/design/user.jpg"; 61 | } 62 | 63 | /** 64 | * @return \Illuminate\Database\Eloquent\Relations\HasMany 65 | */ 66 | public function posts(){ 67 | return $this->hasMany('App\Post'); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": "^7.1.3", 9 | "fideloper/proxy": "^4.0", 10 | "laravel/framework": "5.7.*", 11 | "laravel/tinker": "^1.0", 12 | "spatie/laravel-newsletter": "^4.2" 13 | }, 14 | "require-dev": { 15 | "beyondcode/laravel-dump-server": "^1.0", 16 | "filp/whoops": "^2.0", 17 | "fzaninotto/faker": "^1.4", 18 | "mockery/mockery": "^1.0", 19 | "nunomaduro/collision": "^2.0", 20 | "phpunit/phpunit": "^7.0" 21 | }, 22 | "autoload": { 23 | "classmap": [ 24 | "database/seeds", 25 | "database/factories" 26 | ], 27 | 28 | "files": [ 29 | "app/http/helper.php" 30 | ], 31 | 32 | "psr-4": { 33 | "App\\": "app/" 34 | } 35 | }, 36 | "autoload-dev": { 37 | "psr-4": { 38 | "Tests\\": "tests/" 39 | } 40 | }, 41 | "extra": { 42 | "laravel": { 43 | "dont-discover": [ 44 | ] 45 | } 46 | }, 47 | "scripts": { 48 | "post-root-package-install": [ 49 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 50 | ], 51 | "post-create-project-cmd": [ 52 | "@php artisan key:generate --ansi" 53 | ], 54 | "post-autoload-dump": [ 55 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 56 | "@php artisan package:discover --ansi" 57 | ] 58 | }, 59 | "config": { 60 | "preferred-install": "dist", 61 | "sort-packages": true, 62 | "optimize-autoloader": true 63 | }, 64 | "minimum-stability": "dev", 65 | "prefer-stable": true 66 | } 67 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | // window._ = require('lodash'); 3 | // window.Popper = require('popper.js').default; 4 | 5 | /** 6 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 7 | * for JavaScript based Bootstrap features such as modals and tabs. This 8 | * code may be modified to fit the specific needs of your application. 9 | */ 10 | 11 | try { 12 | // window.$ = window.jQuery = require('jquery'); 13 | 14 | // require('bootstrap'); 15 | } catch (e) {} 16 | 17 | /** 18 | * We'll load the axios HTTP library which allows us to easily issue requests 19 | * to our Laravel back-end. This library automatically handles sending the 20 | * CSRF token as a header based on the value of the "XSRF" token cookie. 21 | */ 22 | 23 | window.axios = require('axios'); 24 | 25 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 26 | 27 | /** 28 | * Next we will register the CSRF Token as a common header with Axios so that 29 | * all outgoing HTTP requests automatically have it attached. This is just 30 | * a simple convenience so we don't have to attach every token manually. 31 | */ 32 | 33 | let token = document.head.querySelector('meta[name="csrf-token"]'); 34 | 35 | if (token) { 36 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 37 | } else { 38 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 39 | } 40 | 41 | /** 42 | * Echo exposes an expressive API for subscribing to channels and listening 43 | * for events that are broadcast by Laravel. Echo and event broadcasting 44 | * allows your team to easily build robust real-time web applications. 45 | */ 46 | 47 | // import Echo from 'laravel-echo' 48 | 49 | // window.Pusher = require('pusher-js'); 50 | 51 | // window.Echo = new Echo({ 52 | // broadcaster: 'pusher', 53 | // key: process.env.MIX_PUSHER_APP_KEY, 54 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 55 | // encrypted: true 56 | // }); 57 | -------------------------------------------------------------------------------- /resources/views/admin/posts/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @section('content') 3 |
    4 | 5 |
    Create a new post
    6 |
    7 |
    8 | @csrf 9 | {{ method_field('PATCH') }} 10 |
    11 | Post Title 12 | 13 |
    14 | 15 |
    16 | Post Content 17 | 18 |
    19 | 20 |
    21 | Category 22 | 30 |
    31 | 32 | 33 |
    34 | Tags 35 |
    36 | @foreach($tags as $tag) 37 | 46 | @endforeach 47 |
    48 |
    49 | 50 |
    51 | Featured Image 52 | 53 | 54 |
    55 | 56 |
    57 | 58 |
    59 |
    60 |
    61 |
    62 | @endsection -------------------------------------------------------------------------------- /public/app/svg/video-control.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/admin/posts/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layouts.app') 2 | @push('css') 3 | 4 | 5 | 6 | 7 | @endpush 8 | 9 | @push('js') 10 | 11 | 12 | @endpush 13 | @section('content') 14 |
    15 |
    Create a new post
    16 |
    17 |
    18 | @csrf 19 |
    20 | Post Title 21 | 22 |
    23 | 24 |
    25 | Post Content 26 | 27 |
    28 | 29 |
    30 | Category 31 | 36 |
    37 | 38 |
    39 | Tag 40 | @foreach($tags as $tag) 41 |
    42 | 46 |
    47 | @endforeach 48 |
    49 | 50 |
    51 | Featured Image 52 | 53 |
    54 | 55 |
    56 | 57 |
    58 |
    59 |
    60 |
    61 | @endsection -------------------------------------------------------------------------------- /database/factories/ModelFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Category::class, function (Faker $faker) { 17 | $name = $faker->word; 18 | return [ 19 | 'name' => $faker->name, 20 | 'slug' => $faker->name 21 | ]; 22 | }); 23 | 24 | $factory->define(App\Post::class, function (Faker $faker) { 25 | $sentence = $faker->sentence; 26 | return [ 27 | 'title' => $sentence, 28 | 'slug' => $sentence, 29 | 'body' => $faker->paragraph. $faker->paragraph.$faker->paragraph.$faker->paragraph. $faker->paragraph.$faker->paragraph, 30 | 'category_id' => function(){return \App\Category::all()->random();}, 31 | 'user_id' => function(){return \App\User::all()->random();} 32 | ]; 33 | }); 34 | 35 | $factory->define(App\Tag::class, function (Faker $faker) { 36 | return [ 37 | 'name' => $faker->word 38 | ]; 39 | }); 40 | 41 | $factory->define(App\User::class, function (Faker $faker) { 42 | return [ 43 | 'name' => 'user', 44 | 'email' => 'user@user.com', 45 | 'email_verified_at' => now(), 46 | 'password' => bcrypt('useruser'), 47 | 'admin' => true, 48 | 'remember_token' => str_random(10), 49 | ]; 50 | }); 51 | 52 | 53 | $factory->define(App\Setting::class, function (Faker $faker) { 54 | return [ 55 | 'site_name' => 'Engr.', 56 | 'contact_number' => '01007569739', 57 | 'contact_email' => 'abdulrahmanfaid11@gmail.com', 58 | 'address' => 'Egypt, Cairo', // secret, 59 | 'about' => $faker->paragraph 60 | ]; 61 | }); 62 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('tag.index'); 21 | Route::get('/search', 'SearchController@get'); 22 | Auth::routes(); 23 | 24 | Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function(){ 25 | Route::get('/', 'HomeController@index')->name('home'); 26 | Route::get('/profile', 'ProfilesController@index')->name('profile'); 27 | Route::patch('/profile', 'ProfilesController@update')->name('profile.update'); 28 | 29 | // ************* Admin Routes **************** // 30 | Route::group(['middleware' => 'admin'], function(){ 31 | Route::resource('/categories', 'Admin\CategoriesController'); 32 | Route::resource('/tags', 'Admin\TagsController'); 33 | Route::resource('/users', 'Admin\UsersController'); 34 | Route::patch('/users/{user}/admin', 'Admin\UsersController@admin')->name('users.admin'); 35 | Route::get('/settings', 'Admin\SettingsController@index')->name('settings'); 36 | Route::patch('/settings', 'Admin\SettingsController@update')->name('settings.update'); 37 | }); 38 | // ************ Supervisor Routes ********** // 39 | Route::resource('/posts', 'PostsController'); 40 | Route::get('/posts/get/trashed', 'PostsController@trashed')->name('posts.trashed'); 41 | Route::post('/posts/restore/{slug}', 'PostsController@restore')->name('posts.restore'); 42 | Route::delete('/posts/kill/{slug}', 'PostsController@kill')->name('posts.kill'); 43 | }); 44 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
    18 | @csrf 19 | 20 |
    21 | 22 | 23 |
    24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
    32 |
    33 | 34 |
    35 |
    36 | 39 |
    40 |
    41 |
    42 |
    43 |
    44 |
    45 |
    46 |
    47 | @endsection 48 | -------------------------------------------------------------------------------- /app/Post.php: -------------------------------------------------------------------------------- 1 | with('user'); 18 | }); 19 | 20 | static::addGlobalScope('category', function($builder){ 21 | return $builder->with('category'); 22 | }); 23 | } 24 | 25 | public function getRouteKeyName(){ 26 | return 'slug'; 27 | } 28 | 29 | public function path(){ 30 | return "/category/{$this->category->slug}/posts/{$this->slug}"; 31 | } 32 | public function category(){ 33 | return $this->belongsTo('App\Category'); 34 | } 35 | 36 | public function user(){ 37 | return $this->belongsTo('App\User'); 38 | } 39 | 40 | public function tags(){ 41 | return $this->belongsToMany('App\Tag'); 42 | } 43 | 44 | public function setSlugAttribute($value){ 45 | if(static::whereSlug($slug = str_slug($value))->exists()){ 46 | $this->attributes['slug'] = $slug . "_" . time(); 47 | return ; 48 | } 49 | 50 | $this->attributes['slug'] = $slug; 51 | } 52 | 53 | public function getCreatedAtAttribute($value){ 54 | return \Carbon\Carbon::createFromFormat("Y-m-d H:i:s", $value)->diffForHumans(); 55 | } 56 | 57 | public function image(){ 58 | $value = $this->image; 59 | if(filter_var($value, FILTER_VALIDATE_URL) !== false) return $value; 60 | return $value ? "/storage/{$value}" : "/design/post.jpg"; 61 | } 62 | 63 | public function uploadImage($fileName, $type = 'store'){ 64 | $type == 'update' ? Storage::delete($this->image) : ''; 65 | return request()->file($fileName)->store('posts'); 66 | } 67 | 68 | public function recordVisit(){ 69 | $this->increment('views'); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/Http/Controllers/ProfilesController.php: -------------------------------------------------------------------------------- 1 | auth()->user()]); 17 | } 18 | 19 | /** 20 | * Update the specified resource in storage. 21 | * 22 | * @param \Illuminate\Http\Request $request 23 | * @param int $id 24 | * @return \Illuminate\Http\Response 25 | */ 26 | public function update() 27 | { 28 | // validate form 29 | $data = request()->validate([ 30 | 'name' => 'required|string|max:255', 31 | 'email' => 'required|string|email|max:255|unique:users,email,'.auth()->id(), 32 | 'avatar' => 'sometimes|nullable|image|mimes:jpg,jpeg,png', 33 | 'facebook' => 'sometimes|nullable|string|url|max:255', 34 | 'youtube' => 'sometimes|nullable|string|url|max:255', 35 | 'about' => 'sometimes|nullable|string|max:1000', 36 | 'password' => 'sometimes|nullable|string|min:6|max:255', 37 | ]); 38 | 39 | if(request()->hasFile('avatar')){ 40 | // remove old image 41 | Storage::delete(auth()->user()->profile->avatar); 42 | } 43 | 44 | // update user data 45 | auth()->user()->update([ 46 | 'name' => request('name'), 47 | 'email' => request('email'), 48 | 'password' => request()->has('password') ? bcrypt(request('password')) : auth()->user()->password 49 | ]); 50 | 51 | // update user profile 52 | auth()->user()->profile()->update([ 53 | 'avatar' => up()->upload('avatar', 'users'), 54 | 'facebook' => request('facebook'), 55 | 'youtube' => request('youtube'), 56 | 'about' => request('about') 57 | ]); 58 | 59 | // success 60 | session()->flash('success', 'Your Profile Updated Successfully'); 61 | return back(); 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /resources/views/layouts/navbar.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/UsersController.php: -------------------------------------------------------------------------------- 1 | get(); 15 | return view('admin.users.index', ['users' => $users]); 16 | } 17 | 18 | /** 19 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector 20 | */ 21 | public function store(){ 22 | // validate form 23 | $data = request()->validate([ 24 | 'name' => 'required|string|max:255', 25 | 'email' => 'required|string|email|max:255|unique:users,email', 26 | 'password' => 'required|string|max:255|min:6' 27 | ]); 28 | 29 | $data['password'] = bcrypt($data['password']); 30 | // create user 31 | $user = User::create($data); 32 | 33 | //success create 34 | session()->flash('success', 'User Created Successfully'); 35 | 36 | // redirect to users page 37 | return redirect(route('users.index')); 38 | } 39 | 40 | /** 41 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View 42 | * show create user form 43 | */ 44 | public function create(){ 45 | return view('admin.users.create'); 46 | } 47 | 48 | /** 49 | * @param User $user 50 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector 51 | * make a user and admin or remove admin privileges 52 | */ 53 | public function admin(User $user){ 54 | // update admin field 55 | $user->admin = ! $user->admin; 56 | $user->save(); 57 | // success 58 | session()->flash('success', "Admin Privileges has been edited!"); 59 | // redirect to users page 60 | return redirect(route('users.index')); 61 | } 62 | 63 | public function destroy(User $user){ 64 | // delete user 65 | $user->delete(); 66 | // success 67 | session()->flash('success', 'User Deleted Sucessfully'); 68 | // redirect to users page 69 | return redirect(route('users.index')); 70 | 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /public/app/svg/google.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 12 | 13 | 19 | 20 | 23 | 24 | 25 | 27 | 28 | 29 | 31 | 32 | 33 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /resources/views/category.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | 5 | 6 |
    7 |
    8 |

    Category: {{ $name }}

    9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 |
    19 |
    20 | 21 |
    22 | {{ count($posts) }} 23 |
    24 | @foreach($posts as $post) 25 |
    26 |
    27 |
    28 | our case 29 |
    30 |
    {{ $post->title }}
    31 |
    32 |
    33 | @endforeach 34 |
    35 |
    36 | 37 | 38 |
    39 |
    40 |
    41 | 42 | 43 |
    44 | 61 |
    62 | 63 | 64 | 65 |
    66 |
    67 |
    68 | @endsection -------------------------------------------------------------------------------- /public/app/js/ajax-pagination.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | var $button = $('#load-more-button'); 4 | 5 | var page_num = 1; 6 | var max_pages = 3; 7 | var next_link = $button.data('load-link'); 8 | 9 | var loaded_text = 'That\'s all'; 10 | 11 | var containerID = $button.data('container'); 12 | 13 | var $container = $('#' + containerID ); 14 | var container_has_isotope = false; 15 | 16 | 17 | if (page_num > max_pages) { 18 | $button.addClass('last-page').children('span').text(loaded_text); 19 | } 20 | 21 | $button.on('click', function () { 22 | 23 | if (page_num <= max_pages && !$(this).hasClass('loading') && !$(this).hasClass('last-page')) { 24 | 25 | $.ajax({ 26 | type: 'GET', 27 | url: next_link, 28 | dataType: 'html', 29 | beforeSend: function () { 30 | $button.addClass('loading'); 31 | }, 32 | complete: function (XMLHttpRequest) { 33 | $button.removeClass('loading'); 34 | if (XMLHttpRequest.status == 200 && XMLHttpRequest.responseText != '') { 35 | 36 | page_num++; 37 | 38 | if (page_num > max_pages) { 39 | $button.addClass('last-page').children('.load-more-text').text(loaded_text); 40 | } 41 | 42 | if ($(XMLHttpRequest.responseText).length > 0) { 43 | container_has_isotope = (typeof($container.isotope) === 'function'); 44 | $(XMLHttpRequest.responseText).children().each(function () { 45 | var elem = $(this); 46 | if (!container_has_isotope) { 47 | elem.css('opacity',0); 48 | $container.append(elem); 49 | elem.addClass('animate'); 50 | } else { 51 | $container.append( elem ) 52 | .isotope( 'appended', elem ) 53 | .isotope('layout'); 54 | $container.imagesLoaded(function () { 55 | $container.isotope('layout'); 56 | }); 57 | } 58 | 59 | }); 60 | } 61 | } 62 | } 63 | }); 64 | } 65 | return false; 66 | }); 67 | }); 68 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/TagsController.php: -------------------------------------------------------------------------------- 1 | validate([ 39 | 'name' => 'required|string|unique:tags,name|max:255' 40 | ]); 41 | Tag::create($data); 42 | session()->flash('success', 'Tag Created Successfully'); 43 | return redirect(route('tags.index')); 44 | } 45 | 46 | /** 47 | * Display the specified resource. 48 | * 49 | * @param int $id 50 | * @return \Illuminate\Http\Response 51 | */ 52 | public function show($id) 53 | { 54 | // 55 | } 56 | 57 | /** 58 | * Show the form for editing the specified resource. 59 | * 60 | * @param int $id 61 | * @return \Illuminate\Http\Response 62 | */ 63 | public function edit(Tag $tag) 64 | { 65 | return view('admin.tags.edit', compact('tag')); 66 | } 67 | 68 | /** 69 | * Update the specified resource in storage. 70 | * 71 | * @param \Illuminate\Http\Request $request 72 | * @param int $id 73 | * @return \Illuminate\Http\Response 74 | */ 75 | public function update(Tag $tag) 76 | { 77 | $data = request()->validate([ 78 | 'name' => 'required|string|max:255|unique:tags,name,'.$tag->id 79 | ]); 80 | 81 | Tag::where('slug', $tag->name)->update($data); 82 | session()->flash('success', 'Tag Updated Successfully'); 83 | return redirect(route('tags.index')); 84 | } 85 | 86 | /** 87 | * Remove the specified resource from storage. 88 | * 89 | * @param int $id 90 | * @return \Illuminate\Http\Response 91 | */ 92 | public function destroy(Tag $tag) 93 | { 94 | $tag->delete(); 95 | session()->flash('success', 'Tag Deleted Successfully'); 96 | return redirect(route('tags.index')); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Log Channels 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may configure the log channels for your application. Out of 27 | | the box, Laravel uses the Monolog PHP logging library. This gives 28 | | you a variety of powerful log handlers / formatters to utilize. 29 | | 30 | | Available Drivers: "single", "daily", "slack", "syslog", 31 | | "errorlog", "monolog", 32 | | "custom", "stack" 33 | | 34 | */ 35 | 36 | 'channels' => [ 37 | 'stack' => [ 38 | 'driver' => 'stack', 39 | 'channels' => ['daily'], 40 | ], 41 | 42 | 'single' => [ 43 | 'driver' => 'single', 44 | 'path' => storage_path('logs/laravel.log'), 45 | 'level' => 'debug', 46 | ], 47 | 48 | 'daily' => [ 49 | 'driver' => 'daily', 50 | 'path' => storage_path('logs/laravel.log'), 51 | 'level' => 'debug', 52 | 'days' => 14, 53 | ], 54 | 55 | 'slack' => [ 56 | 'driver' => 'slack', 57 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 58 | 'username' => 'Laravel Log', 59 | 'emoji' => ':boom:', 60 | 'level' => 'critical', 61 | ], 62 | 63 | 'papertrail' => [ 64 | 'driver' => 'monolog', 65 | 'level' => 'debug', 66 | 'handler' => SyslogUdpHandler::class, 67 | 'handler_with' => [ 68 | 'host' => env('PAPERTRAIL_URL'), 69 | 'port' => env('PAPERTRAIL_PORT'), 70 | ], 71 | ], 72 | 73 | 'stderr' => [ 74 | 'driver' => 'monolog', 75 | 'handler' => StreamHandler::class, 76 | 'with' => [ 77 | 'stream' => 'php://stderr', 78 | ], 79 | ], 80 | 81 | 'syslog' => [ 82 | 'driver' => 'syslog', 83 | 'level' => 'debug', 84 | ], 85 | 86 | 'errorlog' => [ 87 | 'driver' => 'errorlog', 88 | 'level' => 'debug', 89 | ], 90 | ], 91 | 92 | ]; 93 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => env('SQS_KEY', 'your-public-key'), 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 57 | 'region' => env('SQS_REGION', 'us-east-1'), 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => 'default', 64 | 'retry_after' => 90, 65 | 'block_for' => null, 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Failed Queue Jobs 73 | |-------------------------------------------------------------------------- 74 | | 75 | | These options configure the behavior of failed queue job logging so you 76 | | can control which database and table are used to store the jobs that 77 | | have failed. You may change them to any database / table you wish. 78 | | 79 | */ 80 | 81 | 'failed' => [ 82 | 'database' => env('DB_CONNECTION', 'mysql'), 83 | 'table' => 'failed_jobs', 84 | ], 85 | 86 | ]; 87 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Cache Stores 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may define all of the cache "stores" for your application as 28 | | well as their drivers. You may even define multiple stores for the 29 | | same cache driver to group types of items stored in your caches. 30 | | 31 | */ 32 | 33 | 'stores' => [ 34 | 35 | 'apc' => [ 36 | 'driver' => 'apc', 37 | ], 38 | 39 | 'array' => [ 40 | 'driver' => 'array', 41 | ], 42 | 43 | 'database' => [ 44 | 'driver' => 'database', 45 | 'table' => 'cache', 46 | 'connection' => null, 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | ], 53 | 54 | 'memcached' => [ 55 | 'driver' => 'memcached', 56 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 57 | 'sasl' => [ 58 | env('MEMCACHED_USERNAME'), 59 | env('MEMCACHED_PASSWORD'), 60 | ], 61 | 'options' => [ 62 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 63 | ], 64 | 'servers' => [ 65 | [ 66 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 67 | 'port' => env('MEMCACHED_PORT', 11211), 68 | 'weight' => 100, 69 | ], 70 | ], 71 | ], 72 | 73 | 'redis' => [ 74 | 'driver' => 'redis', 75 | 'connection' => 'cache', 76 | ], 77 | 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Cache Key Prefix 83 | |-------------------------------------------------------------------------- 84 | | 85 | | When utilizing a RAM based store such as APC or Memcached, there might 86 | | be other applications utilizing the same cache. So, we'll specify a 87 | | value to get prefixed to all our keys so we can avoid collisions. 88 | | 89 | */ 90 | 91 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/CategoriesController.php: -------------------------------------------------------------------------------- 1 | get(); 18 | return view('admin.categories.index', compact('categories')); 19 | } 20 | 21 | /** 22 | * Show the form for creating a new resource. 23 | * 24 | * @return \Illuminate\Http\Response 25 | */ 26 | public function create() 27 | { 28 | return view('admin.categories.create'); 29 | } 30 | 31 | /** 32 | * Store a newly created resource in storage. 33 | * 34 | * @return \Illuminate\Http\Response 35 | */ 36 | public function store() 37 | { 38 | // validate form 39 | $data = request()->validate([ 40 | 'name' => 'required|string|max:50|unique:categories,name' 41 | ]); 42 | 43 | $data['slug'] = str_slug($data['name']); 44 | 45 | // clear cache 46 | \Artisan::call('cache:clear'); 47 | // create new category 48 | Category::create($data); 49 | // success 50 | session()->flash('success', 'Category Created Successfully'); 51 | // redirect to categories page 52 | return redirect(route('categories.index')); 53 | } 54 | 55 | /** 56 | * Show the form for editing the specified resource. 57 | * @return \Illuminate\Http\Response 58 | */ 59 | public function edit(Category $category) 60 | { 61 | return view('admin.categories.edit', compact('category')); 62 | } 63 | 64 | /** 65 | * Update the specified resource in storage. 66 | * @return \Illuminate\Http\Response 67 | */ 68 | public function update(Category $category) 69 | { 70 | // validate form 71 | $data = request()->validate([ 72 | 'name' => 'required|string|max:255|unique:categories,name,'.$category->id 73 | ]); 74 | $data['slug'] = str_slug($data['name']); 75 | 76 | // update categorys 77 | Category::whereSlug($category->slug)->update($data); 78 | // clear cache 79 | \Artisan::call('cache:clear'); 80 | 81 | // success 82 | session()->flash('success', 'Category Updated Successfully'); 83 | 84 | //redirect to categories page 85 | return redirect(route('categories.index')); 86 | } 87 | 88 | /** 89 | * @param Category $category 90 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector 91 | * @throws \Exception 92 | */ 93 | public function destroy(Category $category) 94 | { 95 | $category->delete(); 96 | session()->flash('success', 'Category Deleted Successfully'); 97 | return redirect(route('categories.index')); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \App\Http\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 61 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 62 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 63 | 'admin' => \App\Http\Middleware\Admin::class, 64 | ]; 65 | 66 | /** 67 | * The priority-sorted list of middleware. 68 | * 69 | * This forces the listed middleware to always be in the given order. 70 | * 71 | * @var array 72 | */ 73 | protected $middlewarePriority = [ 74 | \Illuminate\Session\Middleware\StartSession::class, 75 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 76 | \App\Http\Middleware\Authenticate::class, 77 | \Illuminate\Session\Middleware\AuthenticateSession::class, 78 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 79 | \Illuminate\Auth\Middleware\Authorize::class, 80 | ]; 81 | } 82 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 |
    12 | @csrf 13 | 14 | 15 | 16 |
    17 | 18 | 19 |
    20 | 21 | 22 | @if ($errors->has('email')) 23 | 24 | {{ $errors->first('email') }} 25 | 26 | @endif 27 |
    28 |
    29 | 30 |
    31 | 32 | 33 |
    34 | 35 | 36 | @if ($errors->has('password')) 37 | 38 | {{ $errors->first('password') }} 39 | 40 | @endif 41 |
    42 |
    43 | 44 |
    45 | 46 | 47 |
    48 | 49 |
    50 |
    51 | 52 |
    53 |
    54 | 57 |
    58 |
    59 |
    60 |
    61 |
    62 |
    63 |
    64 |
    65 | @endsection 66 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | --------------------------------------------------------------------------------