Coder Social home page Coder Social logo

blait455 / laravel_blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-architect/laravel_blog

0.0 0.0 0.0 7.56 MB

A fully functional professional multi site blogging app ready to deploy. With pagination, soft-deletes, WordPress like image library, custom image thumbnail creator. Customize the front-end the way you want.

Home Page: https://www.gunstar.co.uk

PHP 56.01% HTML 43.99%

laravel_blog's Introduction

About This Project

##Setting up for production

Please create a user with ID: 1
Please create a category named Unauthorized with ID: 1

Or simply run the php artisan db seed command
You can edit it in the database/seeds/ folder, cange the values and then run db:seed.

Or just do this in database/seeds/DatabaseSeeder.php

      `$this->call(UsersTableSeeder::class);` 
      `$this->call(SiteAddressesTableSeeder::class);`
      `//$this->call(PostsTableSeeder::class);` 
      `$this->call(CategoriesTableSeeder::class);` 
      `$this->call(SeosTableSeeder::class);`
      `$this->call(RolesTableSeeder::class);`
      `$this->call(PermissionsTableSeeder::class);`
      `//$this->call(SocialsTableSeeder::class);`

#####Change your .env file
After running git pull from bitbucket, create a .env file set you .env file like this. There will be a .env.example file in there for reference, can use that or use the description below.

  • APP_ENV=production
  • APP_DEBUG=false
  • APP_KEY=SomeRandomString

  • DB_HOST=localhost
  • DB_DATABASE=[your database name]
  • DB_USERNAME=[your user name]
  • DB_PASSWORD=[your database password name]

  • CACHE_DRIVER=file
  • SESSION_DRIVER=file
  • QUEUE_DRIVER=sync

  • REDIS_HOST=localhost
  • REDIS_PASSWORD=null
  • REDIS_PORT=6379

  • MAIL_DRIVER=smtp
  • MAIL_HOST=sendgrid.com
  • MAIL_PORT=2525
  • MAIL_USERNAME=XXXXXXXXXXX
  • MAIL_PASSWORD=XXXXXXXXXXX
  • MAIL_ENCRYPTION=null

Run php artisan key:generate

Remove "Barryvdh\Debugbar\ServiceProvider::class," from app.php provider.
Remove "'Debugbar' => Barryvdh\Debugbar\Facade::class," from app.php aliases

Run composer install --no-dev [ this will install without debugger and testing stuff ]

Run php artisan migrate to install tables
Run php artisan laratrust:migration permissions

set up your server or you can run this project in your local by using php artisan serve


##Setting up for Test

#####Change your .env file
After running git pull from bitbucket, create a .env file set you .env file like this. There will be a .env.example file in there for reference, can use that or use the production one above with slight change.

  • APP_ENV=local
  • APP_DEBUG=true

Run php artisan key:generate
Run composer install --no-dev [ this will install without debugger and testing stuff ]

Run php artisan migrate to install tables
Run php artisan laratrust:migration .env file for production
Run php artisan db:seed to use Facker data

laravel_blog's People

Contributors

code-architect avatar

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.