This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React, { useReducer } from "react"; | |
| import axios from "axios"; | |
| import authContext from "./authContext"; | |
| import authReducer from "./authReducer"; | |
| import setAuthToken from "../../utils/setAuthToken"; | |
| import { | |
| REGISTER_SUCCESS, | |
| REGISTER_FAIL, | |
| USER_LOADED, | |
| AUTH_ERROR, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React, { useState, useContext, useEffect } from "react"; | |
| import ContactContext from "../../context/contact/contactContext"; | |
| const ContactForm = () => { | |
| const contactContext = useContext(ContactContext); | |
| const { addContact, updateContact, clearCurrent, current } = contactContext; | |
| useEffect(() => { | |
| if (current !== null) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use Illuminate\Support\Facades\Route; | |
| use App\Http\Controllers\PostController; | |
| use App\Http\Controllers\UserController; | |
| use App\Http\Controllers\PeopleController; | |
| use App\Http\Controllers\HomeFeedController; | |
| use App\Http\Controllers\PostLikeController; | |
| use App\Http\Controllers\UserPostController; | |
| use App\Http\Controllers\DashboardController; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Policies; | |
| use App\Models\User; | |
| use App\Models\Comment; | |
| use Illuminate\Auth\Access\HandlesAuthorization; | |
| class CommentPolicy | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Http\Controllers; | |
| use App\Models\User; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Support\Facades\Hash; | |
| class AuthController extends Controller | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link href="{{ asset('css/app.css') }}" rel="stylesheet"> | |
| <title>Follow.me</title> | |
| </head> | |
| <body class="bg-gray-200"> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| class CreatePostsTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Http\Controllers\Auth; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Http\Request; | |
| class LoginController extends Controller | |
| { | |
| public function __construct() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Models; | |
| use App\Models\User; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| class Follow extends Model | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SCSS SYNTAX | |
| //@import './other_sass_file'; | |
| @use './other_sass_file'; | |
| $font-stack: Helvetica, sans-serif; | |
| $primary-color: #333; | |
| body { | |
| font: 100% $font-stack; | |
| color: $primary-color; |