text
stringlengths
2
1.03M
<?php /** * User: qbhy * Date: 2018/10/23 * Time: 下午5:08 */ namespace Qbhy\MicroServicesCommonSdk; use Qbhy\SimpleJwt\EncryptAdapters\PasswordHashEncrypter; class ClientEncrypt extends PasswordHashEncrypter { protected $config; public function __construct(Config $config) { parent::__constru...
<?php namespace Recrit\SvgStyleScoper; /** * Scopes the styles of an SVG by altering the CSS selectors. * * Scopes the styles within an SVG style tag to eliminate them styling other * SVGs or any element on the entire page. * The original CSS selector specificity is preserved after the styles have * been scoped...
@extends('layouts.app') @section('content') <div class="login-box"> <div class="login-logo"> <a href="/"><b>Status</b> Incidents</a> </div> <div class="login-box-body"> <p class="login-box-msg">Sign in</p> <form method="POST" action="{{ route('login') }}">...
<h1 class="h3 mb-2 text-gray-800 judul-halaman"><i class="fas fa-truck"></i> Halaman <?=$aktif_page == 'supplier_tambah' ? 'Tambah' : 'Edit' ?> Data Supplier</h1> <div class="card shadow mb-4"> <div class="card-header py-3"> <div class="row"> <div class="col-md-6"> <h6 class="font-weight-bold text-primar...
<?php namespace App\Http\Requests\Video; use Illuminate\Foundation\Http\FormRequest; class UploadVideoBannerRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Emr\V20160408\Models; use AlibabaCloud\Tea\Model; class GetJobRunningTimeStatisticInfoRequest extends Model { /** * @var int */ public $resourceOwnerId; /** * @var string */ public $regionId;...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use File; use Illuminate\Support\Facades\Storage; class RecordController extends Controller { public function record(Request $request) { // $path = $request->file('file')->store('file'); $file = $request->file; $original_pic = $re...
<?php namespace User\Response; use Symfony\Component\HttpFoundation\JsonResponse; class HalResponse extends JsonResponse { protected $dataArray; protected $links = []; public function __construct(array $data = [], $status = 200, $headers = []) { $this->dataArray = $data; parent::__co...
<?php namespace Faddle\Common; class ArrayAccessor { protected $arrayStack = []; protected $replaceWith = '_REPLACEMENT_'; protected $identifierArray = ['_', '-']; protected $defaultIdentifier = '.'; /** * @param array $array */ public function __construct(array $array) { ...
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ /** * https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm * http://pear.php.net/package/Validate_Finance_CreditCard/download * Validation methods for credit card related data * * PHP Versions 4 and 5 * * This source file is s...
--TEST-- Teds\SortedStrictSet constructed from array --FILE-- <?php // discards keys $it = new Teds\SortedStrictSet(['first' => 'x', 'second' => new stdClass()]); foreach ($it as $key => $value) { printf("Foreach Key: %s\nForeach Value: %s\n", var_export($key, true), var_export($value, true)); } var_dump($it); var_...
@extends('layouts.template') @section('title','服務中心') @section('css') <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" /> <link rel="stylesheet" href="{{asset('css/serv...
<?php namespace Phalcon\Http\Client { /** * Phalcon\Http\Client\Header */ class Header implements \Countable { const BUILD_STATUS = 1; const BUILD_FIELDS = 2; protected static $_messages; protected $_fields; protected $_version; protected $_status_code; protected $_status_message; pro...
<!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"> <meta name="csrf-token" content="{{csrf_token()}}"> <title>Treclon</title> <link href=" ...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { use Notifiable; protected $gaurd='admin'; /** * The attributes that are mass assignable. * * @var array */ protec...
<?php /** * Customize the output of menus for Foundation top bar * * @package CFCDesignsystem * @since CFCDesignsystem 1.0.0 */ // Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker if ( ! class_exists( 'CFCdesignsystem_Top_Bar_Walker' ) ) : class CFCdesignsystem_Top_Bar_Walker ...
<?php /** Batak Toba (Batak Toba) * * See MessagesQqq.php for message documentation incl. usage of parameters * To improve a translation please visit http://translatewiki.net * * @ingroup Language * @file * * @author Daniel Harahap * @author Marvel manalu * @author Naval Scene * @author Stephensuleeman * @a...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel Starter</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="st...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\search\AlimentoSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="alimento-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ])...
<?php declare(strict_types = 1); namespace App\Charts; use Chartisan\PHP\Chartisan; use ConsoleTVs\Charts\BaseChart; use Illuminate\Http\Request; use App\Models\Annuelle; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; use Illuminate\Support\Facades\DB; class AnnuelleChart extend...
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\HTTPEquiv; use JMS\Serializer\Annotation\ExclusionPol...
<?php namespace App\Http\Models; use Illuminate\Database\Eloquent\Model; class Category extends Model { protected $table = "category"; protected $primaryKey = "cate_id"; public $timestamps = false; protected $guarded = []; }
<?php /** * MIT License. This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Propel\Tests\Runtime\Formatter; use Propel\Runtime\ActiveQuery\ModelCriteria; use Propel\Runtime\Collection\C...
<div class="pcoded-inner-content"> <!-- Main-body start --> <div class="main-body"> <div class="page-wrapper"> <!-- Input Alignment card start --> <div class="card"> <div class="card-header"> <h5>Tambah Asset</h5> <a href="...
<?php /* * This file is part of the Fungio Google Map bundle package. * * (c) Eric GELOEN <geloen.eric@gmail.com> * * For the full copyright and license information, please read the LICENSE * file that was distributed with this source code. */ namespace Fungio\GoogleMapBundle\Model\Overlays; use Fungio\Google...
<?php namespace App\Http\Controllers\Blog; use App\Http\Controllers\Controller; use App\Models\Post; use App\Models\Category; use App\Models\Comment; use App\Models\User; class ShowController extends Controller { public function posts($slug) { $post = Post::where('slug', $slug)->first(); $cat...
<?php namespace OverwritingVariable; class Bar { public function methodFoo(): Foo { } } class Foo { }
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'b1c5ad15c3a5a18d15d39bf412239f7d');
<?php namespace App\Http\Controllers; use App\Contact; use App\Http\Requests\ContactRequest; use Illuminate\Http\Request; use App\Http\Requests; //======== add by me ============// use App\Http\Requests\CategoryRequest; class ContactController extends Controller { //======= request and model and view file =...
<?php namespace Polus; class DispatchResolver implements ResolverInterface { protected $resolver; public function __construct(callable $resolver) { $this->resolver = $resolver; } public function resolve($cls) { $resolver = $this->resolver; return $resolver($cls); ...
<?php /* Prototype : bool ctype_alpha(mixed $c) * Description: Checks for alphabetic character(s) * Source code: ext/ctype/ctype.c */ /* * Pass different data types as $c argument to ctype_alpha() to test behaviour */ echo "*** Testing ctype_alpha() : usage variations ***\n"; $orig = setlocale(LC_CTYPE, "C");...
<?php namespace DCarbone\PHPFHIRGenerated\R4\PHPFHIRTests\FHIRElement\FHIRBackboneElement\FHIREncounter; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: December 26th, 2019 1...
<?php date_default_timezone_set('America/Bogota'); if (!defined('BASEPATH')) exit('No direct script access allowed'); class supervisor_model extends CI_Model { /** * Se encarga de guardar los datos que se le pasen por el controlador en la tabla indicada. * @param Array $data * @param String $tabla * @re...
@extends('layouts.frontend.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Register') }}</div> <div class="card-body"> ...
<?php use Illuminate\Database\Seeder; use App\Kategori; class KategoriSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $k = new Kategori; $k->nama = 'Fakta Integritas'; $k->jenis = 'zi'; $k->save(); ...
<?php namespace App\Library\ModuleGenerator; use File; use Schema; use App\Models\TableField\TableField; use App\Models\MasterTable\MasterTable; /** * Class Module Generator. * * @author Anuj Jaha */ class ModuleGenerator { protected $moduleName; protected $routePath = 'routes/Backend'; protected $m...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class Cors { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) {...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\ProductCategorySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Product Categories'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="product-category-index"...
<?php namespace WP2Static; use RecursiveIteratorIterator; use RecursiveArrayIterator; use RecursiveDirectoryIterator; class FilesHelper { /** * Recursively delete a directory * * @throws WP2StaticException */ public static function delete_dir_with_files( string $dir ) : void { if...
<?php namespace Drupal\page_manager_ui\Wizard; use Drupal\Core\Display\ContextAwareVariantInterface; use Drupal\ctools\Plugin\PluginWizardInterface; use Drupal\page_manager_ui\Form\PageVariantContextsForm; use Drupal\page_manager_ui\Form\PageVariantConfigureForm; use Drupal\page_manager_ui\Form\PageVariantSelectionFo...
<?php namespace Pure\DataBase\Tables{ class pure_mana_history implements \Pure\DataBase\Table{ public function create(){ global $wpdb; $table_name = \Pure\DataBase\TablesNames::instance()->mana->history; if($wpdb->get_var('SHOW TABLES LIKE "'.$table_name.'"') !== $table_n...
<?php namespace App\Models; use \DateTimeInterface; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class CrmStatus extends Model { use SoftDeletes; public $table = 'crm_statuses'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at...
//// newtype.php <?hh // strict newtype FooInt as int = int; newtype FooString as string = string; newtype FooArray<T> as varray<T> = varray<T>; newtype FooMap<Tk as arraykey, Tv> as Map<Tk, Tv> = Map<Tk, Tv>; //// test.php <?hh // strict function test_ops_with_newtypes( FooInt $x, FooString $y, FooArray<mixed>...
{{-- <div class="d-flex align-items-center"> <!-- Mega menu --> <div class="dropdown mega-menu d-none d-md-block"> <a href="#" class="btn text-muted dropdown-toggle mr-3" id="dropdownMegaMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Me...
<?php // Check for empty fields if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['message']) || !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL)) { echo "No arguments Provided!"; return false; } $name = strip_tags(htmlspecialchars($_POST['name']...
<?php /** * ___ _ * / _ \ ___| |_ ___ _ __ _ _ * | | | |/ __| __/ _ \| '_ \| | | | * | |_| | (__| || (_) | |_) | |_| | * \___/ \___|\__\___/| .__/ \__, | * |_| |___/. * @author : Supian M <supianidz@gmail.com> * @link : framework.octopy.id * @license : MIT */ namesp...
<?php namespace models; use models\base; class LessonDay extends base\BaseLessonDay { }
<?php namespace Blog\Validate; use Zend\Captcha\Image; class ImageValidate { protected $image; public function __construct(Image $image) { $this->image = $image; } public function getCaptchaImage() { $fontpath = ROOT_PATH."/public/fonts/italic_bold.ttf"; $this->ima...
@extends('layouts.app') @section('content') <div class="ui grid container centered middle aligned profile-show-page"> <div class="ui sixteen wide column raised segment profile-show-container"> <div class="ui grid padded"> <div class="two wide column"> ...
<?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\Model; use Illuminate\Database\Eloquent\Model; class TravelPackageOrder extends Model { protected $table = "travel_packages_order"; }
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2018, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Blade; use Illuminate\Support\Facades\Gate; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() ...
<h1>hello i am dummy {{$data}}</h1>
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Booking; use App\Models\Checkin; use App\Models\RoomType; use Illuminate\Http\Request; class AdminDashboardController extends Controller { /** * Handle the incoming request. * * @param \Illuminate\Http...
<?php namespace frontend\controllers; use Yii; use frontend\models\RawatTindakan; use frontend\models\RawatTindakanSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * RawatTindakanController implements the CRUD actions for RawatTindakan model. */ class RawatTindakan...
<?php namespace Database\Seeders; use App\Models\Marca; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class MarcasTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Marca::create([ ...
<?php /* |-------------------------------------------------------------------------- | Application & Route Filters |-------------------------------------------------------------------------- | | Below you will find the "before" and "after" events for the application | which may be used to do any work before or after a...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class RecentlyConverted extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return false; } /** * Ge...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class UserDetail extends Model { use HasFactory; protected $fillable = [ 'user_id', 'first_name', 'middle_name', 'last_name', 'sex', 'avat...
<?php return array ( 6128237 => array ( 0 => 26, 1 => '京都市伏見区', 2 => '横大路三栖池田屋敷町', ), 6128246 => array ( 0 => 26, 1 => '京都市伏見区', 2 => '横大路芝生', ), 6128461 => array ( 0 => 26, 1 => '京都市伏見区', 2 => '中島流作町', ), 6120853 => array ( 0 => 26, 1 => '京都市伏見区',...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=fourtwen', 'username' => 'root', 'password' => 'root', 'charset' => 'utf8', ];
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Cart extends Model { protected $guarded = ['id']; public function user() { return $this->belongsTo('App\User'); } }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\instruments; class instrumentController extends Controller { public function insertI(Request $request){ $input=new instruments([ 'Iname'=>$request->Iname, 'Itype'=>$request->Itype, ]); $inpu...
<?php declare(strict_types = 1); /** * ActionArgs.php * * Файл является неотъемлемой частью проекта XEAF-RACK * * @author Николай В. Анохин <n.anokhin@xeaf.net> * @copyright 2020 XEAF.NET Group * * @license Apache 2.0 */ namespace XEAF\Rack\API\Core; use XEAF\Rack\API\App\Router; use XEAF\Rack\API\Inter...
<?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\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy; u...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Markup extends Model { public $timestamps = false; public function items() { return $this->hasMany('App\Item'); } public function flower_varieties() { return $this->hasMany('App\FlowerVariety'); } pu...
<?php use yii\db\Migration; /** * Handles adding columns to table `{{%projects}}`. */ class m220126_174447_add_financial_year_column_to_projects_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->addColumn('{{%projects}}', 'financial_year', $this->intege...
<?php namespace App\Component\Hydrator; use App\Entity\Modele\AbstractElement; class ElementHydrator extends ConceptHydrator { public function hydrateElement(AbstractElement $element, $data) { parent::hydrateConcept($element, $data); ($data['fiction']) ? $element->setFiction($data['fiction'])...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Profile; use App\Profilehistory; use Carbon\Carbon; class ProfileController extends Controller { // public function add() { return view('admin.profile.create'); } publ...
<?php use App\Model\House; use Illuminate\Database\Seeder; class HouseTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { House::truncate(); factory(House::class, 3)->create(); } }
<?php /** * Psb Registers (psb-registers) * @var $this AdminController * @var $model PsbRegisters * * @author Putra Sudaryanto <putra@ommu.co> * @contact (+62)856-299-4114 * @copyright Copyright (c) 2016 Ommu Platform (www.ommu.co) * @created date 27 April 2016, 12:23 WIB * @link https://github.com/ommu/ommu-p...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>答题系统大布局 - Layui</title> <meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="viewport" content="width=device-width"> <meta name="viewport" content=...
@extends('Layout.default') @section('page_content') <!-- --> <div class="row"> <div class="col-sm-12"> <div class="card card-topline-yellow"> <div class="card-head"> <header>Chi Tiết Tour</header> <div class="tools"> <a cl...
<header class="flex-shrink-0 border-b"> <div class="flex items-center justify-between p-2"> <!-- Navbar left --> <div class="flex items-center space-x-3"> <span class="p-2 text-xl font-semibold tracking-wider uppercase lg:hidden">K-WD</span> <!-- Toggle sidebar button --> ...
<?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 exi...
<?php declare(strict_types=1); /* * Outputting user data to the <head> ... </head> page. * * Вывод пользовательских данных в <head>...</head> страницы. */ namespace Hleb\Constructor\Handlers; use Hleb\Scheme\Home\Constructor\Handlers\ResourceStandard; class Head extends ResourceStandard { private $descript...
<?php Route::post('/auth/register', 'Api\Auth\RegisterApiController@store'); Route::post('/auth/token', 'Api\Auth\AuthClientController@auth'); Route::group([ 'middleware' => ['auth:sanctum'] ], function(){ Route::get('/auth/me' , 'Api\Auth\AuthClientController@me'); Route::post('/auth/logout', 'Api\Aut...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\KomentarjawabModel; use Illuminate\Foundation\Console\Presents\React; use DB; class KomentarjawabanController extends Controller { public function index($jawaban_id){ return KomentarjawabModel::get_all($jawaban_id); } ...
@if($invoice->type=='Product') {{ Form::open(array('route' => array('invoice.store.product',$invoice->id))) }} <div class="row"> <div class="form-group col-md-6"> {{ Form::label('item', __('Item')) }} {{ Form::select('item', $items,null, array('class' => 'form-control custom-sele...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Film_country extends Model { // }
<?php $ch = curl_init(); $parameters = array( 'apikey' => 'c8a9802346f27096d84f883e93e5d244', //Your API KEY 'number' => '09167980594', 'message' => 'A New Event is Available! Event Name: Test Event, Event Venue: Test Venue, Start Date & Time: 05/05/2019 10:00am', 'sendername' => 'SEMAPHORE' ); curl_set...
@extends("layouts.app") @section("addEvent") <div class="container-fluid"> <h2> Add Event!</h2> <div class="container"> <form action="/events/create" method="POST"> @csrf <label for="name">Name:</label> <input type="text" name="name"> <label for="descripti...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\User; use Carbon\Carbon; use Hash; class user_seeder_table extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $password = Hash::make('password'); $...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; class HomeController extends Controller { /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index(){ return view('wel...
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Notifications Notifications * @ingroup UnaModules * * @{ */ bx_import('BxBaseModNotificationsModule'); define('BX_NTFS_TYPE_OBJECT_OWNER_AND_CO...
<div> <table class="table table-report sm:mt-2"> <thead class="text-right"> <tr> <th class="whitespace-nowrap">آیدی</th> <th class="whitespace-nowrap">نام پکیج</th> <th class="text-center whitespace-nowrap">دپارتمان</th> <th class=...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Model; use Faker\Generator as Faker; use App\Product; $factory->define(Product::class, function (Faker $faker) { return [ 'name' => substr($faker->sentence(3),0,-1), 'description' => $faker->sentence(10), 'long_des...
<?php defined('BASEPATH')OR exit('No direct script access allowed'); class VendorsController extends CI_Controller{ public function __construct() { parent::__construct(); $this->lang->load('sidebar','english'); $this->lang->load('siteCommon','english'); $this->lang->load('vendo...
<?php namespace RectorPrefix20210719\TYPO3\CMS\Frontend\Controller; if (\class_exists('TYPO3\\CMS\\Frontend\\Controller\\DataSubmissionController')) { return; } class DataSubmissionController { }
<?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 date_default_timezone_set("Asia/kolkata"); //Data From Webhook $content = file_get_contents("php://input"); $update = json_decode($content, true); $chat_id = $update["message"]["chat"]["id"]; $message = $update["message"]["text"]; $id = $update["message"]["from"]["id"]; $username =...
<?php namespace Drupal\block_test\Plugin\Block; use Drupal\Core\Block\BlockBase; /** * Provides a context-aware block. * * @Block( * id = "test_context_aware_unsatisfied", * admin_label = @Translation("Test context-aware unsatisfied block"), * context = { * "user" = @ContextDefinition("entity:foobar...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class TemplateStep extends Model { use HasFactory; protected $guarded=['*']; public function template(){ return $this->belongsTo(Template::class, 'template_id'); } ...
@extends('layouts.frontend') @section('content') <style> table { width: 100%; } .table { width: 50%; margin-left: 23% } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } ...
<!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col"> <h1 class="h3 mb-2 text-gray-800"><?= $judul; ?></h1> </div> <div class="col"> <a href="<?= base_url('inventaris/transaksi_berulang_add'); ?>" clas...
<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Usuarios */ /* @var $form yii\widgets\ActiveForm */ ?> <?php $form = ActiveForm::begin(); ?> <div class="usuarios-form row"> <div class="col-sm-12 col-md-6"> <?= $form->field($model, 'email'...
@extends ( 'layouts.main' ) @section ( 'content' ) <h1>Edit Product</h1> <form action="{{ action ( 'ProductController@update' ,$product->id ) }}" method="post"> <input type="hidden" name="_token" value="{{{ csrf_token () }}}"> <div class="form-group"> <label>Name</label> <input name="name" class="form-co...
<?php $params = array_merge( require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php') ); return [ 'id' => 'app-backend', 'basePath' => dirname(__DIR__), 'control...
@extends('auth.layout.master') @section('title', 'Вариант свойства') @section('content') <div class="col-md-12"> <h1>Вариант свойства</h1> <br> <form method="POST" enctype="multipart/form-data" action="{{ route('property-options.store', $property) }}"> <div> ...