text
stringlengths
2
1.03M
<?php /* * This file is part of Twig. * * (c) 2009 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_TokenParser_Filter extends Twig_TokenParser { /** * Parses a token and returns a node. * ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations; use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\Sluggable; use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\Sl...
<?php namespace App\Http\Controllers; use App\Discussion; use App\Http\Requests\CreateDiscussionRequest; use Illuminate\Http\Request; use Illuminate\Support\Str; class DiscussionsController extends Controller { public function __construct() { $this->middleware('auth')->only(['create', 'store']); ...
<?php namespace App\Http\Controllers; use App\User; use App\Models\Post; use App\Models\Post\Like; use App\Models\Post\Share; use App\Models\User\Report; use Illuminate\Http\Request; class AdminController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Re...
<?php /* * Copyright (c) 2021 Anton Bagdatyev (Tonix) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy,...
<?php declare(strict_types=1); namespace Tests; use Fyre\Utility\Str; trait LastIndexOfTest { public function testLastIndexOfWithMatch(): void { $this->assertSame( 9, Str::lastIndexOf('This is a test string', ' test ') ); } public function testLastIndexOf...
<?php declare(strict_types=1); namespace Netgen\BlockManager\Tests\View\View; use Netgen\BlockManager\API\Values\LayoutResolver\Rule; use Netgen\BlockManager\View\View\RuleView; use PHPUnit\Framework\TestCase; final class RuleViewTest extends TestCase { /** * @var \Netgen\BlockManager\API\Values\LayoutReso...
<?php /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
<?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\Finder\Iterator; use Symfony\Component\Finder\Glob; ...
<?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\event; /** * Crawls thro...
<?php /** * This is the UI part of the social counter. 009 and 010 use different ui versions * User: ra * Date: 10/1/2014 * Time: 11:26 AM */ class td_block_social_counter extends td_block { function __construct() { // disable_loop_block_features @added on 26/4/2016 by ra. We use method_exists t...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDepartmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('departments...
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\TimeInterval; class TimeIntervalTableSeeder extends Seeder { public function run() { Eloquent::unguard(); TimeInterval::create([ 'interval' => '15', 'metric' => 'minutes' ]); TimeInterval::c...
<?php /* * ___ __ __ * |_ _|_ ____ _| \/ | ___ _ __ _ _ * | || '_ \ \ / / |\/| |/ _ \ '_ \| | | | * | || | | \ V /| | | | __/ | | | |_| | * |___|_| |_|\_/ |_| |_|\___|_| |_|\__,_| * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU L...
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // disable direct access } if( ! class_exists( 'Mega_Menu_Walker' ) ) : /** * @package WordPress * @since 1.0.0 * @uses Walker */ class Mega_Menu_Walker extends Walker_Nav_Menu { /** * Starts the list before the elements are added. * * @see Walker::start_lv...
<?php declare(strict_types=1); namespace Rector\Transform\ValueObject; use PHPStan\Type\ObjectType; use Rector\Core\Validation\RectorAssert; final class MethodCallToAnotherMethodCallWithArguments { /** * @param mixed[] $newArguments */ public function __construct( private string $type, ...
<!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</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:...
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">Create</div> <div class="card-body"> <...
<?php namespace App\Http\Controllers\Reports; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class ReportController extends Controller { public function report(){ return 'this is Admin report'; } }
<?php include "database.php"; //class x modif gli User utilizzata dall'Admin (da users_table, pencil icon) class editUser { private $myFirstname; private $myLastname; private $myPosition; private $myAge; private $myStartdate; private $mySalary; private $get_id_user; private $database; public functio...
<?php session_start(); ?> <!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"> <title>Sistema de Login - PHP</title> <link href="https://fonts.googleapis.com/css?family=Op...
<?php return array_replace(require __DIR__.'/us-national.php', [ '04-16' => '04-16', ]);
<?php namespace ProntuarioEletronico; use Illuminate\Database\Eloquent\Model; use Laravelista\Comments\Commentable; class Familia extends Model { use Commentable; protected $fillable = [ 'user_id', 'segmento', 'area', 'micro_area', 'siab', 'observacoes', ...
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\Trading\Types; /** * * @property string $Category2ID * @property string $CategoryID * ...
@extends('wpanel.master') @section('content') <header class="section-header"> <div class="tbl"> <div class="tbl-row"> <div class="tbl-cell"> <h3> <i class="glyphicon glyphicon-pencil"></i> Edit {{ $video->video_title }} ...
<?php use Illuminate\Database\Seeder; class PembandingSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('pembandings')->insert(['nama' => 'Pilih Nilai Perbandingan...', 'nilai' => 0]); DB::table('pembandings')->i...
<?php global $post; ?> <?php include( locate_template( 'templates/page-layout.php' ) ); ?> <div class="inner-container"> <?php include( locate_template( 'templates/page-header.php' ) ); // Page Header Template ?> <?php echo wp_kses_post($outer_container_open) . wp_kses_post($outer_row_open); // Outer Tag Ope...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $searchModel common\models\ArticleSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = '权限列表'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="permission-index"> <h1><?= Html::encode($this->title) ?></h1> ...
<?php /* * This file is part of the Wid'op package. * * (c) Wid'op <contact@widop.com> * * For the full copyright and license information, please read the LICENSE * file that was distributed with this source code. */ namespace Widop\HttpAdapter; use Buzz\Browser; /** * Buzz Http adapter. * * @author GeLo ...
<?php namespace app\modules\BearerApi\controllers; use app\models\LoginForm; use http\Env\Response; use Yii; use yii\filters\auth\CompositeAuth; use yii\filters\auth\HttpBasicAuth; use yii\filters\auth\HttpBearerAuth; use yii\filters\auth\QueryParamAuth; use yii\web\Controller; /** * Default controller for the `bea...
<footer class="footer text-right" dir="ltr"> <a href="http://liliomlab.com">@lang('admin.Liliom-Lab')</a> @lang('admin.Rights-date') - {{ date('Y') }} , @lang('admin.All-Rights-Reserved') ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class TablaVentaCliente extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('venta_cliente', ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dashboard_ctrl extends CI_Controller { public function index() { $data['total_author'] = $this->Author_mdl->count(); $data['total_book'] = $this->Book_mdl->count(); // var_dump($data);die; $data['navbar']="Dashboard"; $data['i...
<?php namespace App; use Illuminate\Notifications\Notifiable; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Tymon\JWTAuth\Contracts\JWTSubject; use App\Plan; use Laravel\Cashier\Billable; class User extends Authenticatable implements JWTSubject { ...
<?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\DoctrineORMAdminBundl...
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Channel/RequestNicklistForUser.proto use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBWrapperUtils; /** * Generated from protobuf message <...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>SnTracker | Lockscreen</title> <!-- Tell the browser to be responsive to screen width --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Font Awesome --> <link rel=...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateContentCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conte...
<?php defined('SYSPATH') or die('No direct script access.'); return array ( 'id' => array ( 'not_empty' => 'Id: required.', 'msg_duplicate' => 'Id: duplicate Id.', 'default' => 'Id: invalid input.' ), 'orderopen_id' => array ( 'not_empty' => 'Order Cancel Id: required.', ...
<?php $this->load->view('header') ?> <h1>Projects List</h1> <br> <a href="<?php echo base_url('project/new') ?>" class="btn btn-primary">New Project</a> <table border="1" class="mt-1"> <thead> <tr> <th>Project</th> <th>Progress</th> <th>Description</th> <th>Started</th> <...
<?php /** * Copyright (C) 2016 Mihai Chelaru * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program ...
interface iArrayList { public function add($item); public function remove($item); public function get($indice); public function size(); } class ArrayListDB implements iArrayList class ArrayListJson implements iArrayList //https://pt.stackoverflow.com/q/100276/101
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCalTrainingTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('calendar', ...
<?php /** * @property PHPParser_Node_Expr $cond Condition * @property PHPParser_Node_Stmt_Case[] $cases Case list */ class PHPParser_Node_Stmt_Switch extends PHPParser_Node_Stmt { /** * Constructs a case node. * * @param PHPParser_Node_Expr $cond Condition * @param PHPPa...
<?php namespace App\Http\Controllers\Agent; use App\Saving; use App\Wallet; use App\SavingsCategory; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Controllers\BaseController; use Illuminate\Support\Facades\Validator; class SavingsController extends BaseController { public functio...
<?php namespace BoletoPHP; /** * Class responsible for creating and communicating with web services for boletos in Brazil * * @category library * @package BoletoWebService * @license https://opensource.org/licenses/MIT MIT * @author Guilherme Calabria Filho < guiga86 at gmail dot com > * @link ht...
<?php namespace App\Models; use App\Traits\BelongsToCollege; use App\Traits\BelongsToDept; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Grant extends Model { use HasFactory, BelongsToDept, BelongsToCollege; protected $guarded = []; }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class AreaOfExpCourse extends Model { protected $table = 'Access.AreaOfExpCourse'; }
<h2>Please enter the path to a coverage database</h2> <form name="getdatabase" method="GET" action="<?php echo $parent->context->getRootLink(); ?>"> <input size="90" type="text" name="setdatabase"/> <input type="submit"/> </form>
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Building extends Model { // }
<?php declare(strict_types=1); namespace Pggns\MidocoApi\OrderSD\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for UserDataDTO StructType * @subpackage Structs */ class UserDataDTO extends AbstractStructBase { /** * The dataKey * @va...
@extends('layouts.helloapp') @section('title', 'Person.Delete') @section('menubar') @parent 削除ページ @endsection @section('content') <form action="/person/del" method="POST"> <table> @csrf <input type="hidden" name="id" value="{{ $form->id }}"> <tr><th>name: </th><td>{{ $form->na...
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
<?php namespace admin\models; use Yii; class ProductParam extends \common\models\ProductParam { public function rules() { return array_merge(parent::rules(), [ // [['field1', 'field2'], 'required', 'message' => '{attribute} is required'], ]); } public function scenarios()...
<?php // ======================= // Searchform // ======================= ?> <div class="search-inner"> <div class="container"> <form role="search" method="get" id="searchform" class="searchform" action="<?php echo home_url( '/' ); ?>"> <div> <label for="s">Search howard...
<?php class Exercise extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->helper('file'); } public function soal($id) { $data['list_essay'] = $this->exercise_model->exerciseessay()->resu...
<?php namespace app\common\model; use think\Model; class Snsalbum extends Model { public $page_info; /** * 获取默认相册分类 * @access public * @author csdeshang * @param type $member_id 会员id * @return bool */ public function getSnsAlbumClassDefault($member_id) { if(empty($m...
<?php namespace App\Exports\Reports; use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\ShouldAutoSize; class WasteProducts implements FromCollection, WithHeadings, ShouldAutoSize, WithMapping { pr...
<?php namespace App\Models; use Backpack\CRUD\app\Models\Traits\CrudTrait; use Illuminate\Database\Eloquent\Model; class Contact extends Model { use CrudTrait; /* |-------------------------------------------------------------------------- | GLOBAL VARIABLES |-------------------------------------...
<nav x-data="{ open: false }" class="fixed w-full bg-white border-b-2 shadow-2xl py-6"> <!-- Primary Navigation Menu --> <div class="w-full mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex justify-between lg:mx-44"> <div class="flex"> <!-- Logo --> <div class="...
<?php namespace Illuminate\Database\Connectors; class MySqlConnector extends Connector implements ConnectorInterface { /** * Establish a database connection. * * @param array $config * @return \PDO */ public function connect(array $config) { $dsn = $this->getDsn($config)...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\StudentSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="student-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]);?> <?=$form->fiel...
<?php namespace j4p\Kayakel; use j4p\Kayakel use Exception; /** * */ class KyStaffGroup { private $kayakel; function __construct(Kayakel $kayakel) { return $this->kayakel = $kayakel; } /** * Retrieve a list of all staff user groups in the help desk. */ public function listAll() { return $this->kay...
<?php session_start(); header("Content-Type:text/html; charset=utf-8"); if($_SESSION['num'] == null) { echo "403 Forbid"; exit(); } include("mysql_connect.inc.php"); if (isset($_POST['update'])) { if (!get_magic_quotes_gpc()) { $id = addslashes ($_POST['id']); $type = addslashes...
<?php namespace App\Model; class Turn extends \App\Model\App { public $table = 'turn'; }
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Support\Facades\Redis; class ViewsTest extends TestCase { /** @test */ public function visitors_can_see_a_coin_page() { $this->get(route('coins.show', $this->coin))->assertSuccessful(); } }
<?php namespace plugins\eacpay\lib; define('QR_MODE_NUL', -1); define('QR_MODE_NUM', 0); define('QR_MODE_AN', 1); define('QR_MODE_8', 2); define('QR_MODE_KANJI', 3); define('QR_MODE_STRUCTURE', 4); define('QR_ECLEVEL_L', 0); define('QR_ECLEVEL_M', 1); define('QR_ECLEVEL_Q', 2); define('QR_ECLEVEL_H', 3); define('QR_FOR...
<?php $lang['en'] += array( // Index page 'index.why_peercoin' => 'Why Peercoin', 'index.download_wallet' => 'Download Wallet', 'index.price' => 'Price', 'index.market_cap' => 'Market Cap', 'index.total_supply' => 'Total Supply', 'index.last_updated' => 'Last Updated:', 'index.last_updated_never' => 'never', '...
<?php return array ( 'about-us' => 'page/aboutus', 'archive' => 'page/archive', 'article' => 'page/article', 'author-guideline' => 'page/authorguideline', 'upcoming-conference' => 'page/conferences', 'conference-proposal' => 'page/confproposal', 'contact-us' => 'page/contactus', 'current-issues' => 'p...
<?php namespace Symfony\Component\DependencyInjection { interface ContainerAwareInterface { public function setContainer(ContainerInterface $container = null); } } namespace Doctrine\Common\Persistence { interface ConnectionRegistry { public function getDefaultConnectionName(); public function getConnection($name = nu...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost:3306;dbname=yii2basic', 'username' => 'root', 'password' => 'Password123!', 'charset' => 'utf8', // Schema cache options (for production environment) //'enableSchemaCache' => true, //'schemaCacheDuration' => ...
<?php // Devuelve los parámetros para crear los campos el formulario oculto y definir el tiempo mínimo requerido para completar el formulario return [ 'campo_nombre' => 'mi_nombre', 'campo_tiempo' => 'tiempo', 'longitud_tiempo' => 3, ];
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content =""> <title>Home</title> <link rel="stylesheet" type="text/css" href="{{asset('css/app.css')}}"> <meta name="csrf-token" content="{{ csrf_token() }}"> </head> <body> <div id="app"> <app-home></app-home> </div> <scrip...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>SKIM - CLAB Registration Renewal Letter</title> <style type="text/css"> th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; ...
<?php // disable direct access if ( ! defined( 'ABSPATH' ) ) exit; /** * Thumbnail Navigation addon */ class MetaSliderThumbnails { /** * Constructor */ public function __construct() { add_filter('metaslider_nivo_slider_parameters', array($this, 'nivo_enable_thumbnails'), 10, 3); ...
<?php /* * This file is part of the hyn/multi-tenant package. * * (c) Daniël Klabbers <daniel@klabbers.email> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @see https://laravel-tenancy.com * @see https://github.com/hyn/multi-...
@extends('layouts.backend.admin_design') @section('content') <?php $permitted_chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; function generate_string($input, $strength = 16) { $input_length = strlen($input); $random_string = ''; for($i = 0; $i < $strength; $i++) { $ra...
<?php namespace Concrete\Core\Workflow\Request; use Config; use Loader; use Page; use Stack; use Concrete\Core\Workflow\Description as WorkflowDescription; use PermissionKey; use Concrete\Core\Workflow\Progress\Progress as WorkflowProgress; use URL; use Concrete\Core\Workflow\Progress\Response as WorkflowProgressRespo...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Hash; use Illuminate\Http\Request; use App\Models\User; class UserController extends Controller { // function login(Request $req) { $user= User::where(['email'=>$req->email])->first(); if(!$user || !Hash::check($req->passw...
<?php /***********************************************************************************************************************************/ /* */ /* ...
<?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 /** * This file is part of the OpenPNE package. * (c) OpenPNE Project (http://www.openpne.jp/) * * For the full copyright and license information, please view the LICENSE * file and the NOTICE file that were distributed with this source code. */ /** * OpenPNE3_Sniffs_Commenting_InlineCommentSniff * * @...
<?php namespace ContainerXfv3Mew; use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; use Symfony\Component\DependencyInjection\Exception\RuntimeException; /** * @internal This class has been auto-generated by the Symfony Dependency Injection Component. */ class getTagControllerService extends ...
@extends('admin_layouts.default') @section('contern1') <div class="grid_10"> <div class="box round first grid"> <h2>Service List</h2> <div class="block"> <table class="data display datatable" id="example"> <thead> ...
<?php namespace CodeDelivery\Http\Controllers\api\client; use CodeDelivery\Models\Order; use CodeDelivery\Http\Controllers\Controller; use CodeDelivery\Repositories\ProductRepository; class ClientProductController extends Controller { private $repository; public function __construct( ProductRepository $...
@extends('partials.layout') @section('title') Post Test 1 @endsection @section('content') <div class="col-lg-offset-2 col-md-8"> <form class="form" method="POST" action="{{route('/posttest2')}}"> {{csrf_field()}} <div class="card"> <div class="card-head style-primary"> ...
<?php namespace OCA\OJSXC\Migration; use OCA\OJSXC\AppInfo\Application; use OCA\OJSXC\RosterPush; use OCP\IConfig; use OCP\ILogger; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; class RefreshRoster implements IRepairStep { /** * @var RosterPush */ private $rosterPush; /** * @var IConfig */ ...
<?php namespace Database\Seeders; use Illuminate\Support\Str; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('users')->ins...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserLists extends Model { protected $fillable = [ 'name', 'supplyList', ]; public function lists(){ return $this->hasOne('App\User'); } }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddImageFieldInNewsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('news', fun...
<?php namespace App\Http\Livewire\Admin\Categorypage\Vehicle; use App\Models\Log; use Illuminate\Support\Facades\DB; use Livewire\Component; use Livewire\WithFileUploads; use Livewire\WithPagination; class Product extends Component { use WithFileUploads; use WithPagination; protected $paginationTheme = ...
<?php namespace EntrepotBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Categories * * @ORM\Table(name="categories") * @ORM\Entity */ class Categories { /** * @var integer * * @ORM\Column(name="id_categorie", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(stra...
<?php namespace Tests\Unit\Services\Gateways; use Ebanx\Benjamin\Models\Responses\PaymentTerm; use Tests\Helpers\Builders\BuilderFactory; use Ebanx\Benjamin\Models\Configs\CreditCardConfig; use Ebanx\Benjamin\Models\Configs\Config; use Ebanx\Benjamin\Models\Country; use Ebanx\Benjamin\Models\Currency; use Ebanx\Benj...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Refinery; use App\Miner; use App\Invoice; use App\MiningActivity; use App\Payment; use App\Whitelist; use Illuminate\Support\Facades\Log; class TimerController extends Controller { /** * List all...
<?php /** * @package Joomla.Platform * @subpackage HTTP * * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die(); /** * HTTP transport class for using sockets di...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Programmes extends Model { protected $fillable = ['prog_name','prog_id','duration']; public function courses(){ return $this->belongsToMany(Course::class); } publi...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class KategoriBukuSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // } }
<?php namespace Galahad\Aire; use BadMethodCallException; use Closure; use Galahad\Aire\Elements\Attributes\ClassNames; use Galahad\Aire\Elements\Form; use Illuminate\Session\Store; use Illuminate\Support\Arr; use Illuminate\Support\Traits\ForwardsCalls; use Illuminate\View\Factory; // TODO: Aire::scaffold(User::cla...
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'App\\Actions\\Fortify\\CreateNewUser' => $baseDir . '/app/Actions/Fortify/CreateNewUser.php', 'App\\Actions\\Fortify\\PasswordValidationRules' => $baseDir . '/app/Acti...
<?php namespace ElementorPro\License\Notices; use Elementor\Core\Admin\Notices\Base_Notice; use ElementorPro\License\API as License_API; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Trial_Expired_Notice extends Base_Notice { /** * Notice ID. */ const ID = 'elementor_trial_expir...