text
stringlengths
2
1.03M
<?php use Illuminate\Database\Seeder; use App\Donation; class DonationsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Truncate our existing records to start from scratch. Donation::truncate(); $faker = ...
<?php declare(strict_types=1); namespace TypedArraysTest\Unit\Fixtures; final class SimpleObject { private string $value; public function __construct(string $value = '') { $this->value = $value; } public function getValue(): string { return $this->value; } }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function ...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login Controller |----------------------------...
<div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="<?php echo base_url('index.php/c_home');?>">Home</a> </li> <li class="active">Pelayanan BK...
<?php namespace App\Http\ViewComposers; use DB; use App\Models\Contact; use Illuminate\View\View; /** * ClientPortalHeaderComposer.php. * * @copyright See LICENSE file that was distributed with this source code. */ class ClientPortalHeaderComposer { /** * Bind data to the view. * * @param View...
<?php namespace Backend\Modules\Mailmotor; /* * This file is part of Fork CMS. * * For the full copyright and license information, please view the license * file that was distributed with this source code. */ use \Symfony\Component\HttpKernel\KernelInterface; use Backend\Core\Engine\Base\Config as BackendBaseC...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Yajra\DataTables\Facades\DataTables; use App\Warehouse; use App\Item; use App\Category; use App\Stock; use App\CustomerBranch; use App\Customer; use App\Pullout; use App\Loan; use App\Branch; use App\Defective; use App\UserLog; use DB; use Auth; c...
<?php session_start(); include "fungsi/koneksi.php"; include "fungsi/ceklogin.php"; $err=""; if(isset($_POST['login'])){ $username = $_POST['username']; $password = md5($_POST['password']); $level = $_POST['level']; $query = "SELECT * FROM user WHERE username='$username' && password='$password'"; $hasil = my...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class pinjamancontroller extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $pinjaman = pinjaman::all(); return v...
<?php namespace frontend\models; use Yii; use yii\db\ActiveQuery; use yii\db\ActiveRecord; use yii\web\NotFoundHttpException; use common\models\base\CommentBase; /** * Модель комментариев. * * @property integer $id * @property integer $pid идентификатор родительского комментария * @property string $title заголо...
<?php $Sidebar = new \Franklin\Component\Sidebar($VirtualParent); $Sidebar->Id = $Data['Sidebar_Id']; $Sidebar->Name = $Data['Sidebar_Name']; $Sidebar->Title = $Data['Sidebar_Title']; $Sidebar->Content = $Data['Sidebar_Content']; $Sidebar->CleanURL = $Data['Sidebar_CleanURL']; $Results[] = $Sidebar->Create();
<?php namespace Laravel\Fortify; use Illuminate\Cache\RateLimiter; use Illuminate\Http\Request; use Illuminate\Support\Str; class LoginRateLimiter { /** * The login rate limiter instance. * * @var \Illuminate\Cache\RateLimiter */ protected $limiter; /** * Create a new login rate...
<?php namespace Tests\Feature; // Taskモデルをインポート use App\Task; // 追加 use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class TaskControllerTest extends TestCase { // 追加 use RefreshDatabas...
<?php namespace App\Controller; use App\Entity\AccessLog; use App\Entity\CargaMime; use App\Entity\Usuario; use App\Util\Util; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Secur...
<?php namespace Mnemono\BackgroundServiceBundle\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 lo...
<?php /* * This file is part of the Sonata project. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\BlockBundle\Block; use Sonata\AdminBundle\Form\FormMap...
@extends('app') @section('htmlheader_title') Home @endsection @section('main-content') <div class="container"> <div class="row"> <div class="col-md-11 col-md-offset-0"> <div class="panel panel-default"> <div class="panel-heading"> <ol class="breadcrumb"...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Customer extends Model { // protected $fillable = [ 'name', 'booking_date', 'company', 'street_address', 'suburd', 'state', 'post_code', 'phone_number', 'details_id' ]; public function details() { return $this->morphTo(); } }
<p> Hello {{$name}}, </p> <p>This is to notify you that your salary advance application has been approved! </p> <br><br> <p>Regards,</p> <p>Xpose Limited.</p>
@extends('layouts.admin') @section('head') <title>PUC-Admin Home | Admin</title> @endsection @section('profilepicture') <img class="pp" alt="Profile Picture" src="uploads/default.png" style="width:200px;height:150px;border-width:0px;float:left;"> @endsection @section('main') <ul class='navbar-nav d-flex flex-row mai...
<!DOCTYPE HTML> <html> <head> <title>Cheryl Bible Chanpel : Men's Meeting</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="assets/css/main.css" /> <!--[if l...
<?php include('includes/dbcon.php'); if (isset($_POST['update'])) { $id = $_POST['id']; $team = $_POST['team']; $members = $_POST['members']; mysqli_query($con,"delete from team_member WHERE team_id='$id' and member_id NOT IN (".implode(',',$members).")")or die(mysqli_error()); foreach ($members as $va...
<?php namespace App\Methods; use App\Methods\GenericMethod; use App\Models\Transaction; use App\Models\POBatch; use App\Models\RRBatch; use App\Models\ReferrenceBatch; use App\Models\ReferrenceGroupBatches; use App\Models\POGroupBatches; use Illuminate\Support\Facades\DB; use Illuminate\Validation\ValidationExcepti...
<?php namespace LivewireUI; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class LivewireUIServiceProvider extends ServiceProvider { public function boot() { $this->registerDirectives(); } private function registerDirectives() { Blade::directive('li...
<?php /* @var $this yii\web\View */ /* @var $dataProvider yii\data\DataProviderInterface */ /* @var $brand shop\entities\Shop\Brand */ use yii\helpers\Html; $this->title = $brand->getSeoTitle(); $this->registerMetaTag(['name' =>'description', 'content' => $brand->meta->description]); $this->registerMetaTag(['name' =...
<?php namespace Essence\Http\Messages\Body; interface EssenceBodyInterface { }
<?php namespace App\Http\Controllers\Site; use App\Models\Peserta; use App\Models\Organisasi; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; class LoginController extends Controller { public function auth(Request $request, $jenis) { $this->valid...
<?php /* * This file is part of the Sonata package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Tests\Block\Breadcrumb; use Sonata\MediaBu...
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class MoviesType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options */ public ...
<?php namespace Swarrot\Processor\SignalHandler; use Swarrot\Broker\Message; use Swarrot\Processor\ProcessorInterface; use Swarrot\Processor\ConfigurableInterface; use Swarrot\Processor\SleepyInterface; use Psr\Log\LoggerInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class SignalHandlerPr...
<?php namespace TALLKit\Components\Buttons; class Back extends Button { /** * The theme key. * * @var string */ protected $themeKey = 'button'; }
<?php if(!class_exists('Rain\Tpl')){exit;}?> <!-- End Navbar --> <!-- Header --> <div class="header bg-gradient-primary pb-8 pt-5 pt-md-8"> <div class="container-fluid"> <div class="header-body"> <!-- Card stats --> <div class="row"> <div class="col-xl-6"> ...
<?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 use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateReceptionistBreakTimesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('...
<?php $plugin = rex_plugin::get('out5', 'wartungsarbeiten'); $content = ''; if (rex_post('config-submit', 'boolean')) { $plugin->setConfig(rex_post('config', [ ['url', 'string'], ])); $plugin->setConfig(rex_post('config', [ ['ip', 'string'], ])); $content .= rex_view::info('Änderung ...
<?php namespace App\Http\Controllers; use App\Students; use Illuminate\Http\Request; class StudentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show the form ...
<?php use Monitor\Repositories\RutaRepo; use Monitor\Repositories\ZonaRepo; use Monitor\Manager\RegisterRutaManager; class RutasController extends \BaseController { protected $rutaRepo; protected $zonaRepo; public function __construct(RutaRepo $rutaRepo) { $this->rutaRepo= $rutaRepo; } public function ind...
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <link href="<?php echo base_url(); ?>assets/css/style.css?7678" rel='stylesheet' type='text/css' /> </head> <body> <?php $this->view('shared/header'); ?> <div class="container"> <div...
@extends('layouts.adminIndex') @section('content') <div class="col-xl-12"> <div class="card"> <br> @if(count($errors)>0) <div class="alert alert-danger" id ="notification"> <ul> @foreach($errors->all() as $error...
<?php //ini_set('max_execution_time', 2000); /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2017, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any p...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Illuminate\Database\QueryException; class StoreSettings extends Model { protected $connection = 'mysql_dynamic'; protected $table = 'mst_storesetting'; // protected $primaryKey = 'iroid'; public $ti...
@if (count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach($errors->all() as $error) <li>{{ $error }}</li><br/> @endforeach </ul> </div> @endif
<?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 | c...
@extends('layouts.app') @section('content') @php $cat = get_queried_object(); if($cat -> parent) $parent_id = $cat -> parent; $cat_id = $cat -> term_id; @endphp @include('partials.extra-menu') @include('partials.categories-menu') @include('partials.products', ['cat_id' => $cat_id]) @endsection
<style> ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #111; } li { float: right; margin-right: 25px; } li a { display: block; color: white; text-align: center; padding: ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateExamQuestionsAnwserChoicesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::crea...
<?php namespace App\Http\Middleware; use Closure; use Carbon\Carbon; class EdadMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
<?php $__env->startSection('content'); ?> <!-- Page Wrapper --> <div class="page-wrapper"> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row"> <div class="col-sm-12"> <h3 class="page-title">Reviews</h3> ...
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="app.css"> <style> *,::after,::before { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; width: 10...
<?php namespace Interworx\Siteworx\Email; use Interworx; /** * Class Spamprefs * * @package Interworx\Siteworx\Email */ class Spamprefs extends Interworx\WorxBase { /** * Add advanced spamassassin configuration options * * @param string $preference (add_header, all_spam_to,...) * @param ...
<?php namespace Kinko\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null $guard * @return mixed */ ...
<?php namespace Gestion\GestionBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Gestion\GestionBundle\Entity\Voyage; use Gestion\GestionBundle\Entity\Transaction; use Gestion\GestionBundle\Form\TransactionType; /** * Transaction controlle...
@extends('master') @section('content') <div class="content-wrapper"> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <div class="row table-responsive"> ...
<?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 | ...
<!DOCTYPE html> <html lang="en"> @extends('layout.app') @section('style') <style> .main{ background-image: none; } </style> @endsection @section('body') <div class="bform"> <div class="row"> <div class="col-lg-12"> <div class="alert alert-success " role="alert"> ...
<?php declare(strict_types=1); namespace Neighborhoods\ThrowableDiagnosticComponent\ThrowableDiagnosticV1\ThrowableDiagnostic; // @codingStandardsIgnoreLine Line below exceeds 120 characters use Neighborhoods\ThrowableDiagnosticComponent\ThrowableDiagnosticV1\ThrowableDiagnostic\Decorator\FactoryInterface as Decorat...
<?php use Illuminate\Database\Seeder; use App\Countries; class CountriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('countries')->delete(); $countries = array( array('id' => 1,'code' => 'AF' ,'name' => "Afghanistan",'phonecode' => 93), array('...
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'org\\bovigo\\vfs' => array($vendorDir . '/mikey179/vfsStream/src/main/php'), 'Svg\\' => array($vendorDir . '/phenx/php-svg-lib/src'), 'Sabberworm\\CSS' => array(...
@extends('layouts.admin-app') <!DOCTYPE html> <html> @section('head') <title>Report</title> @endsection @section('content') <body> <h1 class="text-center">Report Transaksi Toko</h1> <div id="container"></div> <div class='row'> <div class="col-md-4 col-sm-12 mb-6"> <div class="card"> ...
<?php namespace NaturaPass\EmailBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class NaturaPassEmailBundle extends Bundle { }
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>编辑个人资料</title> <meta content="app-id=984819816" name="apple-itunes-app" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1...
@extends('layouts.master') @section('title','Sign Up') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-lg-8 col-sm-8 col-md-8 offset-lg-2 offset-md-2 offset-sm-2"> <h4 class="text-center mt-4">{{ __('Register') }}</h4> <...
<?php namespace Gazelle\Schedule\Tasks; class CycleAuthKeys extends \Gazelle\Schedule\Task { public function run() { $this->db->prepared_query(" UPDATE users_info SET AuthKey = MD5( CONCAT( AuthKey,...
<?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 Embed\Tests; class HowcastTest extends AbstractTestCase { public function testOne() { $this->assertEmbed( 'http://www.howcast.com/videos/512882-How-to-Make-an-Alabama-Slammer-Shots-Recipes', [ 'title' => 'How to Make an Alabama Slammer', ...
<?php include "../db_connect.php"; $username = $_REQUEST["username"]; $query = "select username from user"; $statement = $db->prepare($query); $statement->execute(); $results = $statement->fetchAll(); $statement->closeCursor(); $response = "Valid user n...
<?php /* partials/simplesearch_searchbox.html.twig */ class __TwigTemplate_d54c61ac2713e3394c17083798c7554b3ae07b181625db140aedd319a0a80cb3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = ar...
<?php /* * Title : Pinpoint Booking System WordPress Plugin * Version : 2.1.1 * File : includes/dashboard/class-backend-dashboard.php * File Version : 1.1 * Created / Last Modified : 26 August 2015 * Author : Dot on Paper * Copyright ...
@extends('layouts.admin') @section('title', '登録済みニュースの一覧') @section('content') <div class="container"> <div class="row"> <h2>ニュース一覧</h2> <p>過去に投稿したニュース</p> </div> <div class="row"> <div class="col-md-4"> <a href="{{ action('Admin\NewsContr...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Cms\V20190101\Models\DescribeMonitorGroupsRequest; use AlibabaCloud\Tea\Model; class tag extends Model { /** * @var string */ public $key; /** * @var string */ public $value; protected $_...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class FilmRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AjaxResponseServiceProvider extends ServiceProvider { public function register(){ $this->app->singleton('AjaxResponseService', function () { return new \App\Services\AjaxResponseService; ...
<?php namespace App\Services\SocialiteProviders\Microsoft; use GuzzleHttp\Client; use SocialiteProviders\Manager\OAuth2\User; class MicrosoftUser extends User { /** * {@inheritdoc} */ public function getAvatar() { $client = new Client(); $response = $client->get( 'ht...
<html> <head> <title>@yield('title')</title> <link href="/css/css/bootstrap.min.css" rel="stylesheet"> <link href="/css/css/bootstrap-grid.min.css" rel="stylesheet"> <link href="/css/css/bootstrap-reboot.min.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Montserrat:300,...
<!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis"><div class="addthis_sharing_toolbox"></div></div> {{-- <img src="/assets/imgs/icons/fake-addthis.png" /> --}}
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class VadimInital extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('program_scenario', fun...
@extends('layouts.layout') @section('content') <div class="appointmentpage"> <center> <hr> <h1>Make an Appointment</h1> <hr> <div class="appform"> <form method="POST" action="/storeappointment"> {{ csrf_field() }} @if (count($errors) > 0) <div class="alert alert-danger"> <strong>W...
<?php class ConvertTest extends BaseTest { public function testConvertLocalFileWorks() { $convertLocalFile = new \RobbieP\CloudConvertLaravel\ConvertLocalFile('/example/path/to/a-image.four_4.jpeg'); $this->assertSame('jpeg', $convertLocalFile->getFormat()); $this->assertSame('a-image.four_4.jpeg', $convertLo...
@extends('layouts.app') @section('content') <!-- Header --> @include('partials._header') <!-- END Header --> @section('styles') @parent <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.1/css/selectize.bootstrap3.min.css"> <style type="text/css"> #editor-conten...
<?php $this->load->view('layout/header'); ?> <style> footer{ position: inherit!important; } .checkbox-coupon{ height: 28px; float: left; width: 20px; margin-top: 10px } .coupon-imgage-payment{ float: left; width: 120px; } </style> <...
<?php // https://symfony.com/doc/3.4/session/locale_sticky_session.html namespace SiteBundle\EventSubscriber; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class LocaleSubscriber implements EventS...
<?php namespace App\Http\Controllers\Home; use App\Models\Reply; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Requests\ReplyRequest; class RepliesController extends Controller { public function __construct() { $this->middleware('auth'); } public function sto...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yiiunit\framework\widgets; use Yii; use yii\base\DynamicModel; use yii\web\AssetManager; use yii\web\View; use yii\widgets\ActiveField; use yii\widgets\Activ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddVisibleOnDaysToFieldsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('field...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\News */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="news-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?> <?php ...
<?php $hostname = "135.148.9.103"; $username = "admin"; $password = "rod@2021"; $dbname = "Rod_Input"; $port = '3306'; // Create connection $conn = new mysqli($hostname, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error);...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateResumesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('resumes', funct...
@include('common/errors') <form action="{{ $action == 'create' ? route('admin.accounts.store') : route('admin.accounts.update', [$account]) }}" method="POST"> {{ csrf_field() }} {{ $action == 'edit' ? method_field('PATCH') : '' }} <div class="row"> <div class="col-md-12 text-right"> @i...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Support\Facades\File; use Illuminate\Database\Eloquent\Model; use Spatie\YamlFrontMatter\YamlFrontMatter; use Illuminate\Database\Eloquent\ModelNotFoundException; class Venue extends Model { use HasFactory; // ...
<?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...
<div> <div class="form-group"> <label class="form-label" for="basic-url">Размеры комнаты</label> @foreach($room as $key =>$val ) <div class="form-group"> <div class="input-group"> <div class="input-group-prepend"> <button clas...
<?php use Illuminate\Database\Seeder; use App\Models\Jemaat; class JemaatsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(Jemaat::class, 2000)->create(); } }
<?hh // strict // Copyright 2004-present Facebook. All Rights Reserved. interface I1 {} interface I2<T as arraykey> extends I1 { public function get(): T; } function fun_stuff<T as arraykey>(T $in): void {} function instanceof_bug(I1 $in): void { if ($in is I2<_>) { fun_stuff($in->get()); } }
<?php namespace app\models; use Yii; use yii\base\Model; use yii\web\UploadedFile; class ImageUpload extends Model { public $image; public function rules() { return [ [['image'], 'required'], [['image'], 'file', 'extensions' => 'jpg,png,gif'] ]; } publ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class AddStudent extends Model{ use HasFactory; protected $table='employees'; protected $fillable=['student_id','student_name','student_roll','student_roll','student_fathersname' ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ChangeFieldUploadedToTableCargosToAirOrCarTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Sc...
<?php declare(strict_types=1); namespace Symplify\PackageBuilder\Strings; use Nette\Utils\Strings; /** * @api * @see \Symplify\PackageBuilder\Tests\Strings\StringFormatConverterTest */ final class StringFormatConverter { /** * @var string * @see https://regex101.com/r/rl1nvl/1 */ private c...
<form class="wordcamelcasetoseparator"> <div class="form-group col-md-6"> <label for="min">Separator:</label> <input type="text" class="wordcamelcasetoseparator-separator form-control" name="my_element[filterOption][wordcamelcasetoseparator][separator]" /> </div> <div class="form-group col-md-12"> <b...
<?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\HttpClient; use Psr\Log\LoggerAwareInterface; use Psr...