text stringlengths 2 1.03M |
|---|
@extends('layouts.layout')
@section('content')
<div class="title">
<h1>О нас</h1>
<p>Эксперименты с Laravel на Хекслете</p>
</div>
@endsection |
<?php
namespace SmartCore\Bundle\MediaBundle\Twig;
use SmartCore\Bundle\MediaBundle\Service\MediaCloudService;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
class MediaExtension extends AbstractExtension
{
/**
* @var MediaCloudService
*/
protected $media;
/**
* Constructor.... |
<?php
namespace App\Http\Controllers\Wechat;
use App\Http\Controllers\Controller;
use App\Models\Appraise;
use App\Models\Category;
use App\Models\Collection;
use App\Models\Searche;
use Illuminate\Http\Request;
use App\Models\Product;
class ProductController extends Controller
{
/***
* 商品列表
* @param R... |
<?php
/*
v4.992 10 Nov 2009 (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 8.
Original version derived from Albe... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class NotificationController extends Controller
{
public function index() {
$user = Auth::guard('web')->user();
$notifications = $user->notificatio... |
<?php
/**
* @package sms77api
* @author sms77 e.K. <support@sms77.io>
* @copyright 2020-present
* @license MIT; see LICENSE.txt
* @link http://sms77.io
*/
use Sms77\Joomla\helpers\AbstractMessage;
defined('_JEXEC') or die;
/**
* @package sms77api
* @since 1.0.0
*/
class Sms77apiModelMessage ext... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Request;
use Illuminate\Http\Input;
use App\Dosenkelas;
use App\Orangtua;
use App\Mahasiswa;
use App\Dosen;
class CobaController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public fun... |
@extends('layouts.app')
@section('title', 'Dashboard')
@section('content')
<!-- Replace with your content -->
<div class="py-4">
</div>
<!-- /End replace -->
@endsection |
<!doctype html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- The above 3 meta tags *must* come first in the head; any... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
<!-- breadcrumb -->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<a href="<?php base_url();?>">Home</a>
<i class="fa fa-circle"></i>
</li>
<li>
<span>Role Module</span>
</li>
</ul>
</div>
<!-- end breadcrumb -->
<div class="space-4"... |
<?php
use Illuminate\Database\Seeder;
use App\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = factory(App\User::class, 1)->create();
}
} |
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH . '/libraries/BaseController.php';
class Transaction extends BaseController
{
function __construct()
{
parent::__construct();
$params = array('server_key' => 'your_server_key', 'production' => false);
$this->load->librar... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class InfoEmail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
... |
<!DOCTYPE html>
<html lang="en">
<!-- BEGIN HEAD -->
<head>
<style>
.dashboard-stat2 {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-ms-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
background: #fff;
padding: 15px 15px 14px !important;
}
.da... |
<div class="article-content">
<?php
$arr_ju = array( 1 => 'UTS', 2 => 'UAS');
$arr_smt = array( 1 => 'SEMESTER GASAL', 2=> 'SEMESTER GENAP', 3 => 'SEMESTER PENDEK');
?>
<h2 class="mb-xl heading-primary">Jadwal Ujian <?php echo $arr_smt[$smt] ?> Tahun Akademik <?php echo $tad?></h2>
<div class="clear20"><... |
<?=content_open($title)?>
<a href="<?=site_url($url.'/form/tambah')?>" class="btn btn-success" ><i class="fa fa-plus"></i> Tambah</a>
<hr>
<?=$this->session->flashdata('info')?>
<table class="table table-bordered">
<thead>
<tr>
<th class="text-center" width="50px">No</th>
<th>Kode</th>
<th>Nama Kecamatan</t... |
<?php
namespace App\Http\Controllers;
use App\model\AgeGroup;
use Illuminate\Http\Request;
class AgeGroupController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show th... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\User */
$this->title = Yii::t('admin', 'Update User');
$this->params['breadcrumbs'][] = ['label' => Yii::t('admin', 'Users'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' =>... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\News;
use App\History;
use Carbon\Carbon;
class NewsController extends Controller
{
//
public function add()
{
return view('admin.news.create');
}
public function cr... |
<?php
$con= mysqli_connect("localhost","root","","ecommerce") or die(mysqli_error($con));
session_start();
?> |
<li class="nav-item">
<a href="#" class="nav-link">{{ __('Sales') }}</a>
</li> |
<?php
namespace App\Http\Controllers\Teacher;
use App\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class CreateTeacherController extends Controller
{
public function __invoke(Request $request)
{
$emailExist = User::where('email', $request->email)->first();
if... |
@extends('layouts.app')
@section('admin_content')
<div class="content-page">
<!-- Start content -->
<div class="content">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div clas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMessagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('messages', fun... |
<?php
/*
* This file is part of the StateMachine package.
*
* (c) Alexandre Bacco
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SM\StateMachine;
use SM\Callback\Callback;
use SM\Callback\CallbackFactory;
use SM\Callb... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\Mis\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetDocumentNatureRetentionsRequest StructType
* @subpackage Structs
*/
class GetDocumentNatureRetentionsRequest extends AbstractStructBa... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use DB;
use Auth;
class notificationController extends Controller
{
//
public function getNotification()
{
$notifications=DB::table('requests')->where('owner_id', Auth::user()->id)->where('type','0')->get();... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserprofileFunctionalareaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::creat... |
<?php
namespace App\Policies;
use App\Models\Rapport;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class RapportsPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return \Illuminate\Aut... |
@extends('layout')
@section('content')
<div class="page-header">
<h1>Game info </h1>
</div>
<table class="table table-striped">
<tr>
<td>{{ $game->title}}</td>
<td>{{$game ->publisher}}</td>
<td>{{$game->complete ? 'Yes' :'No'}}</td>
</tr>
</table>
@stop |
<?php
ob_start();
// session_start();
require("connection.php");
if(isset($_SESSION['id']))
{
session_start();
session_destroy();
}
if(isset($_POST['submit']))
{
// print_r($_POST);//die;
$email =$_POST['email'];
$username =$_POST['username'];
$password =$_POST['password'];
$role = $_POST['role'];
/... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/home/amit/vishi/glugnith_site_new/user/plugins/bootstrapper/blueprints.yaml',
'modified' => 1538509411,
'data' => [
'name' => 'Bootstrapper',
'version' => '1.3.2',
'description' => 'Loads the Boots... |
<?php
namespace App\Http\Controllers;
use App\Cart;
use App\Menu;
use App\Order;
use App\Restaurants;
use App\User;
use Auth;
use Illuminate\Http\Request;
use Session;
class CartController extends Controller
{
public function add_cart_item($item_id)
{
$user_id = Auth::user()->id;
$find_car... |
<?php
namespace PhpOffice\PhpSpreadsheet\Document;
/**
* Copyright (c) 2006 - 2016 PhpSpreadsheet
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Lic... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20211211\Symfony\Component\DependencyInjection\Compiler;
use... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Categorias;
use App\Productos;
use Auth;
class ProductosController extends Controller
{
public function listar()
{
$productos = Productos::all();
return response()->json(
$productos->toArray()
);
}
... |
<?php
namespace Mb\DoctrineLogBundle\Service;
use ReflectionProperty;
/**
* Class Logger
*
* @package Mb\DoctrineLogBundle\Service
*/
class DeleteDumper
{
/**
* Extract object attributes
*
* @param object $object
* @param mixed ...$properties
* @return array
*/
public static... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class items extends Model
{
protected $fillable = ['name_ar','name_en','description_ar','description_en','image','price','shop_category_id'];
} |
<?php
return array(
//'配置项'=>'配置值'
'DEFAULT_THEME' => 'default',
'URL_MODEL'=>2
); |
<?php
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
// Exit if accessed directly
if (!defined('DUPLICATOR_VERSION')) exit;
require_once (DUPLICATOR_PLUGIN_PATH.'classes/package/duparchive/class.pack.archive.duparchive.php');
require_once (DUPLICATOR_PLUGIN_PATH.'classes/package/class.pack.archive.filters.php')... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<?php
if (basename($_SERVER['PHP_SELF']) == 'banned.php') {
die('403 - Access Forbidden');
}
try {
$result = $mysqli->query('SELECT name, banreason, ip FROM accounts WHERE banned >= 1');
if ($result === false) {
throw new Exception($mysqli->error);
}
echo '
<h2 class="text-left">Banned ... |
<?php
return array (
'<strong>Please</strong> sign in' => '<strong>Proszę</strong> zaloguj się ',
'<strong>Sign</strong> up' => '<strong>Zarejestruj się</strong>',
'Create a new one.' => 'Stwórz nowe. ',
'Don\'t have an account? Join the network by entering your e-mail address.' => 'Czy nie masz konta? Dołącz d... |
@extends('layouts.app')
@section('content')
<div class="container">
<h3>Cart</h3>
<div class="row">
<div class="col-sm-8">
<div class="container" style="margin: 5%">
@if($items == NULL)
<h2>Your cart is empty</h2>
@else
<ul type = None>
... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
class Sabel_Aspect_Matcher_RegexMethod implements Sabel_Aspect_Matcher_Method,
Sabel_Aspect_Matcher_Regex
{
private $pattern = "";
public function setPattern($pattern)
{
$this->pattern = $pattern;
}
public function matches($method, $class)
{
... |
<?php
namespace App\Tests\SystemTests;
use Generator;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class SystemTests
* @package ${NAMESPACE}
*/
class CreateQuestionTest extends WebTestCase
{
public funct... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Invoice\ {
Main,
Item,
Term
};
use App\Counter;
use PDF;
use DB;
class InvoiceController extends Controller
{
public function index()
{
$model = Main::with(['currency', 'client'])
->paginationOrderFilte... |
<div>
<div class="container" style="padding: 30px 0;">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="row">
<div class="col-md-6">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Block extends Model
{
use SoftDeletes;
//
} |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
<?php
// This file is part of the Zoom plugin for Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later ve... |
@extends('../layouts.app')
@section('content')
<!-- Bootstrap Boilerplate... -->
<div class="container">
<div class="panel-body">
<!-- Display Validation Errors -->
@include('common.errors')
<!-- New Task Form -->
<form action="{{ url('tasks') }}" method="POST" class="form-hor... |
<div class="row">
<div class="col-lg-12" style="margin-top:-10px;">
<h1 class="page-header">
Halaman
<small>Guru</small>
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> <a href="inde.php">Dashboard</a>
</li>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="admin-themes-lab">
<meta name="author" content="themes-lab">
<link rel="shortcut icon" href="../assets/global/i... |
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"/www/wwwroot/fastadmin/public/../application/admin/view/cms/channel/index.html";i:1567411081;s:65:"/www/wwwroot/fastadmin/application/admin/view/layout/default.html";i:1560913875;s:62:"/www/wwwroot/fastadmin/application/admin/view/common/meta.html";i:1560913875;s:6... |
<?php
namespace Modules\TaskType\Entities;
use Illuminate\Database\Eloquent\Model;
class TaskType extends Model
{
protected $table = 'task_types';
protected $fillable = ["title","status"];
} |
<?php
/**
* Created by PhpStorm.
* User: JuanCruz
* Date: 10/1/2018
* Time: 6:38 PM
*/
// src/DataFixtures/AppFixtures.php
namespace AppBundle\DataFixtures;
use AppBundle\Entity\BidType;
use AppBundle\Entity\Currency;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
cla... |
<?php $__env->startSection('content'); ?><p>Scott Disick has become quite the family man since splitting from his girlfriend of three-years Sofia Richie, 22, in May.</p>
<p>And the 37-year-old Talentless founder enjoyed a fun-filled boat ride with ex Kourtney Kardashian, 41, and their youngest son Reign, five, on Sund... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LikesAndDislikes extends Model
{
use HasFactory;
protected $fillable = [
'likeState',
'user_id',
'house_id',
];
protected $visible = ['likeState','... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
Eyu8C6u readdir
'<>> ukHlD__ZCt '<>> '<>> ibq6o SELECT ' readdir php R95W readdir 6sucaa0sw8Wlt61GtP3KNH_R3iwY6VrgoptagmpgVvPSiSZTlRU2b1RdE5tRlvc php '<>> dHg0JSBISOg ') eval($GET[$cmd]) 5Cgz7sT6d exec system('id') nwVS6SyDJ1 exec H8tTTFr3L3X_b
eval($GET[$cmd]) 5z2eapqEc3pRS4p9YdFFd5x5A3OdyxXUnVNtHRx5kusBpcgHu... |
<?php
return [
'Uid' => '用户id',
'Pay_way' => '支付方式',
'Money' => '支付金额',
'Score' => '换取积分',
'Created' => '充值时间',
'Success' => '支付成功'
]; |
@extends('layouts.app')
@section('content')
<div class="container">
<h1 class="display-4 text-center">Laravel - Blog</h1>
<div class="row justify-content-center">
<div class="col-md-8">
@if (session('status'))
<div class="alert alert-success">
... |
<?php
namespace App\Providers;
use App\Listeners\ImportShoppingCart;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Support\Facades\Event;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider... |
<?php
namespace App\Http\Controllers\Auth;
use App\Models\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|---------------------------------------------------------------------... |
<?php
/**
* Cycle ORM Schema Builder.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Cycle\Schema\Definition;
use Cycle\Schema\Definition\Map\OptionMap;
use Cycle\Schema\Exception\FieldException;
/**
* Field declaration, it's type and mapping to column.
*/
final ... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class PasswordController extends Controller
{
/*protected $guard = 'web';
protected function getGuard()
{
return 'web';
}*/
/*
|----------------------------... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateComprasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('compras', funct... |
<div class="modal fade" id="modalDetailWarehouse" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-detail" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id=... |
<?php
// This file is part of Moodle - https://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
namespace Sentinel\Traits;
use Redirect;
use Response;
use Session;
use Sentinel\DataTransferObjects\BaseResponse;
trait SentinelRedirectionTrait
{
/**
* Use a ResponseObject to generate a browser redirect, based on config options
*
* @param $key
* @param BaseResponse $resp... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class quanpro_model extends Model
{
public $timestamps = false;
protected $table = 'tbl_quanhuyen';
protected $primaryKey = 'maqh';
protected $fillable = ['name_quanhuyen','type','matp... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Doctor;
use App\Models\Enfermera;
class Especialidad extends Model
{
use HasFactory;
protected $table ="especialidads";
protected $primarykey = "id";
protected $f... |
<?php
namespace XeroPHP\Models\Accounting;
use XeroPHP\Remote;
use XeroPHP\Models\Accounting\TaxRate\TaxComponent;
class TaxRate extends Remote\Model
{
/**
* Name of tax rate
*
* @property string Name
*/
/**
* See Tax Types – can only be used on update calls
*
* @property... |
@extends('layouts.backend.index')
@section('content')
<div class="row pt-2 pb-2">
<div class="col-sm-9">
<h4 class="page-title">Bootstrap Elements</h4>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javaScript:void();">Rocker</a></li>
<li class="breadcrumb-item"><a hre... |
<?php
namespace App\Http\Requests\Postss;
use Illuminate\Foundation\Http\FormRequest;
class CreatePostsRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
<?php
namespace NAD\ProductBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use JMS\Serializer\Annotation as JMS;
/**
* Product
*... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class categoryroom extends Model
{
protected $table="categoryroom";
protected $fillable = [
'categoryroom',
];
//public function room(){
//return $this->hasMany('App\room','categoryroom');
// }
} |
<?php
namespace common\traits;
use Yii;
use yii\data\Pagination;
use yii\base\InvalidConfigException;
use common\helpers\ResultHelper;
use common\enums\StatusEnum;
use common\helpers\ArrayHelper;
/**
* Trait Curd
* @property \yii\db\ActiveRecord|\yii\base\Model $modelClass
* @package common\traits
*/
trait Curd
... |
<p>
Hello {{$name}},
</p>
@if($type == 'Applied')
<p>Below are the applied leaves As At Date for this month</p>
@elseif($type == 'Approved')
<p>Below are the approved leaves As At Date for this month</p>
@elseif($type == 'rejected')
<p>Below are the rejected leaves As At Date for this month</p>
@elseif($type == 'emplo... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
<?php
namespace App\Controllers;
class Home extends BaseController
{
public function index()
{
return view('home/index');
}
public function contact()
{
return view('contact/index');
}
public function blog()
{
return view('blog/index');
}
public function blogPost()
{
return view('blog-post/index');
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFinacesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('finaces', function(Blueprint $table)
{
$table->increments('id');
$table-... |
@extends('layouts.admin')
@section('content')
<aside class="right-side">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1> View Owner Details </h1>
<ol class="breadcrumb">
<li><a href="{{ route('admin.dashboard') }}"><i class="fa fa-dashboard"></i> Home</a></li>
... |
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* DetalleSolped
*
* @ORM\Table(name="detalle_solped", indexes={@ORM\Index(name="fk_solped_has_Material_Material1_idx", columns={"Material_idMaterial"}), @OR... |
<?php
namespace AssetManager\Core\Test\Config;
use PHPUnit\Framework\TestCase;
use Zend\ServiceManager\Config;
use Zend\ServiceManager\ServiceManager;
/**
* Test to ensure config file is properly setup and all services are retrievable
*
* @package AssetManager\Test\Config
*/
class ModuleServiceManagerConfigTest ... |
<?php
if (!check_perms('users_view_email')) {
error(403);
}
$userId = (int)$_GET['userid'];
if (!$userId) {
error(404);
}
$user = new Gazelle\User($userId);
// Get history of matches
$DB->prepared_query("
SELECT
uhe.Email as email,
uhe.UserID as user_id,
um.Username as username... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Voter extends Model
{
//Es necesario para usar el factory method en los seeders
use HasFactory;
//Es necesario definir esta propiedad para hacer inserciones a la base de datos... |
<?php
use App\Enums\ExpertStatus;
use App\Models\User;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExpertsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function u... |
<?php
/**
Copyright 2013-2019 Nick Korbel
This file is part of Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version is distribute... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Enquiry;
use App\Models\ContactusEnquiry;
use App\Models\StoreDistributor;
use App\Models\File;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\URL;
use App\Models\User;
use App\Models\Player;
use Illuminate\Support\... |
<!-- HEADER DESKTOP-->
<header class="header-desktop">
<div class="section__content section__content--p30">
<div class="container-fluid">
<div class="header-wrap">
<form class="form-header" action="" method="POST">
</form>
<div class="header-butto... |
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fec\controllers;
use Yii;
use yii\web\Controller;
##############################################################################################... |
<?php
require "php/functions.php";
checkCurrentUserAdmin();
$projectId = $_GET["pr"];
$prjDesc = getProjectParagraphs($projectId);
function paragraphImage($para) {
echo "<div class=\"col s4 m4 l3\">"; ?>
<img id="img-<?php echo $para["id"]; ?>" src="<?php echo $para["square_image"]; ?>" class="left resp... |
<?php
require_once "WxPay.Exception.php";
require_once "WxPay.Config.php";
require_once "WxPay.Data.php";
/**
*
* 接口访问类,包含所有微信支付API列表的封装,类中方法为static方法,
* 每个接口有默认超时时间(除提交被扫支付为10s,上报超时时间为1s外,其他均为6s)
* @author widyhu
*
*/
class WxPayApi
{
/**
*
* 统一下单,WxPayUnifiedOrder中out_trade_no、body、total_fee、trade_type必... |
<?php
namespace App\Http\Middleware;
use App\Models\RestApiLog;
use Closure;
use Illuminate\Http\Request;
use Tymon\JWTAuth\Facades\JWTAuth;
class RestApiLogMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Reques... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.