text stringlengths 2 1.03M |
|---|
<?php
header("Content-Type: application/json");
include 'connect.php';
$sql = "SELECT * FROM reviews, customers WHERE review_user = customer_id";
$datas = "";
$x = 0;
$result = $con->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$datas[$x] = array("fname" =>... |
<?php
//error_reporting(0);
if (isset($_POST["num"]) || is_numeric($_POST["num"]) || $_POST["num"] > 0){
if (!is_numeric($_POST["num"])){
$_POST["num"] = 0;
}
require("../config.php");
$query = "SELECT * FROM setting where id = '1'";
$query_q = $sqli->query($query);
$rate = $query_q->fetch_assoc();
$nnum = $_P... |
<?php
// login routes
Route::group(['middleware' => 'guest'], function(){
Route::get('/',['as' => 'login', 'uses' => 'AppController@getLogin']);
Route::get('redirect',['as' => 'fb_redirect', 'uses' => 'AppController@redirect']);
Route::get('callback', ['as' => 'fb_callback', 'uses' => 'AppController@call... |
<?php
use yii\db\Migration;
/**
* Class m200724_130248_producto_activo
*/
class m200724_130248_producto_activo extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$table = 'producto';
$this->addColumn($table, 'activo', $this->tinyInteger(1)->defaultValue(1));
... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.80.0">
... |
<?php
// 应用公共文件
/**
* @param $url 请求的url
* @param int $type 请求的方式0是get 1是post
* @param array $data 请求的数据
*/
function doCurl($url,$type=0,$data=[])
{
//初始化curl
$ch=curl_init();
//设置相关的参数set option
//CURLOPT_UR 请求的链接curlopt
//CURLOPT_RETURNTRANSFER 请求结果以文本流形式返回returntransfer
//CURLOPT_HEADE... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateForumThreadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('forum_thre... |
<?php
namespace App\Http\Controllers;
use App\Product;
use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class ProductController extends Controller
{
/**
* Display a list of the resources for an amount.
*
* @param Request $request
* @... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\model\admin\permission;
class PermissionController extends Controller
{
public function index()
{
$permissions=permission::all();
return view('admin/permission/Show',comp... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class HomeControlooer extends Controller
{
//Home Page
public function home(){
return view('home');
}
//rooms Page
public function rooms(){
return view('aboutus');
}
//rooms gallery
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Stok_Ppn;
class StokppnController extends Controller
{
public function index()
{
$stokppn = \App\Stok_Ppn::all();
return view('admin.stokppn.index', compact('stokppn'));
}
public function add(Request $r)
{
... |
<?php if(!defined('HDPHP_PATH'))EXIT;
$db->exe("REPLACE INTO ".$db_prefix."category (`cid`,`cat_name`,`pid`,`is_show`,`cat_key`,`cat_desc`,`measure_unit`,`grade`,`cat_id`)
VALUES('1','手机 ','0','1','','','部','0','1')");
$db->exe("REPLACE INTO ".$db_prefix."category (`cid`,`cat_name`,`pid`,`is_show`,`cat_key`,`cat_... |
<?php namespace RainLab\User\Models;
use AcademyMod\Course\Models\Course;
use Str;
use Auth;
use Mail;
use Event;
use October\Rain\Auth\Models\User as UserBase;
use RainLab\User\Models\Settings as UserSettings;
use October\Rain\Auth\AuthException;
class User extends UserBase
{
use \October\Rain\Database\Traits\So... |
<?php
namespace App\Exports;
use App\Models\Agenda;
use Maatwebsite\Excel\Concerns\FromCollection;
class AgendaExport implements FromCollection
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return Agenda::all();
}
} |
<?
// +----------------------------------------------------------------------
// | Common
// +----------------------------------------------------------------------
// | 版权所有 2015-2020 晓明版权,并保留所有权利。
// +----------------------------------------------------------------------
// | 网站地址: https://huxiaoming.top
// +-------... |
@extends('layout.index')
@php
setlocale(LC_TIME, "fr_FR", "French");
@endphp
@section('content')
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-left">
<br><h2>Liste des Produits</h2><br>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 row">
<div... |
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\RecetaController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can ... |
<?php
return [
'payOrderOutTradeNoPrefix' => 'no',
'payListener' => '\TechSoft\Laravel\Pay\Listeners\PayListener',
]; |
<?hh // strict
/**
* This file is generated. Do not modify it manually!
*
* @generated SignedSource<<848e903f1778e025a26a0531746eb7c8>>
*/
namespace Facebook\HHAST;
final class ThisToken extends EditableTokenWithVariableText {
const string KIND = 'this';
public function __construct(
EditableNode $leading... |
<?php
namespace content_enter\verify;
class model
{
public static function post()
{
$mobile_email = \dash\request::post('usernameormobile');
$send_code = mb_strtolower(\dash\request::post('sendCod'));
if(\dash\temp::get('OnlyOneWayMobile'))
{
$mobile_email = \dash\temp::get('OnlyOneWayMobile');
}
... |
<?php
namespace Shetabit\Multipay\Drivers\Zarinpal\Strategies;
use GuzzleHttp\Client;
use Shetabit\Multipay\Abstracts\Driver;
use Shetabit\Multipay\Contracts\ReceiptInterface;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\Exceptions\PurchaseFailedException;
use Shetabit\Multipay\Invo... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Model;
use Faker\Generator as Faker;
$factory->define(App\Kategori_Produk::class, function (Faker $faker) {
return [
'nama_kategori' => 'Pakaian'
];
}); |
<script type="text/javascript">
function confirmSubmit() {
//return false;
if(confirm("Are you sure you want to submit your comments / feedbacks?")) {
if((document.feedback_form.username.value == "") || (document.feedback_form.feedback.value == "")) {
alert("Ooops! The Name field and the Feedback Field... |
<html>
<head>
<title>App Name - @yield('title')</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="ht... |
@extends('users.admin.layouts.app')
@section('title', "Create Event")
@section('content')
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Create new event</h1>
<div class="card">
<div class="card-header">
</div>
<div class="card-body">
<form... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* co... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use App\Comment;
use App\Post;
use Illuminate\Support\Facades\Session;
class PostCommentsController extends Controller
{
/**
* Instantiate a new controller instance.
*
* @return void
*/
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Investasi extends Model
{
protected $fillable=[
'id_user', 'id_pengajuanpetani', 'buktitf1', 'buktitf2'
];
public function user(){
return $this->belongsTo(User::class);
}
public function pengajuanpetani(){
retu... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateDriverFeedbacksTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('driver_feedbacks', function(Blueprint $table)
{
$table->integer('id... |
<?php
namespace Test\Feature\CleanRegex\valid;
use PHPUnit\Framework\TestCase;
use TRegx\CleanRegex\Pattern;
use TRegx\CleanRegex\PcrePattern;
use TRegx\Exception\MalformedPatternException;
class PatternTest extends TestCase
{
/**
* @test
* @dataProvider patterns
* @param string $pattern
* @pa... |
@extends('admin.dashboard')
@section('content')
<div class="container">
<div class="row">
<form action="{{ route('admin.institutions.index') }}" method="post" enctype="multipart/form-data">
{{ csrf_field() }}
<div class="col-xs-12 col-md-3">
... |
<html>
<body>
<div class="container">
<form role="form" method="post" action="<?php echo site_url('main_controller/login_form'); ?>">
<table width="200" border="0">
<tr>
<td colspan="2"><h6 align="center"><b>Panda Retail System </b></h6></td>
</tr>
<tr>
<td rowspan="2">
<img src="<?php echo b... |
<?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
namespace app\models;
use yii\base\Model;
class SignupForm extends Model
{
public $name;
public $email;
public $password;
public function rules() {
return [
[['name', 'email', 'password'], 'required'],
[['name'], 'string'],
[['email'], 'ema... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Dashboard') }}
Hi... {{ Auth::user() -> name }} <br />
Total user: {{ count($users) }}
</h2>
</x-slot>
<div class="py-12">
<div class="con... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
--TEST--
Test ctype_xdigit() function : usage variations - different data typse as $c arg
--EXTENSIONS--
ctype
--FILE--
<?php
/*
* Pass different data types as $c argument to ctype_xdigit() to test behaviour
*/
echo "*** Testing ctype_xdigit() : usage variations ***\n";
$orig = setlocale(LC_CTYPE, "C");
//get an u... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('arrears', function (Blu... |
<?php
namespace GAlter\GestionBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DocumentControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
... |
<?php
/* @Doctrine/Collector/icon.svg */
class __TwigTemplate_a86eb4cbb9a1cfecbe17d2ce150d52e7701e5031a2c5638c5cb2b93f52677192 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace App\Application\Authorization\RefreshToken;
use Illuminate\Support\Facades\DB;
use Laravel\Passport\Exceptions\OAuthServerException;
use Laravel\Passport\Http\Controllers\HandlesOAuthErrors;
use Laravel\Passport\TokenRepository;
use Lcobucci\JWT\Parser as JwtParser;
use ItDevgroup\CommandBus\Command;
... |
<?php
use Illuminate\Database\Seeder;
use App\Models\Journal;
class JournalTableEditSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// 会計データを全件取得
// 会計タイプ毎にdebit_amountとcredit_amountにデータを格納
$journals = Journal::a... |
<?php
class Model_tarjeta extends CI_Model {
function guardar($data) {
$this->db->insert("tarjeta", $data);
if ($this->db->affected_rows() == 1) {
return true;
} else {
return false;
}
}
public function getTarjetas() {
$this->db->order_by('... |
<?php
namespace Menu\Controller;
use Application\Localization\Transliterator;
use Application\Mvc\Controller;
use Menu\Form\MenuForm;
use Menu\Model\Menus;
use Menu\Model\Translate\MenusTranslate;
class AdminController extends Controller
{
public function initialize()
{
$this->helper->activeMenu()-... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%movies_directors}}`.
* Has foreign keys to the tables:
*
* - `{{%movies}}`
* - `{{%directors}}`
*/
class m200503_075528_create_junction_table_for_movies_and_directors_tables extends Migration
{
/**
* {@inheritdoc}
*/
public fu... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('corraldos', function (B... |
<?php
namespace App\Http\Controllers\API\v1\Payment;
trait NamePriceList
{
private $TaxPercentage;
private $ValueOfName;
public function __construct()
{
$this->TaxPercentage = floatval($this->settings('GOV_VAT', 'key')->value);
$this->ValueOfName = floatval($this->settings('NAME_RESE... |
<?php return array (
'CL-AN' => array('name' => 'Antofagasta', 'level' => 'region'),
'CL-ML' => array('name' => 'Maule', 'level' => 'region'),
'CL-RM' => array('name' => 'Regió Metropolitana de Santiago', 'level' => 'region'),
'CL-VS' => array('name' => 'Valparaíso', 'level' => 'region'),
); |
<?php
use Presspack\Framework\Support\Facades\Strings;
if (! function_exists('_s')) {
function _s($string)
{
return Strings::get($string);
}
} |
@extends('layouts.index')
@section('title', trans('titles.main'))
@section('content')
<main-vue :data="{{json_encode($data)}}"></main-vue>
@endsection |
<?php
namespace App\Controllers;
class AnimalesController extends BaseController
{
public function registrarAnimalView(){
return view('registroAnimal');
}
public function registrar(){
// 1. Recibir los datos del formulario
$nombre = $this->request->getPost("nombre");
... |
<div class="card"{{$add_anima ?? ''}} >
<div class="card-header">
<h5><i class="fas fa-shield-alt" style="color: #ccc;"></i> Todos as Produtos</h5>
</div>
<div class="card-body">
<div class="row">
<table id="example" class="table table-bordered" style="width:100%">
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
@include('layouts/partials/_head')
</head>
<body>
<main class="py-4">
@yield('content')
</main>
</body>
</html> |
<?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 Symfony\Component\DependencyInjection\Compiler;
use Symfony\Component\D... |
<?php
/**
* YAWIK
*
* @filesource
* @license MIT
* @copyright 2013 - 2018 Cross Solution <http://cross-solution.de>
*/
/** */
namespace Stellenmarkt\Listener;
use Core\Form\Event\FormEvent;
/**
* ${CARET}
*
* @author Mathias Gelhausen <gelhausen@cross-solution.de>
* @todo write test
*/
class VoidList... |
<?php
//------------Forms created by Nikolai Vitsyn 2004/01/23
include_once(dirname(__FILE__).'/../../globals.php');
include_once($GLOBALS["srcdir"] . "/api.inc");
function ankleinjury_report($pid, $encounter, $cols, $id) {
$count = 0;
$data = formFetch("form_ankleinjury", $id);
if ($data) {
print "<table>\n<tr>\... |
<?php
/**
* Admin System Report Class
*
* @since 2.1.0
* @version 3.11.2
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
class LLMS_Admin_System_Report {
/**
* Output the system report
* @return void
* @since 2.1.0
* @version 3.0.0
*/
public static function output() {
echo '<div class="wrap ... |
<?php
namespace NS\ImportBundle\Tests\Converter;
use NS\ImportBundle\Converter\WarningConverter;
use NS\ImportBundle\Tests\TestArrayChoice;
use NS\UtilBundle\Form\Types\ArrayChoice;
use PHPUnit\Framework\TestCase;
class WarningConverterTest extends TestCase
{
public function testNoWarning(): void
{
$... |
<?php
/*
* This file is part of Fixhub.
*
* Copyright (C) 2016 Fixhub.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fixhub\Http\Controllers\Auth;
use Fixhub\Http\Controllers\Controller;
use Fixhub\Models\User;
us... |
<?php
/**
* Functions which enhance the theme by hooking into WordPress
*
* @package WordPress
* @subpackage Huis_Van_Vervoering
* @since Huis Van Vervoering 1.0
*/
/**
* Adds custom classes to the array of body classes.
*
* @since Huis Van Vervoering 1.0
*
* @param array $classes Classes for the body eleme... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Employee;
use Faker\Generator as Faker;
$factory->define(Employee::class, function (Faker $faker) {
return [
'name' => $faker -> firstname(),
'lastname' => $faker -> lastname(),
'birthday' => $fake... |
<?php
namespace Doctrine\DBAL\Driver\SQLSrv;
use Doctrine\DBAL\Driver\Connection;
use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
use Doctrine\DBAL\ParameterType;
use const SQLSRV_ERR_ERRORS;
use function func_get_args;
use function is_float;
use function is_int;
use function sprintf;
use function sqlsrv_begin_tr... |
<?php
/**
* Created by PhpStorm.
* User: Hitesh
* Date: 20-Sep-18
* Time: 10:44 PM
*/
?>
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="wi... |
@extends("theme/lte/layout")
@section('contenido')
<div class="card card-success">
<div class="panel panel-default-success">
<div class="card-header success with-border ">
<h2 class="card-title success">Articulos de la commerce: {{$commerce_d->nombre}} </h2>
<!--
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Product;
use App\Cart;
use Session;
class ProductController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$products= Pr... |
<div class="d-flex flex-column align-items-center py-5">
<i class="fas fa-shopping-basket no-content-icon fa-10x text-muted mb-3"></i>
<h3 class="h5 mb-4 text-muted">Aún no hay productos registrados</h3>
<a href="<?php echo base_url('admin/productos/nuevo') ?>" class="btn btn-lg btn-success">
<i class="fas fa-plus... |
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $this->config->item('sitename','home_data') ?></title>
<meta name="keywor... |
<?php
namespace Modules\Core\View\Controls;
use App\Support\Form\Control;
use Illuminate\Support\Arr;
class Icon extends Control
{
/**
* Create a new control instance.
*
* @param string|null $id
* @param string|null $name
* @param string|null $value
* @param array $options
*/
... |
<?php
$parentId = $this->uri->segment(6);
$thmcAraNm = $this->Crud_model->getData('thematic_areas', 'thematic_area_id', $parentId);
?>
<section class="content">
<div class="container-fluid">
<div class="block-header">
<div class="row clearfix">
<div class="col-sm-6">
<h2>Update State</h2>
</div>... |
@extends('admin.templates.default', ['title'=>'Sửa bài viết',
'libs_elements'=>['node-waves', 'animate', 'bootstrap-select', 'sweetalert', 'bootstrap-notify','ckeditor', 'jquery-slimscroll'],
'customs_css'=>[
URL::asset('/admin/css/products/delete-image.css'),
],
... |
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="https://placehold.it/160x160/00a65a/ffffff/&text=JD" class="img-circle" alt="User Image">
</div>
... |
<?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 Symfony\Component\Messenger\Transport\Doctrine;
use Symfony\Component\M... |
<?hh
class C {
static public function func1() {
return 1;
}
}
class D {
static public function func1() {
return 10;
}
static public function func2() {
return 20;
}
}
function testMutateClsMethArray() {
$m = hh\class_meth(C::class, 'func1');
var_dump($m is vec);
var_dump($m());
$m[0] ... |
<?php
/**
* The file that defines the core plugin class
*
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
*
* @link http://example.com
* @since 1.0.0
*
* @package PirateForms
* @subpackage PirateForms/includes... |
<?php
/**
* @file classes/context/PKPSectionDAO.inc.php
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class PKPSectionDAO
* @ingroup context
* @see PKPSection
*
* @brief Operatio... |
<?php
/*
* Copyright (c) KUBO Atsuhiro <kubo@iteman.jp>,
* All rights reserved.
*
* This file is part of PHPMentorsWorkflowerBundle.
*
* This program and the accompanying materials are made available under
* the terms of the BSD 2-Clause License which accompanies this
* distribution, and is available at http://... |
'<?php
/**
* Created by PhpStorm.
* User: litid
* Date: 2018/11/9
* Time: 17:53
*/ |
@guest
@php $layout = 'layouts.frontapp' @endphp
@endguest
@auth
@if(Auth::user()->roles->first()->name == 'shopper')
@php $layout = 'layouts.shopperLayout.shopperFrontApp' @endphp
@elseif(Auth::user()->roles->first()->name == 'host')
@php $layout = 'layouts.hostLayout.hostFrontApp' @endphp
@endif
@endauth
@extends($... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="@yield('description')" />
<meta name="keyword" content="@yield('keyword')" />
<title>Home | @yield('title')</title>
<link h... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Controller;
use App\Http\Controllers\ProductController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Transaksion extends Model
{
//
} |
--TEST--
iterable type#001
--FILE--
<?php
function test(iterable $iterable) {
var_dump($iterable);
}
function gen() {
yield 1;
yield 2;
yield 3;
};
test([1, 2, 3]);
test(gen());
test(new ArrayIterator([1, 2, 3]));
try {
test(1);
} catch (Throwable $e) {
echo $e->getMessage();
}
?>
--EXPECTF-... |
<?php
namespace App\Http\Resources\Restaurant;
use Illuminate\Http\Resources\Json\JsonResource;
class RestaurantResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($requ... |
<?php
namespace App\Listeners;
use App\Events\MessageCount;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
class MessageCountListener
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
... |
<?php
namespace App\Http\Requests\Site;
use Illuminate\Foundation\Http\FormRequest;
class ContactRequest extends FormRequest
{
/**
* @var mixed
*/
private $email;
/**
* @var mixed
*/
private $name;
/**
* @var mixed
*/
private $phone_number;
/**
* @var mi... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use App\Model\Admin\commonModel;
class commonController extends Controller
{
public function __construct()
{
//$this->middleware(... |
<?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 $__env->startSection('htmlheader_title'); ?>
ናብ ኣመራርሓ ስግግር
<?php $__env->stopSection(); ?>
<?php $__env->startSection('contentheader_title'); ?>
ናብ ኣመራርሓ ስግግር
<?php $__env->stopSection(); ?>
<?php $__env->startSection('header-extra'); ?>
<!-- <script src="//code.jquery.com/jquery-1.12.3.js"></script>
<script sr... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEjemplo2sTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ejemplo2s', f... |
<?php
namespace App\Http\Requests\Api;
use Dingo\Api\Http\FormRequest;
class SocialAuthorizationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Ge... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Product extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function (Bluepr... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/monitoring/v3/service.proto
namespace GPBMetadata\Google\Monitoring\V3;
class Service
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGen... |
@extends('admin::layouts.master')
@section('content')
<!-- Content Wrapper. Contains page content -->
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Version 2.0</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashbo... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var app\models\WaypointsSearch $model
* @var yii\widgets\ActiveForm $form
*/
?>
<div class="waypoints-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form-... |
<?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Пользователь</th>
<th scope="col">Куда едет</th>
<th scope="col">Время бронирования</th>
</tr>
</thead>
<tbody>
<?php
foreach($model3 as $reserv... |
<?php
namespace App\Http\Controllers;
use App\Models\Category;
use App\Models\Department;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\... |
<?php
/*
* This file is part of the andreas-weber/php-config library.
*
* (c) Andreas Weber <code@andreas-weber.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace AndreasWeber\Config\Core;
class Config implements \ArrayAccess, \Coun... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v3/resources/customer_manager_link.proto
namespace GPBMetadata\Google\Ads\GoogleAds\V3\Resources;
class CustomerManagerLink
{
public static $is_initialized = false;
public static function initOnce() {
$poo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.