Code Monkey home page Code Monkey logo

laravel-coming-soon's Introduction

Description

A straightforward Coming Soon package for Laravel with Countdown timer and Email capture.

Just Install the package, configure .env and you are ready to go!

coming-soon-screenshot

Installation

composer require softnweb/laravel-coming-soon

After Installation run this command to publish file

php artisan vendor:publish

If you want to display the Email form

Then run php artisan migrate

.env values

You will have to add the following to your .env and set values accordingly

  • OFFLINE_ENABLE= {true/false} (Enable Coming Soon page)
  • OFFLINE_SHOW_EMAIL_FORM= {true/false} (Display the Email form)
  • OFFLINE_SEND_EMAIL_TO= {[email protected]}
  • OFFLINE_YEAR= {2018} (Countdown year)
  • OFFLINE_MONTH= {12} (Countdown month)
  • OFFLINE_DAY= {1} (Countdown day)
  • OFFLINE_HOURS= {1} (Countdown hours)
  • OFFLINE_MINUTES= {60} (Countdown minutes)
  • OFFLINE_SECONDS= {60} (Countdown seconds)
  • OFFLINE_FACEBOOK= {http://facebook.com/softnweb}
  • OFFLINE_INSTAGRAM= {#}
  • OFFLINE_GITHUB= {#}
  • OFFLINE_MAIL= {[email protected]}

laravel-coming-soon's People

Contributors

nkdodiya avatar softnweb avatar wprk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-coming-soon's Issues

Publish ServiceProvider not working

Getting an error of Class 'softnweb\laravel-coming-soon\ComingSoonServiceProvider' not found when trying to use this package.

Solved it in my own project by adding the following to my own /composer.json file:

    "extra": {
        "laravel": {
            "dont-discover": [
                "softnweb/laravel-coming-soon"
            ]
        }
    }
    "autoload": {
        "psr-4": {
            "snw\\ComingSoon\\": "vendor\\softnweb\\laravel-coming-soon\\"
        }
    }

And also manually adding the ServiceProvider to my /config/app.php

Not sure how to get it to work properly so unable to create a PR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.