The Laravel.io Community Portal.

Overview

Tests Code Style

Laravel.io

This is the repository for the Laravel.io community portal. The code is entirely open source and licensed under the MIT license. We welcome your contributions but we encourage you to read the the contributing guide before creating an issue or sending in a pull request. Read the installation guide below to get started with setting up the app on your machine.

Sponsors

We'd like to thank these amazing companies for sponsoring us. If you are interested in becoming a sponsor, please visit the Laravel.io Github Sponsors page.

Requirements

The following tools are required in order to start the installation.

Installation

Note that you're free to adjust the ~/Sites/laravel.io location to any directory you want on your machine. In doing so, be sure to run the valet link command inside the desired directory.

  1. Clone this repository with git clone [email protected]:laravelio/laravel.io.git ~/Sites/laravel.io
  2. Run composer install to install the PHP dependencies
  3. Set up a local database called laravel
  4. Run composer setup to setup the application
  5. Set up a working e-mail driver like Mailtrap
  6. Run valet link to link the site to a testing web address
  7. Configure the (optional) features from below

You can now visit the app in your browser by visiting http://laravel.io.test. If you seeded the database you can login into a test account with johndoe & password.

Github Authentication (optional)

To get Github authentication to work locally, you'll need to register a new OAuth application on Github. Use http://laravel.io.test for the homepage url and http://laravel.io.test/auth/github for the callback url. When you've created the app, fill in the ID and secret in your .env file in the env variables below. You should now be able to authentication with Github.

GITHUB_ID=
GITHUB_SECRET=
GITHUB_URL=http://laravel.io.test/auth/github

Algolia Search (optional)

To get Algolia search running locally, you'll need to register for a new account and create an index called threads. Algolia has a free tier which satisfies all of the requirements needed for a development environment. Now update the below variables in your .env file. The App ID and secret keys can be found in the API Keys section of the Algoila UI.

SCOUT_DRIVER=algolia
SCOUT_QUEUE=true

ALGOLIA_APP_ID=
ALGOLIA_SECRET="Use the Write API Key"

MIX_ALGOLIA_APP_ID="${ALGOLIA_APP_ID}"
MIX_ALGOLIA_SECRET="Use the Search API Key"
MIX_ALGOLIA_INDEX=threads

In order to index your existing threads, run the following command:

php artisan scout:import App\\Models\\Thread

New threads will be automatically added to the index and threads which get edited will be automatically updated. If you need to flush your index and start again, you can run the following command:

php artisan scout:flush App\\Models\\Thread

Twitter Sharing (optional)

To enable published articles to be automatically shared to on Twitter, you'll need to create a Twitter app. Once the app has been created, update the below variables in your .env file. The consumer key and secret and access token and secret can be found in the Keys and tokens section of the Twitter developers UI.

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_SECRET=

Approved articles are shared in the order they were submitted for approval. Articles are shared twice per day at 14:00 and 18:00 UTC. Once an article has been shared, it will not be shared again.

Commands

Command Description
php artisan test --parallel Run the tests
php artisan migrate:fresh --seed Reset the database
npm run watch Watch for changes in CSS and JS files

Maintainers

The Laravel.io portal is currently maintained by Dries Vints and Joe Dixon. If you have any questions please don't hesitate to create an issue on this repo.

Contributing

Please read the contributing guide before creating an issue or sending in a pull request.

Code of Conduct

Please read our Code of Conduct before contributing or engaging in discussions.

Security Vulnerabilities

If you discover a security vulnerability within Laravel.io, please send an email immediately to [email protected]. Do not create an issue for the vulnerability.

License

The MIT License. Please see the license file for more information.

