text
stringlengths
2
1.03M
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Dashboard_model extends CI_Model { function edit_your_name() { $profile_edit = array( 'name' => $this->input->post('name'), 'ip' => $this->input->ip_address() ); //insert history data...
<?php /** * Edit address form * * @author WooThemes * @package WooCommerce/Templates * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } global $current_user; $page_title = ( $load_address === 'billing' ) ? __( 'Billing Address', 'woocommerce' ) : __( 'Shipping Address', 'woocommerce' ); ...
<?php /** * A helper file for Laravel 5, to provide autocomplete information to your IDE * Generated for Laravel 5.5.40 on 2018-06-08 10:59:25. * * This file should not be included in your code, only analyzed by your IDE! * * @author Barry vd. Heuvel <barryvdh@gmail.com> * @see https://github.com/barryvdh/larave...
<h3><?php echo $master_title; ?></h3> <div class="well"> <div class="col-sm6"> <?php echo $this->session->flashdata('msg'); ?> <form id="changepassword" class="form-horizontal fv-form fv-form-bootstrap" method="post" action="#" role="form" novalidate="novalidate"> <input type="hidden" name="em...
<?php namespace Oro\Bundle\DataGridBundle\Extension\Appearance; use Oro\Bundle\DataGridBundle\Datagrid\Common\DatagridConfiguration; use Oro\Bundle\DataGridBundle\Datagrid\Common\MetadataObject; use Oro\Bundle\DataGridBundle\Datagrid\ParameterBag; use Oro\Bundle\DataGridBundle\Extension\AbstractExtension; use Symfony...
<?php /** * EasyThumbProvider * * @uses ServiceProvider * @package * @version 0.0.1 * @copyright 2014-2015 * @author Ryan <canbetter@qq.com> * @license MIT {@link http://ryanli.net} */ namespace EasyThumb; use \Illuminate\Support\ServiceProvider; class EasyThumbProvider extends ServiceProvider{ public...
@extends('principal') @section('conteudo') <h2> Dados da pessoa </h2> <div class="col-sm-8 mt-5"> <dl class="row"> <dt class="col-sm-2">Id:</dt> <dd class="col-sm-10">{{ $pessoa->id }}</dd> <dt class="col-sm-2">Nome:</dt> <dd class="col-sm-10">{{ $pessoa->nome }}</dd> <d...
<?php $lang['creations'] = 'Creations'; $lang['next_dates'] = 'Next dates'; $lang['rights'] = 'all rights reserved'; $lang['email_send'] = 'send us an email '; $lang['now_events'] = 'Present Events'; $lang['next_events'] = 'Next Events'; $lang['past_events'] = 'Past Events'; $lang['Jan'] = 'Jan'; $lang['Fe...
<?php namespace App\Http\Controllers\Admin; use App\Repositories\Interfaces\LessonRepository; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Http\Requests\CreateLessonRequest; use Illuminate\Http\Request; class LessonsController extends Controller { public function __construct(LessonReposito...
<?php namespace PhpOffice\PhpSpreadsheet\Calculation\MathTrig; use PhpOffice\PhpSpreadsheet\Calculation\Exception; use PhpOffice\PhpSpreadsheet\Calculation\Functions; use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError; class Gcd { /** * Recursively determine GCD. * * Returns the great...
<?php namespace AppBundle\Service; use Domain\Model\Inscricao; use Domain\Model\Oportunidade; use Domain\Repository\InscricaoRepositoryInterface; use Domain\Service\ArrayCollection; use Domain\Service\InscricaoServiceInterface; use Infrastructure\Service\StorageService; use OneSignal\OneSignal; use Presentation\DataT...
<?php /** * Wikimedia\PhpSessionSerializer * * Copyright (C) 2015 Brad Jorsch <bjorsch@wikimedia.org> * * This program 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 2 of the License, or...
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator class. Some of these ...
<?php /** * @CreateTime: 2019/9/9 下午11:28 * @Author: huizhang <tuzisir@163.com> * @Copyright: copyright(2019) Easyswoole all rights reserved * @Description: SplArray 单元测试 */ namespace EasySwoole\Spl\Test; use PHPUnit\Framework\TestCase; use EasySwoole\Spl\SplArray; class ArrayTest extends TestCase ...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // This can be removed if you use __autoload() in config.php OR use Modular Extensions require APPPATH . '/libraries/REST_Controller.php'; class Users extends REST_Controller { function __construct() { parent::__construct(); ...
<section class="content"> <input type="hidden" name="page" id="page" value="contractors" /> <div class="container-fluid"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="card"> <div class="header"> <h2>Add Contractors</h2> </div> <div...
<?php use yii\db\Migration; /** * Handles the creation of table `{{%books}}`. */ class m200221_040302_create_books_table extends Migration { const TABLE_NAME = 'books'; /** * {@inheritdoc} */ public function safeUp() { $tableOptions = null; if ($this->db->driverName === 'mysql') { // http://stackove...
<?php namespace App\Providers; use App\Events\ProjectCreated; use Illuminate\Support\Facades\Event; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; use App\Listeners\SendProject...
<?php // $Id: panels-twocol.tpl.php,v 1.3 2010/10/11 22:56:01 sdboyer Exp $ /** * @file * Template for a 2 column panel layout. * * This template provides a two column panel display layout, with * each column roughly equal in width. * * Variables: * - $id: An optional CSS id to use for the layout. * - $content...
<header id="header" class="navbar-static-top"> <div class="topnav hidden-xs"> <div class="container"> <ul class="quick-menu pull-right"> <?php if(isset($_COOKIE["user"])) { ?> <li><a href="account.php" >MY ACCOUNT</a></li> <?php } else { ?> ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Profile; use Auth; class ProfileController extends Controller { public function index() { $user_id = Auth::user()->id ; $profile = Profile::join("users", "users.id", "profiles.user_id") ->where("users.id"...
<?php namespace App\Helpers; class tools_helper { public static function strto($to = null, $str = null) { $to = explode('|', $to); if ($to) : foreach ($to as $t) { if ($t == 'lower') : $str = mb_strtolower(tools_helper::rp(1, $str), "utf-8");...
<?php return [ /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may s...
<?php namespace services\rbac; use Yii; use common\components\Service; use common\enums\StatusEnum; use common\enums\WhetherEnum; use common\helpers\ArrayHelper; use common\helpers\TreeHelper; use common\models\rbac\AuthRole; use common\enums\AppEnum; use yii\web\UnauthorizedHttpException; /** * 角色 * * Class Auth...
<?php namespace antonyz89\mdb; use yii\web\AssetBundle; /** * Class MDBootstrapAsset * @package antonyz89\mdb\widgets * * Yii2 MDBootstrap * * @author Antony Gabriel <antonyz.dev@gmail.com> * * @since 1.0.0 */ class MDBootstrapAsset extends AssetBundle { public $sourcePath = '@antonyz89/mdb/assets/di...
<?php namespace app\modules\admin\controllers; use Yii; use app\modules\admin\models\Post; use yii\data\ActiveDataProvider; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * PostController implements the CRUD actions for Post model. */ class PostController extends Control...
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Информационно-комуникационна платформа "Частни трудови посредници"</title> <meta name="description" content=""> <meta name="keywords" content=""> <link rel="icon" href="{{asset('favicon.ico')}}"> <meta name="viewport" content="width=device-width"> <link rel="...
@extends('entidade::layouts.master') @section('content') <h1>Hello World</h1> <p> This view is loaded from module: {!! config('entidade.name') !!} </p> @endsection
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); include_onc...
@extends('admin.admin_master') @section('main_content') <ul class="breadcrumb"> <li> <i class="icon-home"></i> <a href="index.html">Home</a> <i class="icon-angle-right"></i> </li> <li> <i class="icon-edit"></i> <a href="#">Forms</a> </li> </ul> <h3 style="color:g...
<?php // Borrowed from http://php.net/manual/en/ref.sockets.php#56061 function icmpChecksum($data) { // Add a 0 to the end of the data, if it's an "odd length" if (strlen($data)%2) $data .= "\x00"; // Let PHP do all the dirty work $bit = unpack('n*', $data); $sum = array_sum($bit); //...
<!DOCTYPE html> <html> <head> <style> .email { width: 100%; max-width: 570px; margin: auto; box-shadow: 0 2px 0 rgb(0 0 150 / 3%), 2px 4px 0 rgb(0 0 150 / 2%); background: #fff; padding: 30px; } .content-mail { ...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ClientFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
<?php use Carbon\Carbon; ?> @extends('layouts.topapp') @section('content') <div class="content"> {{--@if (session('flash_message')) <div class="detail_flash_message"> <p>{{ session('flash_message') }}</p> </div> @endif--}} <div class="detail-style"> <div class="album"> <a hr...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Departamento; use App\Municipio; class AdminController extends Controller { public function departamentos() { return Departamento::all(); } public function municipios(Request $request) { return Departamento::where...
<?php /** * @var \Croogo\Core\View\CroogoView $this */ $this->assign('title', __d('croogo', 'Attachments')); $this->extend('Croogo/Core./Common/admin_index'); $this->Breadcrumbs->add(__d('croogo', 'Attachments'), $this->request->getUri()->getPath()); $this->Croogo->adminScript('Croogo/FileManager.admin'); $this->H...
<?php /* * Copyright 2014 Google Inc. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace GuiaLocaliza\Companies\Admin\Infrastructures\Domains\Repositories\Log; use GuiaLocaliza\Companies\Admin\Domains\Models\Log\LogSearch; use GuiaLocaliza\Companies\Admin\Domains\Models\Log\LogSearchRepository; use GuiaLocaliza\Companies\Admin\Infrastructures\Domains\Persistences\Eloquent\BaseEloquentAbst...
<?php namespace App\Http\Controllers; use App\Models\User; use App\Models\Post; use Illuminate\Http\Request; class PostCommentsController extends Controller { public function store(Post $post, Request $request) { $request->validate([ 'body' => 'required|min:3' ]); $post->c...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('template/head');?> <?php $this->load->view('template/sildebar');?> <div id="dcMain"> <!-- 当前位置 --> <div id="urHere">Kang BLOG后台 管理中心<b>></b><strong>网站管理员</strong> </div> <div id="manager" class="mainBox" style="h...
<?php /** * Contains all client objects for the ContactService * service. * * PHP version 5 * * Copyright 2014, Google Inc. 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...
<?php // Start the session session_start(); //data ke set? if(isset($_POST['kirim'])){ $_SESSION["register"] = "sukses"; header("Location:../login.php"); exit(); } ?>
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Model\Admin\Lists; use App\Model\Admin\Category; use Illuminate\Support\Facades\DB; use App\Model\Admin\DetailsContent; class AdminListsController extends Controller { /** * Display a listin...
<?php $__env->startSection('thead'); ?> <th><?php echo e(__('Price')); ?></th> <th><?php echo e(__('Options')); ?></th> <th><?php echo e(__('Actions')); ?></th> <?php $__env->stopSection(); ?> <?php $__env->startSection('tbody'); ?> <?php $__currentLoopData = $setup['items']; $__env->addLoop($__currentLoopD...
<?php namespace App\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Kodeine\Acl\...
<?php namespace App\Http\Controllers\Api; use App\Classes\Blusalt; use App\Classes\General; use App\Classes\SagePayWallet; use App\Classes\UBA; use App\Classes\Wallet; use App\Http\Controllers\Controller; use App\Model\SagePayTransaction; use Illuminate\Http\JsonResponse; class SagePay extends Controller { pri...
<?php namespace App\Models\Day5; class Line { public function __construct( public Point $from, public Point $to ) {} public function isHorizontal(): bool { return $this->from->y === $this->to->y; } public function isVertical(): bool { return $this->fro...
<table class="table table-hover" id="clientesTable"> <thead> <tr> <th>Nom et prénom</th> <th>Numéro 1</th> <th>Numéro 2</th> <th>Adresse</th> <th>&nbsp;</th> </tr> </thead> <tbody> @foreach($clientes as $cliente) <tr> <t...
<style type="text/css"> ul { list-style: none; } .noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Old versions of Firefox */ -ms-user-select: none; /* Internet Explorer...
@extends('canvass::form_field.select-input-type')
<?php /** * Copyright (c) 2019 TASoft Applications, Th. Abplanalp <info@tasoft.ch> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
<?php declare(strict_types=1); namespace Holokron\JsonPatch\Definition; /** * @author Michał Tęczyński <michal.teczynski@gmail.com> */ class CompiledDefinition { /** * @var string */ private $op; /** * @var string */ private $regex; /** * @var callable */ pri...
<?php require_once dirname(__FILE__) . '/../../Library/NCL.NameCase.ua.php'; class NCLNameCaseUaTest extends PHPUnit_Framework_TestCase { /** * @var NCLNameCaseRu */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This method is called before...
<?php namespace backend\controllers; use Yii; use common\models\Voting; use common\models\VotingSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * VotingController implements the CRUD actions for Voting model. */ class VotingController extends Controller { /** ...
@extends('backend.master') @section('title', '- Backends') @section('content') <div class="container" style="margin-top:2%"> <div class="row"> <div class="co-12"> <h1 class="display-4">Scoreboard</h1> <hr class="hr-yellow"> </div> </div> ...
<?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 | ...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2017 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php $LANG = array( 'organization' => 'Οργανισμός', 'name' => 'Επωνυμία', 'website' => 'Ιστοσελίδα', 'work_phone' => 'Τηλέφωνο', 'address' => 'Διεύθυνση', 'address1' => 'Οδός', 'address2' => 'Διαμέρισμα', 'city' => 'Πόλη', 'state' => 'Νομός', 'postal_code' => 'Ταχ. Κώδικας', ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCartsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('carts', function ...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
<?php // based upon article by Daniel Opitz (https://odan.github.io/2017/08/16/create-a-php-phar-file.html) // location of directory containing code to be included in phar file $path = $argv[1] ?? ''; if (!$path || !file_exists($path)) { echo "Usage: php create_phar.php /path/to/project\n"; exit; } // The php...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Course extends Model { public function trainor(){ return $this->belongsTo('App\Models\Trainor'); } public function trainees(){ return $this->hasMany('App\...
<div> <h3>Qui sarà possibile gestire le coltivazioni presenti e i trattamenti associati</h3> </div>
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; // ini modelnya use App\User; use Illuminate\Support\Facades\Hash; class UserController extends Controller { function login(Request $req) { $user = User::where(['email' => $req->email])->first(); // cek validasi user & Hash:...
<?php /* * This file is part of Eventbase API. * * (c) 2017–2018 ITK Development * * This source file is subject to the MIT license. */ namespace AppBundle\Entity; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\UniqueConstraint; use FPN\TagBundle\Entity\T...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ function register() { $this->app->bind('path', function() { return base_path().'/s...
<?php use \common\components\GlobalUrlService; $mapping = [ "index" => [ "title" => "客服列表", "url" => GlobalUrlService::buildMerchantUrl("/staff/index") ] ]; ?> <ul class="tab_title style_1"> <?php foreach( $mapping as $_key => $_item ):?> <li <?php if($current == $_key ):?> class=...
<?php /* * This file is part of Totara Learn * * Copyright (C) 2018 onwards Totara Learning Solutions LTD * * This program 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...
<?php namespace App\Http\Middleware; use Closure; class Cors { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { return $next($request) ...
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\EXE; use JMS\Serializer\Annotation\ExclusionPolicy; use...
<?php declare(strict_types=1); /* * This file has been auto generated by Jane, * * Do no edit it directly. */ namespace Afosto\Sdk\Normalizer; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; use Symfony\Component\Seriali...
<?php /** * amadeus-ws-client * * Copyright 2015 Amadeus Benelux NV * * 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/LICENSE-2.0 * * Unless requir...
<?php declare(strict_types=1); /** * This file is part of the Zuora PHP API Client, a PHP Experts, Inc., Project. * * Copyright © 2019 PHP Experts, Inc. * Author: Theodore R. Smith <theodore@phpexperts.pro> * GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690 * https://www.phpexperts.pro/ * ...
<?php $this->load->view("admin/_partialsAdmin/header")?> <!-- <?php var_dump($draft)?> --> <div class="card" style="width: 100%;"> <div class="card-header"> <i class="fas fa-table"></i> List Draft Products</div> <div class="card-body" style="width: 100%"> ...
<?php namespace App\Domain\Base\Repository; use App\Factory\QueryFactory; /** * Trait to create and read generic parameters that allow easy code usage of the database access for different entities. */ trait GenericTrait { use InstantiateTrait; private ?string $entityName; private ?string $resultClass;...
@extends('backEnd.layouts.app', [ 'class' => '', 'elementActive' => 'createDriverSlider' ]) @section('content') <div class="content"> <div class="row"> <div class="col"> <div class="card shadow"> <div class="card-header border-0"> <div class="row align-items-c...
<div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> {{--<h1 class="m-0 text-dark">Starter Page</h1>--}} </div><!-- /.col --> <div class="col-sm-6"> {{--<ol class="breadcrumb float-sm-righ...
<? $MESS["CRM_TRACKING_INTERNALS_SOURCE_TITLE_NAME"] = "Source name"; ?>
@extends('layoutBackend.app'); @section('sub-judul','Update Category') @section('content') <form method="POST" action="{{ route('category.update',$category->id) }}"> @csrf @method('patch') <div class="form-group"> <label for="name">Name Category</label> <input type="text" name="name" value="...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Redirect; use Validator; use\App\Groupe; use\App\Team; use\App\Round; use\App\GroupeTeam; use\App\Matche; class TeamController extends Controller { // public function index(){ return view('teams.index'); } public function add...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ProductosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('productos', functio...
<p>&nbsp;</p> <table style="background-color: #d8d8d8; margin-left: auto; margin-right: auto;" width="70%"> <tbody> <tr style="height: 72px;"> <td style="width: 596px; height: 72px; text-align: center;"> <h1><span style="color: #999999;"><strong>GuiaCelica</strong></span></h1> ...
<?php use Illuminate\Database\Seeder; class RecipeTypesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('recipe_types')->insert([ [ 'id' => 1, 'name' => 'Latin/Hispanic', 'long_name' => 'Latin/H...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCommentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('comments', function (Blueprint $table) { ...
<?php namespace Omnipay\AuthorizeNetRecurring\Message; use Academe\AuthorizeNet\Response\Collections\TransactionMessages; use Academe\AuthorizeNet\Response\Collections\Errors; use Omnipay\Common\Message\RequestInterface; class Response extends AbstractResponse { // Parse the request into a structured object. ...
<?php /** * @Created By ECMall PhpCacheServer * @Time:2015-01-21 07:43:51 */ if(filemtime(__FILE__) + 1800 < time())return false; return array ( 'id' => 2301, 'goods' => array ( 'goods_id' => '2301', 'store_id' => '131', 'type' => 'material', 'goods_name' => '潘婷乳液修护洗发露200ml', 'descript...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Movie extends Model { protected $fillable = ['name','description','user_id','category']; public function user() { return $this->belongsTo('App\User'); } public function review() { return $this->hasMany('App\Review'); } public function ...
<?php namespace estvoyage\value\float; use estvoyage\value ; abstract class unsigned extends value\float { use value\unsigned; function __construct($value = 0.) { $domainException = null; try { parent::__construct($value); } catch (\domainException $domainException) {} if ($domainException || !...
<?php declare(strict_types=1); namespace app\modules\comment\forms; use yii\base\Model; final class CommentForm extends Model { public const SCENARIO_ANONIM = 'anonim'; public ?string $name = null; public ?string $email = null; public ?string $site = null; public string $text = ''; public ?...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Response; class TestController extends Controller { public function __construct() { $this->middleware('throttle:10'); //лимит по запросам не более 5 раз } public function __invoke(Request $requ...
<?php namespace Crud\Traits; use Crud\Event\Subject; trait RedirectTrait { /** * Change redirect configuration * * If both `$name` and `$config` is empty all redirection * rules will be returned. * * If `$name` is provided and `$config` is null, the named * redirection configur...
<?php namespace Hexxore\Matter; use BadMethodCallException; use \RuntimeException; /** * Main matter api, pass the config, and use it. */ class Matter { private array $drivers = []; public function connect($config, $name = "default") { $driver = $config['driver']; unset($config['driver...
<?php /** * File containing the ezcDocumentWikiItalicNode struct * * @package Document * @version 1.3.1 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ /** * Struct for Wiki document inline italic syntax tree nodes * * @pack...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddDocumentPointDomainToAdminConfigs extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table...
<?php namespace App\Controller; use App\Entity\GroupeCompetence; use App\Repository\CompetenceRepository; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use ApiPlatform\Core\Validator...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bootstrap any application services. ...
<?php namespace Database\Seeders; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class CategorySeeder extends Seeder { /** * Run the database seeds. * * @r...
@extends('layouts.app') @section('title','Profile') @section('css') <style> </style> @endsection @section('content') <div style="padding-top: 150px; padding-left: 40px;"> <div class="row"> <div class="col-sm-2"> <a href="{{ route('home') }}"> <button class="btn btn-dark" > <i class="fas ...