Skip to content

Instantly share code, notes, and snippets.

View harryWonder's full-sized avatar
🇳🇬
I am that software developer that you cannot sideline. I am <harrywonder/>

Ilori stephen harryWonder

🇳🇬
I am that software developer that you cannot sideline. I am <harrywonder/>
View GitHub Profile
@harryWonder
harryWonder / Welcome.vue
Created October 26, 2020 09:57
This file is responsible for creating our Homepage view file.
<template>
<main>
<WelcomeComponent></WelcomeComponent>
</main>
</template>
<script type="text/javascript">
import WelcomeComponent from '../components/WelcomeComponent';
export default {
components: {
@harryWonder
harryWonder / DashboardComponent.vue
Created October 26, 2020 09:35
This file is where an authenticated user goes in the ld-fullstack lesson. It contains basic crud features for the forums.
<template id="">
<div>
<header>
<Nav></Nav>
</header>
<section class="app_description">
<div class="container">
<div class="row">
<div class="six columns forums-column">
<template v-if="type !== 'comments'">
@harryWonder
harryWonder / WelcomeComponent.vue
Created October 26, 2020 09:14
This file is going to create a new Component which is going to contain our Login View and our Signup View.
<template>
<div>
<header>
<Nav></Nav>
</header>
<section class="app_description">
<div class="container">
<div class="row">
<div class="six columns login-column">
<h5>Login to your <b>ld-talk</b> account.</h5>
@harryWonder
harryWonder / Nav.vue
Created October 26, 2020 09:01
This is the base nav file for all Vue files or components we will be creating.
<template>
<nav>
<div class="container">
<div class="row">
<div class="six columns">
<a href="/" class="application-title"><i class="material-icons">sms</i> Ld-Talk</a>
</div>
<div class="six columns">
<ul v-if="!isLoggedIn">
<li><router-link :to="{ name: 'Welcome' }"><i class="material-icons">lock_open</i> Login</router-link></li>
@harryWonder
harryWonder / App.vue
Created October 25, 2020 15:08
This is the Base Template for the ld-fullstack lesson.
<template>
<main>
<router-view></router-view>
</main>
</template>
<script type="text/javascript">
export default {}
</script>
@harryWonder
harryWonder / api.php
Created October 25, 2020 14:30
The list of API Endpoints for the ld-fullstack application.
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
@harryWonder
harryWonder / CommentsController.php
Created October 25, 2020 13:11
This file creates a new comment for the ld-fullstack lesson.
<?php
namespace App\Http\Controllers;
use App\Forum as ForumModel;
use App\Comment as CommentModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
@harryWonder
harryWonder / ForumController.php
Created October 25, 2020 12:09
This file is responsible for creating a new forum for the ld-fullstack lesson.
<?php
namespace App\Http\Controllers;
use App\Forum as ForumModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class ForumsController extends Controller
@harryWonder
harryWonder / SignupController.php
Created October 25, 2020 11:35
This file creates a new account for a user and logs the user in.
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
@harryWonder
harryWonder / LoginController.php
Created October 25, 2020 11:24
This is the login module for the ld-fullstack blog
<?php
namespace App\Http\Controllers\Auth;
use Auth;
use App\User;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;