Coder Social home page Coder Social logo

turkmvc / laravel-forum-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gummydonut/laravel-forum-template

0.0 1.0 0.0 3.42 MB

Forum Template for Laravel made from much learning and reading online

PHP 64.64% HTML 34.92% ApacheConf 0.22% Vue 0.22%

laravel-forum-template's Introduction

#Forum Template Created Using the Laravel Framework ####Originally made for NewArkstudios but removed references to project itself

##Debug Tools -laravel -laravel debugbar

Issues and Troubleshooting

  • Make sure storage is writable by
# Group Writable (Group, User Writable)
$ sudo chmod -R gu+w storage

# World-writable (Group, User, Other Writable)
$ sudo chmod -R guo+w storage
  • Make sure bootstrap cache is writeable as well chmod 777 bootstrap/cache

Development Environment

Visual Studio Code with xdebug and xdebug extension Lampp server change etc/http.conf to follow this https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug pointing to installed xdebug on local machine

Files Ignored are listed under .gitignore and .git/info/exclude

Database Configuration

Change .env file Note password and username listed in master docs Migrate appropriate databases and install

php artisan migrate:install

php artisan migrate

To make new databases in laravel simply call

php artisan make:migration <migration_name> --create=<table_name>

**To clear data and reinstall databases **

php artisan migrate:refresh

To seed a database, in "DatabaseSeeder.php" add

    $this->call(<SeedName>::class);

Create the seed with

    php artisan make:seeder <SeedName>
    // once complete and coded for seed with
    php artisan db:seed

Note if one cannot seed then we need to update our autload files as they may not be synced

composer dump-autoload

Packages out of date? Run

composer update
composer install

HTML Purifier package used you will need to run This package was used to prevent script injections but still allow HTML links and images

chmod 777 -R vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer

If run into errors delete migrations table and already existing tables

Environment Notes

Updates to .env file needed for mail server example - note this is mailtrap server, we need to update to legitimate email in future


MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=a79ce35f103a75
MAIL_PASSWORD=ab494144d97a0a
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_DISPLAY_NAME=example
SETTINGS_SEND_ACTIVATION_EMAIL=true

laravel-forum-template's People

Contributors

gorriexiv avatar gummydonut avatar hereandnowlive avatar

Watchers

 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.