Comments
  • Style ads

    Style ads

    @driesvints, you may need to test this locally as I can't see the ad sense ads. They seem to be taking up around about the right amount of space, but would be nice to see them rendered. I think it's just the homepage, sidebar and footer I can't see.

    Screenshot 2019-08-09 at 16 51 13
    opened by joedixon 23
  • Notifications

    Notifications

    I'm working on the notifications, we need that to #271, #270 and #279. But I'm not a good designer, so I need help before getting deep into it xd

    It's using vue, he will turn the job easier later.

    This is how it looks now

    image

    The first one are in the hover state, the last one are marked as read.

    opened by LucasLeandro1204 21
  • Laravel 8.x Shift

    Laravel 8.x Shift

    This pull request includes the changes for upgrading to Laravel 8.x. Feel free to commit any additional changes to the shift-35839 branch.

    Before merging, you need to:

    • Checkout the shift-35839 branch
    • Review all pull request comments for additional changes
    • Update your dependencies for Laravel 8
    • Run composer update (if the scripts fail, add --no-scripts)
    • Thoroughly test your application (no tests?)

    If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.

    opened by driesvints 20
  • Laravel 5.8 Shift

    Laravel 5.8 Shift

    This pull request includes the changes for upgrading to Laravel 5.8. Feel free to commit any additional changes to the shift-19040 branch.

    Before merging, you need to:

    • Checkout the shift-19040 branch
    • Review all pull request comments for additional changes
    • Update your dependencies for Laravel 5.8
    • Run composer update (if the scripts fail, add --no-scripts)
    • Thoroughly test your application (no tests?)

    If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.

    opened by driesvints 20
  • Laravel 5.5 Shift

    Laravel 5.5 Shift

    This pull request includes the changes for upgrading to Laravel 5.5. Feel free to commit any additional changes to the shift-4820 branch.

    Before merging, you should:

    • Checkout the shift-4820 branch
    • Review all pull request comments for additional changes
    • Run composer update (if the pre-commands fail, add --no-scripts)
    • Thoroughly test your application

    If you would like more help with your upgrade, check out the human services from Laravel Shift. If you need to level-up your Git skills, check out Getting Git.

    opened by driesvints 15
  • Weird HTML/CSS issue in pastebin

    Weird HTML/CSS issue in pastebin

    See image: http://i.imgur.com/eRkcCLe.png - Notice the scroll bar at the bottom. I get this problem in Chrome (Windows and Linux), FireFox (only tested Windows) and Internet Explorer 11.

    This seems to be related to the css of body.bin .show-container { width: 200%; overflow-x: scroll; }

    If I remove either the 200% width or the overflow-x things immediately look better. To get rid of the scrollbar at the bottom I need to do overflow-x: hidden on body, which I'm sure is not the intent.

    These changes were introduced in #105 and I'd love to hear more reasoning behind them. Were they even tested?

    bug 
    opened by anlutro 15
  • Laravel 7.x Shift

    Laravel 7.x Shift

    This pull request includes the changes for upgrading to Laravel 7.x. Feel free to commit any additional changes to the shift-24472 branch.

    Before merging, you need to:

    • Checkout the shift-24472 branch
    • Review all pull request comments for additional changes
    • Update your dependencies for Laravel 7
    • Run composer update (if the scripts fail, add --no-scripts)
    • Thoroughly test your application (no tests?)

    If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.

    opened by driesvints 14
  • Laravel 5.6 Shift

    Laravel 5.6 Shift

    This pull request includes the changes for upgrading to Laravel 5.6. Feel free to commit any additional changes to the shift-6274 branch.

    Before merging, you should:

    • Checkout the shift-6274 branch
    • Review all pull request comments for additional changes
    • Update your dependencies for Laravel 5.6
    • Run composer update (if the pre-scripts fail, add --no-scripts)
    • Thoroughly test your application

    If you need help with your upgrade, check out the Shift Human Services or join the Shifty Coders Slack room to get answers to all your Laravel questions.

    opened by driesvints 13
  • Laravel 9.x Shift

    Laravel 9.x Shift

    This pull request includes the changes for upgrading to Laravel 9.x. Feel free to commit any additional changes to the shift-60141 branch.

    Before merging, you need to:

    • Checkout the shift-60141 branch
    • Review all pull request comments for additional changes
    • Run composer update (if the scripts fail, add --no-scripts)
    • Clear any config, route, or view cache
    • Thoroughly test your application (no tests?, no CI?)

    If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.

    opened by driesvints 12
  • Trying to get in touch regarding a security issue

    Trying to get in touch regarding a security issue

    Hey there!

    I belong to an open source security research community, and a member (@hdvinnie) has found an issue, but doesn’t know the best way to disclose it.

    If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

    Thank you for your consideration, and I look forward to hearing from you!

    (cc @huntr-helper)

    opened by JamieSlome 12
  • PHPUnit to Pest Converter

    PHPUnit to Pest Converter

    This pull request contains changes for migrating your test suite from PHPUnit to Pest automated by the Pest Converter.

    Before merging, you need to:

    • Checkout the shift-49229 branch
    • Review all of the comments below for additional changes
    • Run composer update to install Pest with your dependencies
    • Run vendor/bin/pest to verify the conversion
    opened by jasonmccreary 11
  • Document new API

    Document new API

    We should add some documentation for the new API sent in at https://github.com/laravelio/laravel.io/pull/793.

    I'm not sure if we should use a certain API documentation tool or just try to incorporate it into the current design.

    enhancement 
    opened by driesvints 4
  • Disconnect and connect GitHub account

    Disconnect and connect GitHub account

    Users should be able to connect or disconnect their GitHub account after creating their account. Should be a new box on the settings page. Connecting their GitHub account will fill in their GitHub username.

    Explain why we ask to connect their GitHub account (as opposed to let them fill in a text field for their username):

    1. We offer social authentication this way
    2. We use their GitHub account to verify they're real persons (and not bots)
    3. We integrate with GitHub for upcoming features
    enhancement 
    opened by driesvints 2
  • GitHub usernames should be unique

    GitHub usernames should be unique

    Filter out any duplicates with:

    SELECT
        github_username,
        COUNT(github_username)
    FROM
        users
    GROUP BY
        github_username
    HAVING
        COUNT(github_username) > 1;
    
    SELECT
        *
    FROM
        users
    WHERE
        github_username = 'duplicate';
    

    These can actually be synced from their GitHub ID. We should run a queued job that goes over all accounts and syncs them. Maybe also a scheduled job or a GitHub webhook.

    enhancement help wanted 
    opened by driesvints 4
