text stringlengths 2 1.03M |
|---|
<?php
declare(strict_types=1);
namespace App\Model\User\UseCase\Activate;
use App\Model\Flusher;
use App\Model\User\Entity\User\Id;
use App\Model\User\Entity\User\UserRepository;
class Handler
{
private UserRepository $users;
private Flusher $flusher;
public function __construct(UserRepository $users,... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="AppBundle\Entity\CategoryRepository")
* @ORM\Table(name="category")
*/
class Category {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use yajra\DataTables\Datatables;
use App\Repository\SatuanRepository;
use Auth;
class SatuanController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
... |
<?php
class ModelReportOnline extends Model {
public function getOnline($data = array()) {
$sql = "SELECT co.ip, co.customer_id, co.url, co.referer, co.date_added FROM " . DB_PREFIX . "customer_online co LEFT JOIN " . DB_PREFIX . "customer c ON (co.customer_id = c.customer_id)";
$implode = array();
if (!empty(... |
<?php
/**
* Pi Engine (http://pialog.org)
*
* @link http://code.pialog.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://pialog.org
* @license http://pialog.org/license.txt BSD 3-Clause License
*/
namespace Pi\Application\Bootstrap\Resource;
use Pi;
use... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework n... |
<?php
if (!defined('USER_INVITATION_DIR')) {
define('USER_INVITATION_DIR', basename(__DIR__));
} |
<?php
namespace Modules\PardisCore\Models;
use App\Models\Province;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Plank\Mediable\Mediable;
class Company extends Model
{
use HasFactory, SoftDele... |
<?php
namespace Oro\Bundle\EntityConfigBundle\Migration;
use Doctrine\DBAL\Types\Type;
use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery;
use Psr\Log\LoggerInterface;
class RemoveEnumFieldQuery extends ParametrizedMigrationQuery
{
/** @var string */
protected $entityClass = '';
/** @v... |
<?php
use App\User;
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
/* DB::table("users")->truncate();
App\User::create([
"name" => "admin",
"email" =>... |
<?php
namespace User\Form;
use Zend\Form\FieldSet;
class LogInFieldSet extends FieldSet{
}
?> |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use App\User;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class CustomerAddress extends Model
{
use HasFactory, SoftDeletes;
protected $dates = [
'deleted_at', 'created_at', 'updated_at'
];
protecte... |
@extends('layouts.app')
@section('after-style')
<style type="text/css">
.rjbtn.discover_rj.ses_btn1{
margin-top: 70px;
margin-bottom: 20px;
}
.seswrp1{
padding-bottom: 110px;
}
#section1 .rj_single_block.seswrp1,
#section2 .rj_single_block.seswrp1{
padding-botto... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class UserChief
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
namespace Psalm\Tests;
use Psalm\Config;
use Psalm\Context;
use Psalm\Internal\Analyzer\FileAnalyzer;
use Psalm\Tests\Internal\Provider;
use function dirname;
use const DIRECTORY_SEPARATOR;
use function file_exists;
use function file_get_contents;
use function explode;
use function count;
use function substr;
us... |
<?php /* Smarty version Smarty-3.1.7, created on 2015-01-03 13:54:08
compiled from "C:\vtigerCRM610\apache\htdocs\vtigerCRM\includes\runtime/../../layouts/vlayout\modules\Vtiger\uitypes\OwnerFieldSearchView.tpl" */ ?>
<?php /*%%SmartyHeaderCode:423154a7f4804712e5-19865378%%*/if(!defined('SMARTY_DIR')) exit('no... |
<?php declare(strict_types=1);
namespace InstruktoriBrno\TMOU\Presenters;
use InstruktoriBrno\TMOU\Model\Event;
use InstruktoriBrno\TMOU\Model\Page;
use InstruktoriBrno\TMOU\Services\Events\FindEventByNumberService;
use InstruktoriBrno\TMOU\Services\Events\FindEventsService;
use InstruktoriBrno\TMOU\Services\MenuItems... |
<?php
namespace App\Entity;
use App\Entity\Image;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\UserProfileRepository;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass=UserProfileRepository::class)
*/
class UserProfile
{
/**
... |
<?PHP
session_start();
//Database Connection String
require("database/connect.php");
//Connect Strings
$connect = mysqli_connect($host, $user, $pass,$databasename) or die("Couldn't connect to database!");
//User Information
$id = isset($_SESSION['id']) ? $_SESSION['id'] : null;
$User_Number = isset($_SESSION... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonModule for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
... |
<?php
class execEssayAnsTemp_crud{
public function __construct(){
$GLOBALS['m'] = new MongoClient();
$GLOBALS['db'] = $GLOBALS['m']->bitsmun;
}
public function insert($username,$essay1,$essay2,$essay3){
$collection = $GLOBALS['db']->execEssayAnsTemp;
$temp_query = array("username" => $username);
$cur... |
<?php
use ycd\AdminHelper;
$defaultData = AdminHelper::defaultData();
$type = $this->getCurrentTypeFromOptions();
$isPro = '';
$proSpan = '';
if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
$isPro = '-pro';
$proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
}
?>
<div class="ycd-bootstrap... |
<?php
/**
* Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
*
* @package Fuel
* @version 1.9-dev
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2019 Fuel Development Team
* @link https://fuelphp.com
*/
namespace Email;
abstract class Email_Dri... |
<?php
namespace Website\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Registro</div>
<div class="panel-body">
<form class="form... |
<div class="header-area">
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="user-menu">
<ul>
<li><a href="#"><i class="fa fa-user"></i> My Account</a></li>
<li><a href="#"><i class="fa ... |
<?php
namespace Minhbang\Image;
use Minhbang\Kit\Extensions\Model;
/**
* Class ImageableModel
* Model sử dụng tính năng LINKED image phải thêm 'linked_image_ids' vào $fillable[]
*
* @package Minhbang\Image
* @property string $linked_image_ids
* @property-read string $linked_image_ids_original
* @property-read ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<?php... |
@extends('admin.layouts.app')
@section('main-content')
<div class="content-wrapper">
<div class="container-fluid">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
<li class="breadcrumb-item active">Departments</li>
</ol>
<div class="card m... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... |
<?php
/**
* Created by Magenest.
* Author: Pham Quang Hau
* Date: 11/05/2016
* Time: 13:33
*/
namespace Magenest\StripePayment\Model;
use Magenest\StripePayment\Helper\Constant;
use Magento\Framework\Model\Context;
use Magento\Framework\Registry;
use Magento\Framework\Api\ExtensionAttributesFactory;
use Magento\... |
<?php declare(strict_types=1);
namespace Qlimix\Environment\Value;
use Qlimix\Environment\Value\Exception\LoaderException;
use function explode;
use function getenv;
use function in_array;
use function is_numeric;
final class Loader implements LoaderInterface
{
/**
* @inheritDoc
*/
public function ... |
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class BookFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'authorid' => rand(0, 10),
'... |
<style>
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1000;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border: 16px solid #99FF00;
border-radius: 50%;
border-top: 16px solid #3498db;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
... |
<?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<int, class-string|string>
*/
... |
<?php
namespace App\Http\Controllers\Delivery;
use App\Http\Controllers\Controller;
use App\Models\Delivery;
use Illuminate\Http\Request;
class DeliveryManController extends Controller
{
public function create(){
return view ('backend.delivery.create');
}
public function list(){
$list=Del... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if($this->session->userdata("user_type") == "admin")
$this->load->view('inc/admin_header');
else
$this->load->view('inc/header');
?>
<body>
<div class="se-pre-con"></div>
<div class="page-container">
<!--/content-in... |
@extends('layouts.master')
@section('title_section')
<title>CUBIM - Registro</title>
<meta name="csrf-token" content="{{ csrf_token() }}"/>
@endsection
@section('styles_section')
{!! HTML::style('plugins/select2/select2.css') !!}
@endsection
@section('content_section')
<!-- BE... |
<?php
declare(strict_types = 1);
namespace Apex\Opus\Builders;
use Apex\Opus\Builders\{Builder, ModelBuilder};
use Apex\Opus\Helpers\DatabaseHelper;
use Apex\App\Pkg\Helpers\Registry;
use Apex\Container\Di;
use Apex\Db\Interfaces\DbInterface;
/**
* CRUD builder
*/
class CrudBuilder extends AbstractBuilder
{
/... |
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th> <span class="cursor-pointer sort" data-sort="id"> ID <i class="fa fa-sort" aria-hidden="true"></i></span> </th>
<th> <span class="cursor-pointer sort" data-sort="name"> Name <i class="fa fa-so... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', functio... |
@extends('blog.index')
@section('title','صفحه اصلی')
@section('keyword','')
@section('description','')
@section('content')
<section class="page-section direction-rtl p-0">
<div class="container bg-white pt-5">
<div class="row">
<!-- LAST UPLOAD -->
<div clas... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="card">
<div class="card-header">Form Pengumuman</div>
<div class="card-body">
<a href="{!! route('... |
<?php
// phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
use Sulao\BaiduBos\Client;
class ClientMock extends Client
{
public function getObjectAcl($path, array $options = [])
{
throw new Exception('', 404);
}
} |
<?php
/**
* @version $Id: profiler.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package Joomla.Framework
* @subpackage Error
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
*... |
<?php
/**
* THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT:
*
* https://github.com/davidtsadler/ebay-api-sdk-php
*
* Copyright 2014 David T. Sadler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200731224527 extends AbstractMigration
{
public function getDescription() : string
{... |
@include('admin.layouts.app')
<div class="main-container multivendors" id="container">
@include('admin.layouts.sidebar')
<div id="content" class="main-content">
<div class="d-flex justify-content-between mb-10 mt-30">
<div class="page-heading">
... |
<?php
/**
* Checker hook plugin class
*
* @since 1.0.0
* @package TInvWishlist\Helper
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
/**
* Checker hook plugin class
*/
class TInvWL_CheckerHook {
/**
* Filter current
*
* @var string
*/
priv... |
<?php
namespace App\Repositories;
use App\Models\Video;
class VideoRepository {
public function getTahukahKamuVideo() {
return Video::where('category', 'TK')->get();
}
public function getBereksperimenYukVideo() {
return Video::where('category', 'BY')->get();
}
public function get... |
<?php
namespace Stripe\Radar;
/**
* @internal
* @covers \Stripe\Radar\ValueListItem
*/
final class ValueListItemTest extends \PHPUnit\Framework\TestCase
{
use \Stripe\TestHelper;
const TEST_RESOURCE_ID = 'rsli_123';
public function testIsListable()
{
$this->expectsRequest(
'ge... |
<script src="{{ asset('vendor/laramanager/js/ckeditor/ckeditor.js') }}"></script>
@foreach($resource->fields as $field)
@if(view()->exists($field->fieldType->getViewPath('scripts')))
@include($field->fieldType->getViewPath('scripts'), (array) $field)
@endif
@endforeach |
{{-- FORM ENTRY DATA --}}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
@include('components.admin.kategori.tambah')
</div>
{{-- END --}}
</div>
{{-- FORM LIST DATA --}}
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
@include('components.admin.k... |
@extends('admin_layout')
@section('admin_title', 'Admin - Coupon')
@section('admin_content')
<div class="form-w3layouts">
<!-- page start-->
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading dashboard-hea... |
<?php
$a1=$_POST['search'];
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "wt";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * fr... |
<?php
use Illuminate\Database\Seeder;
class ExperiencesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('experiences')->insert([
[
'subject'=> 'Web designer',
'detail'=> ... |
<?php
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link http://codeigniter.com
*/
defined('BASEPATH') OR exit(... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<HTML>
<HEAD>
<TITLE>WMFFL 1993 Week 13 Newsletter</TITLE>
</HEAD>
<?php include "base/menu.php"; ?>
<H1 ALIGN=CENTER>1993 Season - Week 13</H1>
<HR size = "1">
<PRE>
WATKINS MILL FANTASY FOOTBALL LEAGUE
November 28, 1993
BLUE DIVISION ORANGE DIVISION
TEAM W L PCT PTS ... |
<div class="kong">
<div class="w1000 relative">
<?php if ($this->domain_type == 'tuli'):?>
<a target="_self" class="J_tuli_pay" href="javascript:void(0);"><img src="<?php echo $this->pipiFrontPath;?>/fontimg/activities/firstchargegifts/charge.gif" /></a>
<?php else :?>
<a target="_self" href="<?php echo $th... |
<?php
/**
* Класс очистки входных данных взят из CodeIgniter
*/
class InputClean
{
private $use_xss_clean = true;
private $xss_hash = '';
private $charset = 'UTF-8';
private $never_allowed_str = array(
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ruangan extends Model
{
//
protected $table = 'ruangan';
protected $filllable = ['title'];
public function jadwal_matakuliah(){
return $this->hasMany(jadwal_matakuliah::class);
}
} |
<div class="flex flex-col sm:justify-center items-center pt-6 mt-20 sm:pt-0 bg-gray-100">
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg bg-rese-top">
{{ $slot }}
</div>
</div> |
<!DOCTYPE html>
<html>
<head>
<title>Slider List <?= date("d-m-Y") ?> </title>
<?php $this->load->view('admin/inc/head') ?>
<link rel="stylesheet" href="<?= base_url() ?>assets/lib/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
<!-- editable elements -->
<link rel="stylesheet"... |
<?php
namespace backend\controllers;
use Yii;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
/**
* Site controller
*/
class SiteController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<!-- /.login-logo -->
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">{{ __('Login') ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Produto;
class ProdutosController extends Controller
{
public function listarProdutos()
{
$produtos = Produto::all();
return view('produtos.listarProdutos', compact('produtos'));
}
public function add... |
<?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Corte
* @package App\Models
* @version March 14, 2018, 9:40 am CLST
*
* @property string nombre
*/
class Corte extends Model
{
use SoftDeletes;
public $table = 'cortes';
protected $da... |
<?php
//error_reporting(0);
include_once('../entidades/listaprecio_det.php');
include_once('../datos/dt_listaprecio_det.php');
$listaDet = new Lista_Precio_Det();
$dtLista = new Dt_ListaPrecioDet();
if ($_POST) {
$varAccion = $_POST['txtaccion'];
switch ($varAccion) {
case '1':
try {
... |
<script src="assets/js/plugins.min.js"></script>
<script src="assets/js/app.min.js"></script>
<script src="assets/js/index.js"></script>
<script src="js/maskedinput.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/forms.js"></script> |
<?php
declare (strict_types=1);
namespace app\v1\controller;
use app\Request;
use core\base\BaseController;
use app\v1\validate\MobileCodeValidate;
use core\service\basic\MobileCodeService;
class ValidateController extends BaseController
{
/**
* 发送手机验证码
* @RequestMapping(path="/sendMobileCode", methods... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Test\MerchantData\Types;
use DTS\eBaySDK\MerchantData\Types\SellerType;
class SellerTypeT... |
<?php
/*
* Copyright 2016 SCTR Services
*
* Distribution and reproduction are prohibited.
*
* @package itsup-api-client
* @copyright SCTR Services LLC 2016
* @license No License (Proprietary)
*/
namespace Itsup\Api\EndPoint;
use Doctrine\Common\Collections\ArrayCollection;
use GuzzleHttp\Psr7\Respo... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Behat\Context\Ui\Admin;
use Behat\Behat\Context\Context;
u... |
@extends('layouts.main')
@section('title','Edit Stock')
@section('content')
<div id="msg"></div>
<div class="row">
<div class="col">
<form id="form" method="post" action="/inventory/{{ $inventory->id }}">
<div class="card">
<div class="card-header">
Edit Stock
</div>
<div class=... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Channel extends Model
{
protected $fillable = [
'id', 'channel_name', 'channel_abbr', 'principal_id', 'status'
];
public function account()
{
return $this->hasOne(Account::class, 'id', 'principal_id');
}
} |
<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20171108011842 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $sc... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Discover Your Event</title>
<!--[if gte mso 6]>
<sty... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Post;
class PostController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$posts = Post::orderBy('id', 'desc')->g... |
@extends('Frontend.master')
@section('about')
active
@endsection
@section('header_css')
<style>
.star-ratings-sprite {
background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/2605/star-rating-sprite.png") repeat-x;
font-size: 0;
height: 21px;
line-height: 0;
overflow: hidden;... |
@extends('layouts.main')
@section('title')
Customer Orders
@stop
@section('main-content')
<div class="container">
<div class="display">
<br><br>
<h3 class="oheader">Current Orders</h3>
<div class="current-orders">
@foreach($orders as $order)
@if( $order->is_fulfilled == 0 )
... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class InvoiceDetail extends Model
{
public function category()
{
return $this->belongsTo(Category::class, 'category_id', 'id');
}
public function product()
{
return $this->belongsTo(Product::class, 'product_id', '... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Checkboxradio - Default functionality</title>
<link rel="stylesheet" href="js-ui-1.12.1/base/jquery-ui.css"/>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="js-ui-1.12.1/jquery-ui.js"></script>
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders', functio... |
<?php
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose" file="ParagraphInsert.php">
* Copyright (c) 2019 Aspose.Words for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to a... |
<?php
declare(strict_types=1);
namespace Doctrine\Migrations\Tests\Configuration\Loader;
use Doctrine\Migrations\Configuration\Configuration;
use Doctrine\Migrations\Configuration\Loader\PhpFileLoader;
class PhpLoaderTest extends AbstractLoaderTest
{
public function load(string $prefix = '') : Configuration
... |
<h2>Thêm Lớp Học</h2>
<?php echo form_open('admin/class_admin/add'); ?>
<p>
<label for="subject">Môn Học:</label>
<input type='text' name='subject' id='subject' readonly='true' value='<?php echo $subject_name;?>'>
</p>
<p>
<label for="name">Tên Lớp Học:</label>
<?php echo form_input('name', set_value('name'... |
<?php
/*
* This file is part of CSBill package.
*
* (c) 2013-2015 Pierre du Plessis <info@customscripts.co.za>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace CSBill\CoreBundle\Mailer\Events;
use Swift_Message;
use Symfony\Component\... |
<?php
namespace matrozov\yii2amqp\jobs\model\save;
use matrozov\yii2amqp\jobs\model\ModelRequestJob;
/**
* Interface SaveModelRequestJob
* @package matrozov\yii2amqp\jobs\model\save
*/
interface SaveModelRequestJob extends ModelRequestJob
{
} |
<?php
/**
* @see https://github.com/laminas/laminas-mail for the canonical source repository
* @copyright https://github.com/laminas/laminas-mail/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-mail/blob/master/LICENSE.md New BSD License
*/
namespace LaminasTest\Mail\Storage;
use L... |
<?php
namespace dektrium\rbac\validators;
use dektrium\rbac\components\DbManager;
use yii\validators\Validator;
class RbacValidator extends Validator
{
/**
* @var DbManager
*/
protected $manager;
/**
* @inheritdoc
*/
public function init()
{
parent::init();
$t... |
<?php
use Faker\Generator as Faker;
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => 'Vlad',
'email' => 'admin@admin.com',
'password' => 'qwerty', // secret
'remember_token' => str_random(10),
];
}); |
@if (session()->get('alert'))
<div class="alert alert-dismissible alert-{{ session()->get('alert')['type'] }}">
<p class="mb-0">{!! session()->get('alert')['message'] !!}</p>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@endif
@if ($errors-... |
<?php
namespace App\Http\Controllers;
use App\jabatanModel;
use Request;
class jabatanController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$jabatan=jabatanModel::all();
return view('j... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\journal\SubjectSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Subjects';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="subject-index">
<h1><?= Html::en... |
<?php
namespace wasymshykh\DeezerAPI\Tests;
use PHPUnit\Framework\TestCase;
use wasymshykh\DeezerAPI\DeezerAPIClient;
use wasymshykh\DeezerAPI\DeezerAPIException;
use Symfony\Component\HttpClient\Exception\TransportException;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\HttpClient\Response\M... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserFollowController extends Controller
{
public function store($id){
// 認証済みユーザ(閲覧者)が、 idのユーザをフォローする
$follow = \Auth::user()->follow($id);
// jsonのレスポンス
return response()->json($follow);
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.