Giter Site home page Giter Site logo

killian-mahe / shareyourproject Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 15.71 MB

Project social network (old repo, see the new at https://github.com/shareyourproject)

Home Page: https://app.shareyourproject.fr

PHP 40.11% Vue 44.69% Shell 0.18% Blade 11.15% TypeScript 3.86%
php laravel vuejs

shareyourproject's Introduction

shareyourproject's People

Contributors

dependabot[bot] avatar killian-mahe avatar polo-wolo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

shareyourproject's Issues

Wrong property name in Project Model

Use owner in place of author.
Apply the modification in the model, database and factory.

From :

/**
 * Get the user that owns the project.
*/
public function author()
{
    return $this->belongsTo('App\User');
}

To :

/**
 * Get the user that owns the project.
*/
public function owner()
{
    return $this->belongsTo('App\User');
}

Update Input UI

Edit the custom-input component to update the UI of inputs

Projects post in database seeding

Project posts are missing in the database seeding.

To add :

$posts = factory(App\Models\Post::class, 2)->make();
$project->posts()->saveMany($posts);

User-post relation wrongly defined

The relationship between a post and his author isn't correctly defined in the User model, as above :

/**
 * Get the user that wrote the post.
 */
public function posts()
{
    return $this->hasMany('App\Models\Post');
}

This assumes that the foreign key in the posts table is user_id. However, the correct column name should be author_id.

Solution :

/**
 * Get the user that wrote the post.
 */
public function posts()
{
    return $this->hasMany('App\Models\Post', 'author_id');
}

Add technologies

Add technologies in the app (for a user and a project).

  • Controller
  • Factory
  • Relationships in model and migrations
  • Tests

Fix "Passport" Auth routes

this error : "Class 'Laravel\Passport\Passport' not found" appear for every pages
It need to be fix in :
AuthServiceProvider.php

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.