Releases(v2.1.3)
  • v2.1.3(Feb 14, 2015)

    • Temporarily use local storage for backups until S3 adapter has been fixed
    • Fix forgotten Laravel 5 tag indications (3db54bc0bbf5e0e2bd6c4f9f338b63492ee45ff9)
    Source code(tar.gz)
    Source code(zip)
  • v2.1.2(Feb 14, 2015)

    • Integrate Backup Manager package for DB backups (7c15dc1ef8be06b904e16ecf5508585a2f4b9fc5)
    • Add Laravel 5 tag to threads (#212)
    • Removed unused contributors functionality (f3ea49b821117b3cddb71ac9dd22c018d1a14706)
    • Allow users to update their usernames (38af463c50476e2be47c29d0c4ae300e90fd29c0)
    • Several bug fixes
    Source code(tar.gz)
    Source code(zip)
  • v2.1.1(Dec 14, 2014)

  • v2.1.0(Dec 14, 2014)

    • Allow users to choose their email address and username on signup (bd860003d0169533fe76535b4f406cb5d982d7d5)
    • Add user settings page (86df6f9fca073bf1ed462a6201697175c3e3b415)
    • Implemented E-mail confirmation (e21f37f98e3f36f2075a7ac7124f06a96e44c1c9)
    • Activated Mandrill for e-mail sending (63584c9c0d8014e191c4e0dc616a849a23374cfc)
    • Use Snappy for customer support (4550fb72deb0b30632c45b0d004a180a40377edf)
    • Started logging of ip addresses for users, threads and replies (e48544b0b6035d2870bc2e5e4b1aaece1fb901f1)
    • Implemented filtering on phone numbers for threads and implement auto-banning of spammers (8910649997673886e45790212f6bbcdaed79e76b)
    • Reworked footer (2104eb3f11ccf6ec9ba5c3ac4fa97a73f7ab76a9)
    • Added a navigation item for admins (79741f872aa0de3316c1dcb4fde48d10ee7e01d5)
    • Fixed a bug with reply time indication (#209, 351b0adbe554f202cd83ccd623ab3082c8f9987e)
    Source code(tar.gz)
    Source code(zip)
  • v2.0.12(Dec 6, 2014)

  • v2.0.11(Nov 9, 2014)

    • Implement Captcha on user registration (2dfecdf9058ab17fa0a53e0ec96cf1e83694edcd)
    • Implement pinned threads (c566bbc46e03326b9ae4a3e078ec993c76c29c0a)
    • Hide email and remember_token from public api (#200)
    Source code(tar.gz)
    Source code(zip)
  • v2.0.10(Nov 3, 2014)

    • Implemented new anti-spam solution (#192)
    • New moderator tool (https://github.com/LaravelIO/laravel.io/commit/c9b1f32c5c5a78e0625a7b1bf16dcdfc28054aec)
    • Updated dependencies (#191, #195)
    • Fixed an issue with tests on Windows (#194)
    Source code(tar.gz)
    Source code(zip)
  • v2.0.9(Nov 2, 2014)

  • v2.0.8(Oct 17, 2014)

  • v2.0.7(Oct 17, 2014)

  • v2.0.6(Sep 21, 2014)

  • v2.0.5(Sep 10, 2014)

  • v2.0.4(Sep 4, 2014)

  • v2.0.3(Aug 23, 2014)

    • The pastebin is now responsive thanks to @mattstauffer (#155)
    • When browsing user threads/replies in a user profile, you may now click the user profile image to quickly go back to the main user profile page (#147)
    • Added a detailed contribution guide (#148)
    • Refactored test suite and integrated Travis CI
    • Better naming for pastebin shortcuts (#157)
    • Fixed a bug where pastebin buttons weren't clickable (#156)
    • Bugfixes
    Source code(tar.gz)
    Source code(zip)
  • v2.0.2(Aug 18, 2014)

  • v2.0.1(Aug 17, 2014)

  • v2.0.0(Aug 17, 2014)

  • v1.0.0(Aug 17, 2014)

Owner
Laravel.io
The Laravel Community Portal
Laravel.io
Madison is a platform for lawmakers to share legislation with their citizens, allowing the community to add comments and suggest improvements.

Madison Madison is an open-source document engagement and feedback platform. While Madison can be used to collaborate on many different kinds of docum

OpenGov Foundation 591 Dec 17, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.

What is laravel charts? Charts is a Laravel library used to create Charts using Chartisan. Chartisan does already have a PHP adapter. However, this li

Erik C. Forés 31 Dec 18, 2022
Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster.

Laravel Kickstart What is Laravel Kickstart? Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster. It com

Sam Rapaport 46 Oct 1, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 9 Dec 14, 2022
Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application.

Laravel Segment Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application. Installation You can install the pac

Octohook 13 May 16, 2022
Laravel Sanctum support for Laravel Lighthouse

Lighthouse Sanctum Add Laravel Sanctum support to Lighthouse Requirements Installation Usage Login Logout Register Email Verification Forgot Password

Daniël de Wit 43 Dec 21, 2022
Bring Laravel 8's cursor pagination to Laravel 6, 7

Laravel Cursor Paginate for laravel 6,7 Installation You can install the package via composer: composer require vanthao03596/laravel-cursor-paginate U

Pham Thao 9 Nov 10, 2022
A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

Install Install via composer. $ composer require olliecodes/laravel-etched-blade Once installed you'll want to publish the config. $ php artisan vendo

Ollie Codes 19 Jul 5, 2021
A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic! concepts like , Hijri Dates & Arabic strings and so on ..

Adnane Kadri 49 Jun 22, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
Laravel Jetstream is a beautifully designed application scaffolding for Laravel.

Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.

The Laravel Framework 3.5k Jan 8, 2023
Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex Translate Laravel Apps from a CSV File Laravel Larex lets you translate your whole Laravel application from a single CSV file. You can i

Luca Patera 68 Dec 12, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
A Laravel extension for using a laravel application on a multi domain setting

Laravel Multi Domain An extension for using Laravel in a multi domain setting Description This package allows a single Laravel installation to work wi

null 658 Jan 6, 2023
Example of using abrouter/abrouter-laravel-bridge in Laravel

ABRouter Laravel Example It's a example of using (ABRouter Laravel Client)[https://github.com/abrouter/abrouter-laravel-bridge] Set up locally First o

ABRouter 1 Oct 14, 2021
Laravel router extension to easily use Laravel's paginator without the query string

?? THIS PACKAGE HAS BEEN ABANDONED ?? We don't use this package anymore in our own projects and cannot justify the time needed to maintain it anymore.

Spatie 307 Sep 23, 2022
Laravel application project as Sheina Online Store backend to be built with Laravel and VueJS

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Boas Aditya Christian 1 Jan 11, 2022
Postgis extensions for laravel. Aims to make it easy to work with geometries from laravel models.

Laravel Wrapper for PostgreSQL's Geo-Extension Postgis Features Work with geometry classes instead of arrays. $model->myPoint = new Point(1,2); //lat

Max 340 Jan 6, 2023