text
stringlengths
2
1.03M
<?php use Illuminate\Database\Seeder; class CategoriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('categories')->truncate(); DB::table('categories')->insert([ ['id' => 1...
<?php /** * Author: HereNing * __ __ _ __ _ * / // /___ ____ ___ / |/ /(_)___ ___ _ * / _ // -_)/ __// -_)/ // // _ \/ _ `/ * /_//_/ \__//_/ \__//_/|_//_//_//_/\_, / * /___/ * Date: 2019/6/13 * Time: 10:47 * Contact: helloheresin@gmail.com ...
<?php declare(strict_types=1); /* * This file is part of the Sonata Project 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\AdminBundle\Admin; u...
<?php function bloxdark_shortcode($attributes, $content) { extract( shortcode_atts( array( "img" => '', "height" => '', 'padding_top' => 0, 'padding_bottom' => 0, 'bg_attachme...
<?php namespace AgiBundle\Repository; /** * ContratSiteRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ContratSiteRepository extends \Doctrine\ORM\EntityRepository { }
<?php class Backend_spry2 extends \Eloquent { protected $fillable = []; protected $table = 'backend_spry2'; public $timestamps = false; public function backend_spry1() { return $this->belongsTo('Backend_spry1'); } }
<?php return [ 'api.user' => 'App\Controller\UserController', 'api.advert' => 'App\Controller\AdvertController', 'api.order' => 'App\Controller\OrderController', 'api.im' => 'App\Controller\ImController', 'api.common' => 'App\Controller\CommonController', 'api.wallet' => 'App\Control...
<?php /** * Created by PhpStorm. * User: wanghuan * Date: 15/8/19 * Time: 10:50 */ //require_once('header.php'); ?> <html> <head> <title>准备抽奖</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="scripts/main.js"></script> <style type="text/css"> body {...
<?php namespace AwesomePatterns\Observer; /** * Interface EventListener * * @package AwesomePatterns\Observer */ interface EventListener { /** * @return mixed */ public function handle(); }
<?php //Application Details $lang['app_name'] = "ClinicoSys"; $lang['title'] = "ClinicoSys"; $lang['main_title'] = "ClinicoSys Patient Management"; $lang['cmp_version'] = "ClinicoSys"; $lang['cmp_name'] = "iGravitas Technosoft India Pvt. Ltd."; //Form Headers $lang['sign_in'] = "Sign In"; //Labels $lang...
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Online Exam System</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link r...
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-annotations', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-key...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddSlugToArticles extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', functi...
<?php /* * This file is apart of the DiscordPHP project. * * Copyright (c) 2021 David Cole <david.cole1340@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the LICENSE.md file. */ namespace Discord\Parts; use ArrayAccess; use Carbon\Carbon; use Discord\D...
@extends('layouts.app') @section('content') <div class="container mt-4 user-cabinet-home"> <div class="row justify-content-center"> <div class="col-md-2"> @if(Auth::user()->role === 2 || Auth::user()->role === 0) @include('layouts.user.nav_firm') @else @includ...
<script src="{{asset('build/js/jquery-3.4.1.min.js')}}"></script> <script src="{{asset('build/js/custom.min.js')}}"></script> <script src="{{asset('build/js/jquery.inputmask.bundle.js')}}"></script> <script src="{{asset('build/js/ajax-jquery.min.js')}}"></script> <script src="{{asset('js/class.js')}}" type="text/javasc...
<?php /** * Setting filter form base class. * * @package symfony12 * @subpackage filter * @author Your name here * @version SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $ */ abstract class BaseSettingFormFilter extends BaseFormFilterDoctrine { public ...
<div class="container"> <!-- Outer Row --> <div class="row justify-content-center"> <div class="col-lg-5"> <div class="card o-hidden border-0 shadow-lg my-5"> <div class="card-body p-0"> <!-- Nested Row within Card Body --> <div class="row"> <div ...
<?php //importing required files require_once 'DbOperation.php'; require_once 'Firebase.php'; require_once 'Push.php'; $db = new DbOperation(); $response = array(); if($_SERVER['REQUEST_METHOD']=='POST'){ //hecking the required params if(isset($_POST['title']) and isset($_POST['message']) and isset($_POST['email']...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
@if ($paginator->hasPages()) <nav class="pagination is-centered"> {{-- Previous Page Link --}} @if ($paginator->onFirstPage()) <a class="pagination-previous is-disabled">Previous</a> @else <a href="{{ $paginator->previousPageUrl() }}" class="pagination-previous">Previ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Laporan_Barang_View extends Model { protected $primaryKey = 'id'; protected $table = 'laporan_barang_view'; protected $fillable = ['id','nama_barang','id_merek','id_distributor','tanggal_masuk','harga_barang','stok_barang','keterangan']; ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRolesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('roles', function ...
<?php /** * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model frontend\models\Committees */ $this->title = 'Update Committees: ' . $model->CommitteeID; $this->params['breadcrumbs'][] = ['label' => 'Committees', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->CommitteeID, 'url' =>...
@extends('layouts.admin') @section('content') <div class="card"> <div class="card-header"> {{ trans('global.show') }} {{ trans('cruds.user.title') }} </div> <div class="card-body"> <div class="form-group"> <div class="form-group"> <a class="btn btn-default" href...
<?php namespace Google\AdsApi\AdWords\v201705\cm; /** * This file was generated from WSDL. DO NOT EDIT. */ abstract class Page { /** * @var int $totalNumEntries */ protected $totalNumEntries = null; /** * @var string $PageType */ protected $PageType = null; /** * @va...
<html> <head> <script src="<?php echo base_url();?>assets/jquery"></script> <!--<script src="<?php /*echo base_url();*/?>assets/pace.js"></script>--> <script src="<?php echo base_url();?>assets/app.js"></script> <link href="<?php echo base_url();?>assets/style.css" rel="stylesheet"> <style type="tex...
<?php declare(strict_types=1); namespace Shopware\Storefront\Page\Account\Order; use Shopware\Core\Checkout\Customer\CustomerEntity; use Shopware\Storefront\Framework\Page\PageWithHeader; use Shopware\Storefront\Framework\Page\StorefrontSearchResult; class AccountOrderPage extends PageWithHeader { /** * @va...
<?php require_once "config.php"; // Client Application $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $address = $_POST['address']; $contact = $_POST['contact']; $applied_term = $_POST['applied_term']; if(!empty($_POST)){ $sql_client = "INSER...
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.8 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2016 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * Session_File class tests * * @group C...
<?php namespace Tests\BBC\ProgrammesPagesService\Data\ProgrammesDb\Entity; use BBC\ProgrammesPagesService\Data\ProgrammesDb\Entity\RefRelationshipType; use PHPUnit\Framework\TestCase; use ReflectionClass; class RefRelationshipTypeTest extends TestCase { public function testTraits() { $reflection = ne...
@extends('home') @section('content') <form action="/posts/edit/{{$post->id}}" method="POST"> {{csrf_field()}} {{method_field('patch')}} <div class="row"> <div class="box"> @include('errors') <div class="form-group"> <label for=...
<?php namespace App\Http\Middleware; use Closure; class CheckRole { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if ($request->user() ==...
<?php namespace Bonsai\Slider\Controller\Adminhtml\Slider; class MassDelete extends \Magento\Backend\App\Action { /** * Mass Action Filter * * @var \Magento\Ui\Component\MassAction\Filter */ protected $filter; /** * Collection Factory * * @var \Bonsai\Slider\Model\Resou...
@include('inc.messages') <div class="row"> <h2 class="mt-4">Редактировать данные тренера</h2> <form action="{{ route('update-trainer', $data->id) }}" method="POST" class="needs-validation mt-3" novalidate> @csrf <div class="row"> <div class="form-group col-md-6 mb-3"> ...
@extends ('layouts.master') @section ('content') <form action="/posts" method="post"> {{ csrf_field() }} <div class="form-group"> <label for="name">Title: *</label> <input type="text" id="title" name="title" placeholder="title" class="form-control"> </div> <div class="form-group"> ...
<?php namespace Faker\Provider\sq_AL; class Address extends \Faker\Provider\Address { /** * @see https://en.wikipedia.org/wiki/List_of_cities_and_towns_in_Albania */ protected static $city = [ 'Belsh','Berat','Bulqizë','Cërrik','Delvinë','Devoll','Dibër','Dimal','Divjakë','Dropull','Durrës',...
<?php namespace FactureBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use FactureBundle\Entity\Patient; use FactureBundle\form\LoginForm; class DefaultController extends Controller { public function indexAction() { $patient = new Patient(); $form = $this->createForm...
<?php include_once getabspath("classes/controls/ViewFileField.php"); class ViewVideoFileField extends ViewFileField { /** * addJSFiles * Add control JS files to page object */ function addJSFiles() { $this->AddJSFile("include/video/projekktor.js"); $this->getJSControl(); } /** * addCSSFiles * Add ...
<header class="masthead"> <div class="container"> <h3>SELAMAT DATANG DI APLIKASI PROFILE</h3> </div> </header>
<?php namespace RedditWrapper\Queries; use RedditWrapper\RedditWrapperException; class UserQuery extends Query implements QueryInterface { private const URL = self::BASE_URL.'/user/%s.json'; /** * @var string */ private $username; /** * Array of options must contain a subreddit value...
<?php class __Mustache_053138c3c863abe93bc77263c15b4161 extends Mustache_Template { private $lambdaHelper; public function renderInternal(Mustache_Context $context, $indent = '') { $this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context); $buffer = ''; $buffer .=...
<?php /** ******************************************************************************* * * !ATENCION! * * * * Este codigo es generado automaticamente. Si lo modi...
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('themes/layui/css/layui.css')); ?>"> <script src="<?php echo e(asset('themes/desktop/js/jquery.min.js')); ?>"></script> <script src="<?php echo e(asset('themes/layui/lay/dest/layui.all.js')); ?>"></script> <div style="width: 50%;margin: 60px auto;"> <f...
<?php use WP_CLI\SynopsisValidator; class ArgValidationTests extends PHPUnit_Framework_TestCase { public function testMissingPositional() { $validator = new SynopsisValidator( '<foo> <bar> [<baz>]' ); $this->assertFalse( $validator->enough_positionals( [] ) ); $this->assertTrue( $validator->enough_positional...
<?php error_reporting(0); $this->load->view('template/head'); ?> <!--tambahkan custom css disini--> <?php $this->load->view('template/topbar'); $this->load->view('template/sidebar'); ?> <!-- Main content --> <section class="content">
<?php /** * Message translations. * * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * * Each array element represents the translation (value) of a message ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateItemAttributesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('item_att...
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\models\Category; /** * CategorySearch represents the model behind the search form about `backend\models\Category`. */ class CategorySearch extends Category { /** * @inheritdoc */ public funct...
<!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <h2 class="h3 mb-4 text-gray-800"> Selamat Datang <b><?= $user['nama_admin']; ?></b></h2> <div class="col-lg-6"> <?= $this->session->flashdata('pesan'); ?> </div> </div> <!-- /.container-fluid --> </div> <!-- En...
<div class="brand clearfix"> <h4 class="pull-left text-white" style="margin:20px 0px 0px 20px"><img src="assets/images/groeco.png" class="logo"> Grocery Store</h4> <span class="menu-btn"><i class="fa fa-bars"></i></span> <ul class="ts-profile-nav"> <li class="ts-account"> <a href="#"><img src="img/...
@extends('layouts.layout') <link rel="stylesheet" href="{{asset('assets/css/plugins/dataTables.bootstrap4.min.css')}}"> <link rel="stylesheet" href="{{asset('assets/css/plugins/daterangepicker.css')}}"> @section('css_bottom') @endsection @section('body') <div class="row"> <div class="col-sm-12"> ...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class m_pdf { function __construct() { $CI = & get_instance(); } // function load() // { // include_once APPPATH.'/third_party/mpdf/mpdf.php'; // //return new mPDF($param); // return new mPDF("en-GB",...
<?php declare(strict_types=1); namespace GraphQL\Tests\Executor; use GraphQL\Deferred; use GraphQL\Error\Error; use GraphQL\Error\UserError; use GraphQL\Executor\Executor; use GraphQL\Language\AST\OperationDefinitionNode; use GraphQL\Language\Parser; use GraphQL\Tests\Executor\TestClasses\NotSpecial; use GraphQL\Tes...
<div class="container"> <ul class="nav nav-tabs"> <li><a href="<?php echo base_url('account/inventory')?>"><i class="fa fa-home"></i> Home</a></li> <li role="presentation" class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false"> Brands <sp...
<?php namespace WScore\Pages; use Aura\Session\Segment; use Aura\Session\Session; use Aura\Session\SessionFactory; use Exception; use Psr\Http\Message\ServerRequestInterface; use ReflectionException; use ReflectionMethod; use RuntimeException; /** * A simple page-based controller. * * Class PageController * @pac...
<?php include '..\partials\header.php'; include '..\partials\navegacion.php'; ?> <div class="container mt-3"> home </div> <?php include '..\partials\footer.php'; ?>
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Book; use Datatables; class BookAjaxController extends Controller { public function index(){ return view('books-ajax.index'); } public function books(){ $books = Book::select('title','author','publisher')->get(); ...
<?php namespace App\Http\Controllers; use App\Models\Shops; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use function Sodium\compare; class UsersController extends Controller { // public function __construct() { //做权限验证 $this->middleware('auth',[ ...
<?php // +----------------------------------------------------------------------+ // | PHP versions 4 and 5 | // +----------------------------------------------------------------------+ // | Copyright (c) 1998-2006 Manuel Lemos, Paul Cooper | // | All r...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
@extends('layout/masterspek') @section('title', 'Detail') @section('warnaaktif') @extends('navbrand') @section('container') <div class="container text-center"> <img src="{{ url('uploads/laptop') }}/{{ $legion->logo }}" width="25%" class="rounded-circle" > <h1 class="display-4">{{ $legion->nama }}</h...
<?php declare(strict_types = 1); namespace LanguageServer\Client; use LanguageServer\ClientHandler; use LanguageServerProtocol\{Diagnostic, TextDocumentItem, TextDocumentIdentifier}; use Sabre\Event\Promise; use JsonMapper; /** * Provides method handlers for all textDocument/* methods */ class TextDocument { p...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class ProductdetailSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // } }
<?php declare(strict_types=1); /* * This file is part of the Sonata Project 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\UserBundle\Tests\Enti...
<!DOCTYPE html> <html lang="{{ app()->getLocale() }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ co...
<?php /** * This file is part of the SevenShores/NetSuite library * AND originally from the NetSuite PHP Toolkit. * * New content: * @package ryanwinchester/netsuite-php * @copyright Copyright (c) Ryan Winchester * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 * @link https://githu...
@extends('master') @section('breadcrumb-item') <li class="breadcrumb-item active">Danh sách đơn hàng</li> @stop @section('noiDung') <style type="text/css" media="screen"> .control-label { font-weight: bold; } .btn-xs { padding: 0.25rem 0.5rem; font-size: 0.7rem; line-height: 1.5; border-radius: 0.2rem; } </styl...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Stock extends Model { protected $fillable=[ 'customer_id', 'symbol', 'name', 'shares', 'purchase_price', 'purchased', 'current', ]; public function customer() { return $thi...
<?php declare(strict_types=1); namespace Symplify\PHPStanRules\Rules; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Expr\New_; use PhpParser\Node\Scalar\String_; use PHPStan\Analyser\Scope; use PHPStan\Rules\Rule; use Symplify\Astral\Naming\SimpleNameResolver...
<?php namespace App\Exports; use DB; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\WithHeadingRow; use Maatwebsite\Excel\Concerns\WithColumnWidths; use Maatw...
<?php namespace Comodojo\Extender\Commands\Utils; use \Symfony\Component\Console\Output\OutputInterface; use \Symfony\Component\Console\Helper\Table; /** * @package Comodojo Extender (default bundle) * @author Marco Giovinazzi <marco.giovinazzi@comodojo.org> * @license MIT * * LICENSE: * * THE SOF...
<?php $message = "<strong>AYUDA Y SOPORTE: </strong><br><br>"; //$message = "<img src='images/page2_img.jpg'>"; $message .= "<strong>Nombre: </strong>".$_POST["nombre"]."<br>"; $message .= "<strong>Email: </strong>".$_POST["correo"]."<br>"; $message .= "<br><strong>Mensaje:</strong><br>".$_POST["mensaje"]."<br>"; ...
<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace frontend\modules\sections\classes; use kartik\mpdf\Pdf; /** * Description of JPrint * * @author chanpan */ class ...
<?php use yii\db\Migration; /** * Class m180331_041006_food_category_table */ class m180331_041006_food_category_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('food_category',[ 'id' => $this->primaryKey(), 'name' ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class EditAllTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('customer', function (B...
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel" data-interval="500"> <div class="carousel-inner"> <div class="carousel-item active"> <!-- <img class="d-block w-100" src="..." alt="First slide"> --> <div class="kanan"> <h1>baner1</h1...
@extends('layouts.master') @section('title','Nuevo Guia Ingreso') @section('content') <link rel="stylesheet" href="{{asset('bootstrap4/css/datatables/bootstrap.css')}}"> <link rel="stylesheet" href="{{asset('bootstrap4/css/datatables/dataTables.bootstrap4.min.css')}}"> <div class="breadcrumb-holder fadeIn animated"...
<?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 /* Template Name: Sponsor Page */ ?> <?php get_header(); ?> <div id="content"> <div id="inner-content" class="wrap cf"> <main id="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> ...
<?php /** * Created by PhpStorm. * User: Florian Moser * Date: 24.05.2015 * Time: 11:20 */ ?> <?php include $_SERVER['DOCUMENT_ROOT'] . "/Framework/Templates/_parts/header_crud.php"; ?> <form action="projects/<?php echo $this->link ?>/<?php echo GetValue($this->_['obj'], "Id") ?>/" method="post"> <i...
<h2>No <?= $info->plural ?> Found</h2> <?php if (isset($model->search) && strrpos($model->search, '*') === false) { ?> <p>To search for partial words use an asterisk, eg. "<a href="<?= $this->url->query(['search' => "*{$model->search}*"]) ?>"><?= "*{$model->search}*" ?></a>".</p> <?php } else if (array_intersect(['...
<?php use Illuminate\Database\Seeder; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(\App\Repositories\Models\Product::class, 100)->create(); } }
<?php /*============================================================================== * (C) Copyright 2015,2020 John J Kauflin, All rights reserved. *---------------------------------------------------------------------------- * DESCRIPTION: *----------------------------------------------------------------------...
<?php namespace Lovata\MightySeo\Tests\Unit\Models; include_once __DIR__.'/../../../../toolbox/vendor/autoload.php'; include_once __DIR__.'/../../../../../../tests/PluginTestCase.php'; use PluginTestCase; use Lovata\MightySeo\Models\SeoTemplate; /** * Class SeoTemplateTest * @package Lovata\MightySeo\Tests\Unit\Mo...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\models\DriverClass */ $this->title = 'Обновить класс: ' . $model->name; $this->params['breadcrumbs'][] = ['label' => 'Driver Classes', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id...
<?php declare(strict_types=1); /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Carbon; use Carbon\Carbon; use InvalidArgume...
<?php namespace Clake\UserExtended\Classes; use Carbon\Carbon; /** * User Extended by Shawn Clake * Class ModuleManager * User Extended is licensed under the MIT license. * * @author Shawn Clake <shawn.clake@gmail.com> * @link https://github.com/ShawnClake/UserExtended * * @license https://github.com/ShawnCla...
<?php /** * Product service * * @package Walmart API PHP Client * @author Piotr Gadzinski <dev@gadoma.com> * @copyright Copyright (c) 2016 * @license MIT * @since 05/04/2016 */ namespace WalmartApiClient\Service; class ProductService extends AbstractService implements ProductServiceInterf...
<?php namespace App\Http\Controllers; use App\Models\veiculo; use Illuminate\Http\Request; class VeiculoController extends Controller { public function index(){ $tabela = veiculo::all(); return view('painel-admin.veiculos.index',['itens' => $tabela]); } public function create(){ ...
<?php /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * perm...
<?php namespace Seshac\Shiprocket\Clients; interface Client { public function setEndpoint(string $endpoint); public function setHeaders(string $token); public function get(); public function post(array $data); public function patch(array $data); }
@extends('layouts.admin') @section('title', '登録済みニュースの一覧') @section('content') <div class="container"> <div class="row"> <h2>プロフィール一覧</h2> </div> <div class="row"> <div class="col-md-4"> <a href="{{ action('admin\profilecontroller@add') }}" role="butt...
<div class="card card-warning" id="card-edit"> <div class="card-header"> <h3 class="card-title">Sửa Role</h3> </div> <form> <div class="card-body"> <input type="hidden" class="form-control" id="id-role"> <div class="form-group"> <label for="" style="fo...
<!DOCTYPE html> <html lang="{{ app()->getLocale() }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/png" href="{{ asset('/favicon.png') }}"> <!-- CSRF Token --> ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\HTML; use App\Profile; class ProfileController extends Controller { public function index(Request $request) { $posts = Profile::all()->sortByDesc('updated_at'); if (count($posts) > 0) { ...
<?php $__env->startSection('title', 'Register'); ?> <?php $__env->startSection('content'); ?> <form class="form-horizontal" role="form" method="POST" action="<?php echo e(url('/register')); ?>"> <?php echo e(csrf_field()); ?> <div class="form-group...
@include('include_front/header') <!-- END section --> <section class="site-section bg-light" id="section-keranjang"> <div class="container"> <div class="clearfix"> @if (Session::has('msgbox')) <div class="alert alert-block alert-success"> <button type="button" class="close" data-dismiss="alert"> ...