Laravel implementation of the RealWorld app

Overview

Laravel implementation of RealWorld app

This Laravel app is part of the RealWorld project and implementation of the Laravel best practices.

See how the exact same Medium.com clone (called Conduit) is built using different frontends and backends. Yes, you can mix and match them, because they all adhere to the same API spec

How to run the API

Make sure you have PHP and Composer installed globally on your computer.

Clone the repo and enter the project folder

git clone https://github.com/alexeymezenin/laravel-realworld-example-app.git
cd laravel-realworld-example-app

Install the app

 composer install
 cp .env.example .env

Run the web server

php artisan serve

That's it. Now you can use the api, i.e.

http://127.0.0.1:8000/api/articles
You might also like...
Keep your forms alive, avoid `TokenMismatchException` by gently poking your Laravel app.

Poke Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app. Keep this package free Your support allows me to keep this

Web app to share your favorite photos, made with laravel
Web app to share your favorite photos, made with laravel

Kuro Photos Web app to share your favorite photos, made with laravel. This web app was made for educationals purposes only. I enjoyed so much learning

Laravel 9 Web App - Our client José Gustavo, passionate about soccer and technology, wants to have an application that simulates the soccer leagues in his neighborhood, called My League.

Laravel 9 Web App - Our client José Gustavo, passionate about soccer and technology, wants to have an application that simulates the soccer leagues in his neighborhood, called My League.

A Real time chat app made in Next.js, Laravel and Ably.

Chat App with Next.js, Laravel and Ably This repository serves as a code container for the tutorial I wrote on Ably's Blog. Blog link will be updated

Instagram Clone App made with Laravel a PHP Framework

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

¡BACKEND OVER APP! API REST IMPLEMENTANDO CONCEPTOS DE ARQUITECTURA HEXAGONAL, DDD, TDD Y SOLID. HECHO EN LARAVEL & PHP
¡BACKEND OVER APP! API REST IMPLEMENTANDO CONCEPTOS DE ARQUITECTURA HEXAGONAL, DDD, TDD Y SOLID. HECHO EN LARAVEL & PHP

¡BACKEND OVER APP! API REST IMPLEMENTANDO CONCEPTOS DE ARQUITECTURA HEXAGONAL, DDD, TDD Y SOLID. HECHO EN LARAVEL & PHP

PHP backend Scripts to add and Manage Live tv Streaming android app
PHP backend Scripts to add and Manage Live tv Streaming android app

PHP Backend to Manage Live TV Streaming Android app Follow Given Steps to Setup Local Environment to run this php Script Setting Up Local Environment

Crater is an open-source web & mobile app that helps you track expenses, payments & create professional invoices & estimates.
Crater is an open-source web & mobile app that helps you track expenses, payments & create professional invoices & estimates.

Introduction Crater is an open-source web & mobile app that helps you track expenses, payments & create professional invoices & estimates. Web Applica

Web based fantasy sports draft app
Web based fantasy sports draft app

Hoot Draft makes running drafts for fantasy sports a real hoot! (dad jokes sold separately) Large color-coded draft board updates live during the draf

Comments
  • God method

    God method

    https://github.com/alexeymezenin/laravel-realworld-example-app/blob/aa45dfbc71e60a0b137a284f02ac90f288b3c927/app/Models/Article.php#L44 подскажите это тот самый случай или другой?

    Single responsibility principle

    opened by ghost 9
  • Метод filter() в модели Article

    Метод filter() в модели Article

    Как работает метод filter() вот в этом участке кода и откуда он берется? Файл: App\Models\Article.php

    public function getFiltered(array $filters): Collection
    {
        return $this->filter($filters, 'tag', 'tags', 'name')
            ->filter($filters, 'author', 'user', 'username')
            ->filter($filters, 'favorited', 'users', 'username')
            ->when(array_key_exists('offset', $filters), function ($q) use ($filters) {
                $q->offset($filters['offset'])->limit($filters['limit']);
            })
            ->with('user', 'users', 'tags', 'user.followers')
            ->get();
    }
    

    В моделях (query builder) нет такого метода. Он есть в коллекциях, но там только callback в качестве параметра и вообще не имеет отношения к данной ситуации. Да и я вообще по всему laravel ничего похожего не нашел. Уже голову сломал!

    opened by c0ntr-all 2
  • Question on implementing authorization in a Request class

    Question on implementing authorization in a Request class

    Excelent project!

    But isn't the implementation of authorization in a Request class (DestroyRequest) rather than a Policy class a violation of the best practices?

    opened by milosh-dev 1
Owner
null
Scrumwala: Your very own Scrum, Agile project management web app - built with Laravel

Scrumwala Your very own Scrum/Agile web app built with Laravel Features Create and manage projects with plan and work views Group issues in a project

null 255 Nov 2, 2022
Laravel web app for signing up for community service opportunities

Community Service A Laravel web app for registering for service opportunities. Installation Make sure the following are installed on your system: Node

North Point Ministries 0 Mar 6, 2019
A Visual Bookmark App built on top of Laravel 5

Laravel Bookmark Visual bookmark organizer application in Laravel ![screenshot](https://rivario.com/bookmark/images/bookmark.png ""bookmark"") Working

YongHun Byun 155 Mar 25, 2022
A Powerful Laravel Help Desk and Lead Management App

Handesk Description Handesk has been created by our need (At Revo Systems www.revo.works) to have a powerful yet simple Ticketing system, we needed a

Jordi Puigdellívol 1.2k Jan 2, 2023
A good, non-specialized Laravel base site for faster app development

Larastrap This is a non-specialized Laravel base site containing generalized components for faster development of nearly any type of site. It includes

Memphis PHP 2 Jul 31, 2022
Todo App with Laravel 8

Todo App with Laravel 8 Demo: https://phplaravel-664318-2249917.cloudwaysapps.com/ username: [email protected] password: demodemo Features 2 Models

Nav Appaiya 1 Nov 23, 2021
Todo App using Laravel 8 + Vuejs

Todo App using Laravel 8 + Vuejs

Rizwan Ullah 1 Nov 21, 2021
A mini social media like web app built using Laravel 8 & Vue JS 3

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

Davidson Ramos 2 Feb 1, 2022
Laravel Back-End for "Expiry Cart" App

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

Yaman Qassas 6 Jun 27, 2022
Hotel Management App using Laravel & Orchid for admin

Hotel Management System Installation Open a terminal session in the project's root. Install dependencies by running the command: composer install Run

null 1 Feb 8, 2022