Skip to content

Instantly share code, notes, and snippets.

View tderick's full-sized avatar
🏠
Working from home

DERICK TEMFACK tderick

🏠
Working from home
View GitHub Profile
@tderick
tderick / ContactEmail.php
Created August 30, 2022 00:59
The final look of ContactEmail.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use App\Models\Contact;
@tderick
tderick / contact.blade.php
Created August 30, 2022 00:52
The content the email contact template
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
</head>
<body>
<h2>You received a message on your site</h2>
<ul>
@tderick
tderick / ContactEmail.php
Last active August 30, 2022 02:28
Default content of mailable class
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ContactMail extends Mailable
@tderick
tderick / App.css
Last active August 25, 2022 10:41
todo
* {
margin: 0;
padding: 0;
}
.container {
background: linear-gradient(to right bottom, #e1b382, #c89666);
width: 100%;
min-height: 100vh;
display: flex;
<?php
add_action( 'login_head', 'wpse_121687_hide_login' );
function wpse_121687_hide_login() {
$style = '';
$style .= '<style type="text/css">';
$style .= '.login form .user-pass-wrap{ display: none }';
$style .= '.login form .submit { display: none }';
$style .= '.login form .forgetmenot { display: none }';
$style .= '.login form .input { display: none }';
$style .= '.login form label { display: none }';
@extends('admin.admin_layouts')
@section('admin_content')
<h1 class="h3 mb-3 text-gray-800">Email Notification Parameter</h1>
<form action="{{ url('admin/setting/general/parameters/parameter-save') }}" method="post">
@csrf
<div class="card shadow mb-4">
<div class="card-body">
<h4>
<!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, shrink-to-fit=no">
<title>Admin Panel</title>
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Admin\GeneralSetting;
use App\Models\Admin\Parameters;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
<?php
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Model;
class Parameters extends Model
{
protected $table = 'parameters';
<?php
namespace App\Http\Controllers\Front;
use App\Http\Controllers\Controller;
use App\Mail\ContactPageMessage;
use App\Models\Admin\Admin;
use App\Models\Admin\ContactForm;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;