text
stringlengths
2
1.03M
<?php namespace Modules\Setup\Http\Controllers\Api; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Modules\Setup\Entities\Tax; use Modules\Setup\Http\Requests\TaxRequest; class TaxController extends Controller { /** * Display a listing of t...
<?php use PHPUnit\Framework\TestCase; use Slayerfat\PhoneParser\PhoneParser; class PhoneParserTest extends TestCase { /** * @var Slayerfat\PhoneParser\PhoneParser */ private $parser; protected function setUp() { $this->parser = new PhoneParser(); } public function testPars...
<?php namespace Armd\TheaterBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manag...
<?php namespace App\Infrastructure\Test\Adapter\Repository; use App\Infrastructure\Doctrine\Entity\DoctrineLog; use App\Infrastructure\Doctrine\Entity\DoctrineParticipant; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; use TBoileau\CodeChallenge\Domain...
@component('mail::message') YGA Submission 2020 ============= Full Name : {{ $data['fname'] }} <br /> Date of birth : {{ $data['dob'] }} <br /> Qualifications: {{ $data['qualifications'] }} <br /> Present working station: {{ $data['workplace'] }} <br /> Previous stations : {{ $data['preworkplace'] }} <br /> SLCOG Me...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class coach extends Model { // }
<?php $this->load->view('restrita/layout/sidebar'); ?> <!-- Main Content --> <div id="content"> <?php $this->load->view('restrita/layout/navbar'); ?> <!-- Begin Page Content --> <div class="container-fluid"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href...
@extends('layouts.app') @section('title') Store Cart Page @endsection @section('content') <div class="page-content page-cart"> <section class="store-breadcrumbs" data-aos="fade-down" data-aos-delay="100" > <div class="container"> <div class="row"> ...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> @yield('title') : Hiboux</title> <meta name="description" content="@yield('meta-description')"> <meta name="keywords" content="post-rock, music, New Zealand, experimental rock"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <l...
<!DOCTYPE html> <div class="tab-content"> <?php echo validation_errors(); ?> <?php echo form_open('knoxville/addItem'); //this is equal to <form method="post" accept-charset="utf-8" action="http://localhost/Knoxville-Auto-Supply/knoxville/addItem"> //to add attributes, edit t...
<?php /* * This file is part of Flarum. * * For detailed copyright and license information, please view the * LICENSE file that was distributed with this source code. */ namespace Flarum\Extend; use Flarum\Extension\Extension; use Flarum\Post\Post as PostModel; use Illuminate\Contracts\Container\Container; cla...
@extends('admin.layouts.master') @section("meta_page_title") Admin | Quickvote | Our Team @endsection @section("page_title") <a href="{!! route('team.index') !!}" class="head-a"> Our Team </a> > Add @endsection @section("content") <div class="row justify-content-center"> <div class="col-md-12"> <div...
@extends('admin.layouts.main') @section('header_title') <title>Medical Services | Users</title> @endsection @section('css') <!-- DataTables --> {{-- <link rel="stylesheet" href="AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css"> --}} @endsection @section('content') <section class="content...
<!-- Begin Page Content --> <div class="container"> <form id="formEstrutura"> <div class="form-group"> <label for="checkout">Link do checkout</label> <input type="text" class="form-control" id="checkout" name="checkout" aria-describedby="emailHelp"> <small id="emailHelp"...
<?php declare(strict_types=1); namespace MsgPhp\User\Event; use MsgPhp\User\Entity\UserEmail; /** * @author Roland Franssen <franssen.roland@gmail.com> */ class UserEmailAddedEvent { public $userEmail; final public function __construct(UserEmail $userEmail) { $this->userEmail = $userEmail; ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Article; use App\Http\Requests; use App\Http\Controllers\Controller; class PagesController extends Controller { /** * View all articles */ public function index() { return redirect('/index.php/articles'); ...
<?php /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Tests\Tokenizer\Analyzer\Analy...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code use Exception as Exception; // a common import class stronghold extends Exchange { public function describe () { return arra...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUnitsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('units', function ...
<?php /* * This file is part of the overtrue/wechat. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace EasyWeChat\Kernel\Support; use ArrayAccess; use ArrayIterator; use Countable; use EasyWeChat\Kernel...
@extends('templates.template') @extends('listProduct') @section('content') <h1 class="text-center">Xastre Market</h1> <h3 class="text-center mt-5">Cadastrar Produto</h3> <div class="col-8 m-auto"> @if (isset($errors) && count($errors) > 0) <div class="text-center mt-4 mb-4 p-2 alert-danger"> @...
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class RegistrationEmailVarification extends Notification { use Queueable; /** * Create a new notific...
@extends('layouts.apps') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Confirm Password') }}</div> <div class="card-body"> ...
<?php $user = $this->session->userdata('user'); extract($user); ?> <title>PROJECT</title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuH...
<a {{ $attributes->class(['text-blue-600 bg-blue-100 p-2 rounded-md hover:shadow-lg transition-shadow duration-500']) }} title="{{ $text }}"> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L...
<?php function hex2str($hex) { $str = ''; for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2))); return $str; } function strToHex($string){ $hex = ''; for ($i=0; $i<strlen($string); $i++){ $ord = ord($string[$i]); $hexCode = dechex($ord); $c = sub...
@extends('layouts.app') @section('content') <section class="content-header"> <h1> Emergency Serviced </h1> </section> <div class="content"> @include('adminlte-templates::common.errors') <div class="box box-primary"> <div class="box-body"> ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHorasTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('horas', function ...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\User; use Session; use Hash; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function ind...
@extends('layouts.app') @section('content') <div class="container"> <form action="{{url('/categoria/'.$categoria->id)}}" class="form-horizontal" method="post" enctype="multipart/form-data"> {{csrf_field()}} {{method_field('PATCH')}} @include('Categoria.formCAT',['Modo'=>'editar']) </form> </div> @endsection
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2006 - 2012 EllisLab, Inc. * @license http://codeign...
<!DOCTYPE html> <html lang="en"> <head> <title>JanBask Dashboard</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="<?php echo site_url('assets/student_css_js/css/bootstrap.min.css'); ?>" /> <link rel="stylesheet" href="<?php...
<?php namespace App\Http\Controllers\Api\Users; use App\Http\Controllers\Controller; use App\Model\Cart; use App\User; use Auth; use DB; use Illuminate\Http\Request; class LoginController extends Controller { public function signIn(Request $request) { try { $email = $request->get('usernam...
<?php namespace XF\Alert; class Post extends AbstractHandler { public function getEntityWith() { $visitor = \XF::visitor(); return ['Thread', 'Thread.Forum', 'Thread.Forum.Node.Permissions|' . $visitor->permission_combination_id]; } public function getOptOutActions() { return [ 'forumwatch_insert', ...
<?php declare(strict_types=1); namespace byrokrat\banking\Format\Build; /** * This class has been auto-generated and should not be edited directly * * Generated in accordance with BGC specifications dated 2020-04-15. */ class ForexFormat implements \byrokrat\banking\Format\FormatInterface { use \byrokrat\ban...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
@extends('layouts.master') @section('content') <div class="row"> <div class="col-sm-6 col-md-4 col-md-offset-4 col-sm-offset-3"> <h1>Checkout</h1> <h4>Your Total: ${{ $total }}</h4> <form action="{{ route('checkout') }}" method="post" id="checkout-form"> <div class="row"> <div class="col-xs-12"> <...
<?php /* @Swiftmailer/Collector/icon.svg */ class __TwigTemplate_38d92d2edeb32074d555c189db0af27292aa581a9f6908eff58f8479f434adfc extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
@if (isset($notifications)) <div class="row"> <div class="small-12 columns"> <div class="warning callout" data-closable> <h2>Please note</h2> <ul> @foreach ($notifications as $notification) <li><?php echo $notification ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Savitar\Models\Traits\Migrable; class CreateBrandTable extends Migration { use Migrable; /** * Run the migrations. * * @return void */ public functi...
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use App\Models\Country; use Illuminate\Support\Facades\App; use Ill...
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.7 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2015 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * This code is based on Redisent, a Redis interface for th...
@extends('layouts.main-layout') @section('title', 'Forum Thread') @section('content') <div class="container"> <div class="panel-body"> <div class="media"> <div class="media-body"> <h4 class="title"> {{ $data->forum->name }} ...
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
<?php /* ** Content Header */ $revo_page_header = get_post_meta( get_the_ID(), 'page_header_style', true ); $revo_colorset = sw_options('scheme'); $revo_logo = sw_options('sitelogo'); $sticky_menu = sw_options( 'sticky_menu' ); $revo_page_header = ( get_post_meta( get_the_ID(), 'page_header_style', true ) !=...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Models\P2exercicioc3m2; use Faker\Generator as Faker; $factory->define(P2exercicioc3m2::class, function (Faker $faker) { return [ 'exercicio' => $faker->word, 'deleted_at' => $faker->date('Y-m-d H:i:s'), 'created_at...
<style type="text/css" media="screen"> .td_no{ width: 4%; } .td_marital_status_id{ width: 10%; } .td_action{ width: 12%; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo $br...
<?php //00551 // -------------------------- // Created by Dodols Team // -------------------------- if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function...
<?php /** * PHPPgAdmin6 */ namespace PHPPgAdmin\Core; use PHPMD\Renderer\XMLRenderer; use PHPMD\Report; /** * This class will render a Java-checkstyle compatible xml-report. * for use with cs2pr and others. */ class CheckStyleRenderer extends XMLRenderer { /** * Temporary property that holds the name ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\PengaduanModel; use App\MasyarakatModel; use Validator; use Session; use PDF; class PengaduanController extends Controller { public function index() { Session::get('nik'); $data['datas']=PengaduanModel::join('masyaraka...
<?php namespace Drupal\Core\Mail\Plugin\Mail; use Drupal\Component\Utility\Unicode; use Drupal\Core\Mail\MailFormatHelper; use Drupal\Core\Mail\MailInterface; use Drupal\Core\Site\Settings; /** * Defines the default Drupal mail backend, using PHP's native mail() function. * * @Mail( * id = "php_mail", * lab...
<?php namespace pagfacu\Transformers; use League\Fractal\TransformerAbstract; use pagfacu\Models\Client; /** * Class ClientTransformer * @package namespace pagfacu\Transformers; */ class ClientTransformer extends TransformerAbstract { /** * Transform the \Client entity * @param \Client $model ...
<?php class ImportDel { protected $ab = array(); protected $data; protected $row_offset = 0; protected $col_offset = 0; function convertToAddresses() { global $del_format; $count = 0; foreach($this->data as $rec) { $count++; if($count <= $this->col_offset) continue; $ke...
<?php namespace Beberlei\Tests\AzureBlobStorage; use Beberlei\AzureBlobStorage\BlobClient; class BlobTestCase extends \PHPUnit_Framework_TestCase { const CONTAINER_PREFIX = 'aztest'; protected static $path; protected static $uniqId; protected static $uniqStart; /** * Test setup */ ...
<?php // +-----------------------------------------------------------------------------+ // Copyright (C) 2011 ZMG LLC <sam@zhservices.com> // // // 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 Foundatio...
<?php namespace App\Laravel\Models; use Illuminate\Database\Eloquent\Model; class TrainingSessions extends Model { // protected $table = "training_se"; protected $fillable =[]; public function engagements(){ return $this->hasMany("App\Laravel\Models\Engaged","training_id","training_id"); } ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTravelPackages extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('travelpackage...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Availability; use Faker\Generator as Faker; $factory->define(Availability::class, function (Faker $faker) { return [ // ]; });
<?php /* +--------------------------------------------------------------------------+ | Zephir | | Copyright (c) 2013-present Zephir Team (https://zephir-lang.com/) | | ...
<?php namespace app\models; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Viviendas; /** * ViviendasSearch represents the model behind the search form of `app\models\Viviendas`. */ class ViviendasSearch extends Viviendas { /** * {@inheritdoc} */ public function rules() {...
<!DOCTYPE html> <html> <head> <title>@yield('title')</title> <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"> <style> html, body { height: 100%; } body { margin: 0; padding: 0; width: 10...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Work extends Model { protected $table="works"; }
<?php namespace Illuminate\Database; use Illuminate\Database\PDO\PostgresDriver; use Illuminate\Database\Query\Grammars\PostgresGrammar as QueryGrammar; use Illuminate\Database\Query\Processors\PostgresProcessor; use Illuminate\Database\Schema\Grammars\PostgresGrammar as SchemaGrammar; use Illuminate\Database\Schema\...
<?php namespace Maatwebsite\Excel\Factories; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Reader\IReader; use Maatwebsite\Excel\Exceptions\UnreadableFileException; class ReaderFactory { /** * @param string $filePath * @param string $readerType * * @return IReader ...
<?php namespace App\Observers\System; use App\Observers\System\Traits\Categorable; use App\Observers\System\Traits\Commonable; use App\ToolsCategory as Category; class ToolsCategoryObserver { use Commonable; use Categorable; public function creating(Category $category) { $this->store($categ...
<?php namespace Illuminate\Cookie; use Carbon\Carbon; use Illuminate\Support\Arr; use Symfony\Component\HttpFoundation\Cookie; use Illuminate\Contracts\Cookie\QueueingFactory as JarContract; class CookieJar implements JarContract { /** * The default path (if specified). * * @var string */ ...
<?php namespace Hodor\Database\Phpmig; use Exception; use Hodor\Config\LoaderFactory as ConfigFactory; use Hodor\Database\AdapterFactory as DbFactory; use Hodor\Database\PgsqlAdapter; use Lstr\YoPdo\YoPdo; use Pimple; class Container extends Pimple { /** * @param string $config_file * @throws Exception...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-lg-8 offset-lg-2"> <div class="d-flex justify-content-center"> <h3>Médecins</h3> </div> <hr /> <div class="...
<?php namespace CoRex\Composer\Repository\Commands\Config; use CoRex\Composer\Repository\Config; use CoRex\Composer\Repository\Helpers\Console; use CoRex\Composer\Repository\Helpers\Theme; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\I...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class AuthAdmin { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) ...
<?php /** * This file is part of the Elcodi package. * * Copyright (c) 2014 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ##author_placeholder * @version ##version_placeholder## */ namespace Elcodi\Produc...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit269e7702249edc91483039dc5439f106 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php include('header_dashboard.php'); include('admin/dbcon.php'); ?> <body> <?php include('navbar.php'); ?> <div class="container-fluid"> <div class="row-fluid"> <?php include('sidebar.php'); ?> <div class="span9" id="content"> <div class="row-flui...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $name string */ /* @var $message string */ /* @var $exception Exception */ $this->title = $name; ?> <div class="site-error"> <h1><?= Html::encode($this->title) ?></h1> <div class="alert alert-danger"> <?= nl2br(Html::encode($message)...
<?php declare(strict_types=1); namespace App\Webedia\ShopApiPlugin\Controller\Cart; use FOS\RestBundle\View\View; use FOS\RestBundle\View\ViewHandlerInterface; use App\Webedia\ShopApiPlugin\Factory\Cart\EstimatedShippingCostViewFactoryInterface; use App\Webedia\ShopApiPlugin\Factory\ValidationErrorViewFactoryInterfa...
<?php declare(strict_types = 1); namespace Apitte\OpenApi\SchemaDefinition\Entity; use Apitte\Core\Exception\Logical\InvalidArgumentException; use Apitte\Core\Exception\Logical\InvalidStateException; use DateTimeInterface; use Nette\Utils\Reflection; use Nette\Utils\Strings; use ReflectionClass; use ReflectionClassCo...
@extends('layouts.master') @section('css') @endsection @section('page-header') <!-- breadcrumb --> <div class="breadcrumb-header justify-content-between"> <div class="my-auto"> <div class="d-flex"> <h4 class="content-title mb-0 my-auto">الفواتير</h4><span class="text-muted mt-1 tx-13 mr-2 mb-0...
<?php use App\Http\Controllers\ExpenseController; use Brick\Math\RoundingMode; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; // use Http\Controllers\ExpenseController; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------...
<?php namespace backend\controllers\server; use Yii; use yii\web\UploadedFile; use yii\filters\AccessControl; use yii\widgets\ActiveForm; use common\models\User; use common\models\UserImport; use common\helpers\Common; use common\helpers\HRHelper; use common\lib\PaginationLib; class MemberController extends \com...
<?php exit();?>{"jsapi_ticket":"HoagFKDcsGMVCIY2vOjf9mlFn1M0YwPzVZGAg2kpKa3TkG2wflTnnSQwRoHF-uPKY6jKTiOrPkLiINFW3CX9bw","expire_time":1543900523}
<?php include '_config.php'; include '_functions.php'; $req_pool_id = $_POST['req_pool_id']; if (!$req_pool_id) { $req_pool_id = "all"; } $arrTotalPoolList = getPoolList(); $jsonData = simple_curl("$ceph_api/pg/dump_json?dumpcontents=pgs"); $arrPGStats = json_decode($jsonData, true)['output']['pg_stats']; //$max_n...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', function (Blueprint $table) { ...
<?php session_start (); ?> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php // On démarre la session (ceci est indispensable dans toutes les pages de notre section membre) // On récupère nos variables de session ?> <?php if(isset($_SESSION['numero'])) { try { $bdd = new PDO('mysql:host...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMediablesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('mediables', f...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Daftar extends Model { protected $table = 'daftar'; protected $fillable = ['nama', 'durasi', 'rating','gambar','link']; public function tags () { return $this->belongsToMany('App\Tags'); } }
<?php namespace App\Admin\Widgets; use Kyanag\Form\Core\Widget; class Column extends Widget { public function isSortable(){ return boolval(@$this->attributes['sortable']); } public function getTitle(){ return @$this->attributes['title']; } public function getHeaderClass(){ ...
<?php namespace Dingo\Api\Tests\Stubs; use Dingo\Api\Contract\Transformer\Adapter; use Dingo\Api\Http\Request; use Dingo\Api\Transformer\Binding; use Illuminate\Support\Collection; class TransformerStub implements Adapter { /** * @param mixed $response * @param object $transformer * @param Binding...
<?php /** * The public-facing functionality of the plugin. * * @link http://example.com * @since 1.0.0 * @package Plugin_Name * @subpackage Plugin_Name/public */ /** * The public-facing functionality of the plugin. */ class class_Public { /** * The ID of this plugin. */ private $plugin_n...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ArticleRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get th...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMembersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('members', funct...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ImagesRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the...
<?php return [ 'total_incomes' => '总收入', 'receivables' => '应收账款', 'open_invoices' => '未结订单', 'overdue_invoices' => '逾期订单', 'total_expenses' => '总费用', 'payables' => '应付账款', 'open_bills' => '未结账单', ...
<?php namespace App\Http\Controllers; use App\Models\Application; use App\Models\Company; use App\Models\User; use App\Models\UserApp; use App\Models\UserCompany; use App\Models\UserDivision; use App\Models\UserItmGrp; use App\Models\UserWhs; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illum...
<?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 declare(strict_types=1); namespace HarmonyIO\SmtpClient\Transaction\Processor\Mail; use Amp\Promise; use HarmonyIO\SmtpClient\Connection\Buffer; use HarmonyIO\SmtpClient\Connection\Socket; use HarmonyIO\SmtpClient\Exception\Smtp\DataNotAccepted; use HarmonyIO\SmtpClient\Log\Logger; use HarmonyIO\SmtpClient\Tran...
<?php namespace app\www_api\controller\assets; use app\www_api\controller\assets\upload\UploadHandle; use think\facade\Db; class Upload { public function __construct() { header('Access-Control-Allow-Origin:*'); } public function verify($fileType = 'file') { $saveDir = DIRECTORY_SEPARATO...
<?php /* * Copyright 2016-2017 MongoDB, 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...
<!-- <script src="https://code.angularjs.org/1.3.0/angular.js"></script> --> <script> var app=angular.module('frashlemon', []); var base_url='<?=base_url()?>'; <?php if (!empty($angular_path)) { require APPPATH . "third_party/angularjs/admin/" . $angular_path; } ?> </script>
<?php namespace Cocorico\SonataAdminBundle\Admin; use Cocorico\UserBundle\Entity\User; use Sonata\AdminBundle\Admin\AbstractAdmin; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\A...
<?php declare(strict_types=1); namespace MidnightCall\Utils\Doctrine\Urn; use Doctrine\Persistence\Proxy; use ProxyManager\Proxy\ProxyInterface; trait UrnGeneratorTrait { /** * {@inheritdoc} */ public function getUrn(): string { $className = static::class; if ($this instanceof P...