text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Promotion;
class PromotionController extends Controller
{
//
protected $promotion=null;
public function __construct(Promotion $promotion)
{
$this->promotion=$promotion;
}
public function index()... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
</head>
<body>
<h2>
Your new password is : {{$data['randomString']}}
</h2>
</body>
</html> |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDevicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('devices', funct... |
@if(!isset($width))
<?php $width = "col-md-8 col-lg-8"; ?>
@endif
<!-- NEW WIDGET START -->
<article class="col-xs-12 col-sm-12 {{$width}}">
<!-- Widget ID (each widget will need unique ID)-->
<div class="jarviswidget" style="" id="wid-id-add-prod-read-a-little" data-widget-editbutton="false"
data-... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, ... |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Command;
/**
* @link http://redis.io/commands/pttl
* @autho... |
<?php
namespace Imi\Test\Component\Model\Base;
use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;
/**
* TreeBase
* @Entity
* @Table(name="tb_tree", id={"id"})
* @DDL("CREATE TABLE `tb_tree` (
`id` int(10) unsigned ... |
<?php
// +---------------------------------------------------------------------+
// | OneBase | [ WE CAN DO IT JUST THINK ] |
// +---------------------------------------------------------------------+
// | Licensed | http://www.apache.org/licenses/LICENSE-2.0 ) |
// +----------... |
<?php return [
'auth' => [
'title' => 'Administratorska sekcija',
'invalid_login' => 'Unešeni detalji se ne podudaraju sa onima u bazi, pokušajte ponovo.',
],
'field' => [
'invalid_type' => 'Iskorišćen tip polja nije validan :type.',
'options_method_invalid_model' => 'Atribut \':field\' ne vraća v... |
<!-- begin:: Header -->
<div id="kt_header" class="kt-header kt-grid__item kt-header--fixed">
<!-- begin: Header Menu -->
<button class="kt-header-menu-wrapper-close" id="kt_header_menu_mobile_close_btn">
<i class="la la-close"></i>
</button>
<div class="kt-header-menu-wrapper" id="kt_header_me... |
<?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
declare(strict_types=1);
namespace Doctrine\Migrations\Tests\Tools\Console\Command;
use Doctrine\Migrations\Configuration\Configuration;
use Doctrine\Migrations\DependencyFactory;
use Doctrine\Migrations\Generator\ClassNameGenerator;
use Doctrine\Migrations\Generator\Generator;
use Doctrine\Migrations\Tools\Co... |
<?php
/**
* @package guddi
* @since 1.0
* @version 1.0
*
*/
get_header(); ?>
<?php get_footer(); ?> |
<?php if(Auth::check()) { ?>
<header class="clearfix">
<!--a href="#/" data-toggle-min-nav
class="toggle-min"
><i class="fa fa-bars"></i></a-->
<!-- Logo -->
<div class="logo">
<a href="#/">
<span>{{main.brand}}</span>
</a>
</div>
<!-- ... |
<?php
namespace App\Fakers;
use Faker\Factory;
use Railken\Bag;
use Railken\Lem\Faker;
class BarFaker extends Faker
{
/**
* @return \Railken\Bag
*/
public function parameters()
{
$faker = Factory::create();
$bag = new Bag();
$bag->set('name', $faker->name);
$bag... |
<?php
session_start();
include "db_conn.php";
if (isset($_POST['uname']) && isset($_POST['password'])) {
function validate($data){
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
$uname = validate($_POST['uname']);
$pass = validate($_POST['p... |
<?php
/**
* This file is part of the Borobudur package.
*
* (c) 2017 Borobudur <http://borobudur.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Borobudur\Component\Messaging\Metadata;
/**
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateEtsMedia extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE '.\App\M... |
<?php
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'console.command.public_alias.doctrine_migratio... |
<?php
/**
* @author Chris S - AKA Someguy123
* @version 0.01 (ALPHA!)
* @license PUBLIC DOMAIN http://unlicense.org
* @package +Coin - Bitcoin & forks Web Interface
*/
include ("header.php");
$trans = $nmc->listtransactions('*', 7);
$x = array_reverse($trans);
$bal = $nmc->getbalance(null, 6);
$bal3 = $nmc->g... |
<?php
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the private 'security.firewall.map.config.main' shared ser... |
<?php
declare(strict_types=1);
namespace App\Controller;
use App\Entity\Registration;
use App\Repository\RegistrationRepository;
use App\Request\NewRegistration;
use JMS\Serializer\SerializationContext;
use JMS\Serializer\SerializerInterface;
use Lcobucci\Clock\Clock;
use Ramsey\Uuid\Uuid;
use Sensio\Bundle\Framewor... |
<?php
use yii\helpers\Html;
use backend\modules\qtn\SurveyAsset;
SurveyAsset::register($this);
if (Yii::$app->request->isAjax) {
echo '<li class="ui-sortable-handle" id="del_qtn_'.$modelQuestion->id.'">';
}
$link_del=$link_edit= '';
if($proc['edit']=='edit'){
echo '<input type="hidden" name="seq['.$tite_id.'][]" v... |
<?php
namespace Binidini\CoreBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Security\Core\SecurityContext;
class MessageType extends AbstractType
{
private $sender;
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Register_User extends Model
{
//
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Order;
use App\User;
class CmsController extends MainController
{
public function dashboard(){
return view('cms.dashboard', self::$ViewData);
}
public function orders(){
self::$ViewData['orders'] = Order::getOrders();
... |
<?php
/**
* MIT License
*
* Copyright (c) 2005-2017 TorrentPier
*
* 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... |
@extends('layouts.parent')
@section('title')
Hitung
@endsection
@section('style')
@endsection
@section('content')
<!-- Main Content -->
<div class="main-content">
<section class="section">
<div class="section-header">
<h1 class="text-info text-uppercase">Hitung</h1>
... |
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
use Closure;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Contracts\Auth\Factory as Auth;
use Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests;
use Illuminate\Support\Facades\Cookie;
class Authent... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashbo... |
<?php
//iber___can
namespace eDemy\ProductBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Outp... |
<?php
namespace app\controllers;
use Yii;
use app\models\PregnancyCdssSymptCategory;
use app\models\PregnancyCdssSymptCategorySearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PregnancyCdssSymptCategoryController implements the CRUD actions for PregnancyCdssSymptCa... |
<div class="row border-bottom">
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
{{--<form role="search" class="navbar-form-custom" method="pos... |
<?php
include "abrir_conexion.php";
include "Alert/alert.php";
$NumCuenta = $_GET["NoCuenta"];
//TABLA tb_datopesonal
$sql = "SELECT * FROM tb_datopersonal Where Id_NumCuenta='$NumCuenta'";
$result = mysqli_query($conexion, $sql);
$filas = mysqli_num_rows($result);
// Se asign... |
<?php $__env->startSection('contenu'); ?>
<script src="<?php echo e(asset('js/dtable.js')); ?>"></script>
<br>
<div class="text-center">
<label style="font-family: fantasy;color: blue"> ACCREDITATION DE PRESSE</label>
</div>
<hr>
<br>
<?php if(isset($message)): ?>
<div class="alert-success col-sm-7 text-center off... |
@extends('layouts.app')
@section('content')
<div class="container">
@if (count($errors) > 0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
... |
<?php
namespace App\Events;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use App\Order;
use Cart;
class OrderWasCreated extends Event
{
use SerializesModels;
public $order;
public $transactionId;
/**
* Create a new event i... |
<!DOCTYPE html>
<html>
<head>
<title>Your To-Do-List</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
... |
<?php
use Illuminate\Database\Seeder;
class DemoUrlsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
foreach (App\User::get() as $user) {
factory(App\Url::class, random_int(0, Config::get('url.limit_per_user')))-... |
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="{{route('admin.home')}}" class="brand-link">
<img src="{{asset('dist/img/AdminLTELogo.png')}}" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-... |
@extends('layout.master')
@section('content')
<div class="main">
<div class="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
@if(session('sukses'))
<div class="alert alert-success" role="alert">
{{session('sukses')}}
</div>
@endif
... |
<?php
namespace App\Http\Controllers\Catalogs;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Http\Requests\UsersRequest;
use App\User;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
use Illuminate\Support\Facades\Hash;
class UsersController extends Controller
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCatalogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('catalogs', fun... |
<?php
/**
* Multibyte handling methods.
*
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @... |
@extends('admin.layout.app')
@section('title','Vendor Detail')
@section('content')
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Vendor Name : <span>{{$name}}</span></h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-... |
<?php
function get_file($url,$name,$folder = './')
{
set_time_limit((24 * 60) * 60);
// 设置超时时间
$destination_folder = $folder . '/';
// 文件下载保存目录,默认为当前文件目录
if (!is_dir($destination_folder)) {
// 判断目录是否存在
mkdirs($destination_folder);
}
$newfname = $destination_folder.$name;
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use App\Models\Resepsi;
use Illuminate\Support\Facades\Auth;
class... |
<?php
declare(strict_types=1);
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full co... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class BkashRefundController extends Controller
{
private $base_url;
private $app_key;
public function __construct()
{
// You can import it from your Database
$bkash_app_key = '5tunt4masn6pv2hnvte1sb5n3j'; // bKash Mer... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... |
<?php
declare(strict_types=1);
namespace AcMailerTest\Service;
use AcMailer\Attachment\AttachmentParserManagerInterface;
use AcMailer\Attachment\Parser\AttachmentParserInterface;
use AcMailer\Event\MailListenerInterface;
use AcMailer\Exception\InvalidArgumentException;
use AcMailer\Exception\MailException;
use AcMail... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Storage;
use Illuminate\Support\Facades\Input;
use App\SeoTag;
use DB;
use RealRashid\SweetAlert\Facades\Alert;
class PincodeController extends Controller
{
/*---------------------------admin controllers start----------... |
@extends('backend.layouts.backend-master')
@section('styles')
<style media="screen">
.img-container{
width: 200px;
height: 200px;
}
</style>
@endsection
@section('content')
<div class="content">
<div class="container-fluid">
<div class="row">
... |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
DEBUG - 2018-07-27 04:08:59 --> UTF-8 Support Enabled
DEBUG - 2018-07-27 04:08:59 --> Global POST, GET and COOKIE data sanitized
ERROR - 2018-07-27 04:08:59 --> 404 Page Not Found: Wp-admin/install.php
DEBUG - 2018-07-27 05:18:28 --> UTF-8 Suppor... |
<?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\HttpKernel\Fragment;
use Symfony\Component\HttpFounda... |
<div class="row">
<div class="col-12">
<div class="box-body">
<div id="map" style="width: 100%; height: 600px"></div>
</div>
</div>
</div>
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
route_points: {!! json_encode($map_features['route_points']) !!},
... |
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Post;
use DateTime;
use Flarum\Post\Event\CheckingForFlooding;
use Flarum\Post\... |
<!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:... |
<?php
/**
* Created by PhpStorm.
* User: ShaOn
* Date: 11/29/2018
* Time: 12:49 AM
*/
namespace App\Classes;
use App\Models\EmailTemplate;
use App\Models\Generalsetting;
use App\Models\Order;
use PDF;
use Illuminate\Support\Facades\Mail;
use Config;
class GeniusMailer
{
public function __construct()
{
... |
<?php namespace Fisdap\Entity;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Table;
/**
* Requirement Category
*
* @Entity(repositoryClass="Fisdap\Data\Requirement\DoctrineRequirementCategoryReposit... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Task extends Model
{
use HasFactory;
protected $fillable = [
'name',
'body',
'priority',
'done',
];
public function user()
{
r... |
<?php
$url = parse_url(env("CLEARDB_DATABASE_URL"));
$host = $url["host"];
$username = $url["user"];
$password = $url["pass"];
$database = substr($url["path"], 1);
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|-------------------------------... |
<?php
namespace Eduardokum\LaravelBoleto\Tests\Boleto;
use Eduardokum\LaravelBoleto\Boleto\Banco as Boleto;
use Eduardokum\LaravelBoleto\Boleto\Render\Pdf;
use Eduardokum\LaravelBoleto\Pessoa;
use Eduardokum\LaravelBoleto\Tests\TestCase;
use Exception;
class BoletoTest extends TestCase
{
protected static $pagado... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controlle... |
@extends('layouts.app')
@section('content')
<style>
.right_side .table_row, .member_right .table_row {
border-bottom: 1px solid #dedede;
float: left;
width: 100%;
padding: 1px 0px 4px 2px;
}
.table_row .table_td {
padding: 8px 8px !important;
}
.report_title {
float: left;
font-size: 20px;
m... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notification', function (Blueprint $table) {
$table->increments('notific... |
<?php list($canRead, $canWrite) = fetchPermissions('Onsite Campaign'); ?>
<div class="tab-pane <?php echo $integrationClass; ?>" id="right-icon-tab5">
<div class="row">
<div class="col-md-3">
<div style="margin: 0;" class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">How to add ... |
<?php
NAMESPACE About\Validation;
class Validate{
public $validation = [];
public $errors = [];
private $data = [];
public function notEmpty($value){
if(!empty($value)){
return true;
}
return false;
}
public function email($value){
if(filter_... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Escuelas;
/**
* EscuelasSearch represents the model behind the search form about `app\models\Escuelas`.
*/
class EscuelasSearch extends Escuelas
{
/**
* @inheritdoc
*/
public function rules()
... |
<?php namespace Comodojo\Daemon\Socket;
use \Comodojo\Exception\SocketException;
/**
* @package Comodojo Daemon
* @author Marco Giovinazzi <marco.giovinazzi@comodojo.org>
* @license MIT
*
* LICENSE:
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NO... |
<?php
echo $this->extend('/admin/layouts/main');
echo $this->section('content');
?>
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Data Tamu Main Event</h1>
</div>
<div class="card shadow h-100 ">
<div class="card-body table-responsive">
... |
@extends('layouts.admin')
@section('content')
<div class="card">
<div class="card-header">
{{ trans('global.edit') }} {{ trans('cruds.reportesSgen.title_singular') }}
</div>
<div class="card-body">
<form method="POST" action="{{ route("admin.reportes-sgens.update", [$reportesSgen->id]) }}"... |
<?php
namespace EasygestionBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Compo... |
<?php
namespace Tests\Feature;
use Laravel\Passport\Passport;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\User;
class PagesSinceTimestampTest extends TestCase {
use DatabaseTransactions;
/** @test */
public function get_pages_since_timestamp_in_v1_API()
{
... |
<?php
namespace App\Exceptions;
use Exception;
class FiscalException extends Exception
{
//
} |
@extends('admin.layouts.admin', ['pageTitle' => 'Add blog'])
@section('content')
<center><div id="result"></div></center>
<div class="row">
<div class="col-md-12 d-flex align-items-stretch grid-margin">
<div class="row flex-grow">
<div class="col-12 stretch-card">
<div class="card">
... |
<?php
namespace App\Swagger\Admin\Core;
use OpenApi\Annotations as OA;
use OpenApi\Annotations\Get;
use OpenApi\Annotations\Tag;
use OpenApi\Annotations\Post;
/**
* @Tag(
* name="部门模块",
* description="部门相关"
* )
*/
class DepartmentSwagger
{
/**
* @Get(
* path="/admin/sys/dept/list",
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Adviser extends Model
{
use HasFactory;
protected $guarded=[];
public function user()
{
return $this->belongsTo(User::class);
}
public function sections()... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Pelicula extends Model
{
use HasFactory;
protected$fillable = [
'id',
'nombre',
'ano',
'calificacion_rotten',
'calificacion_IMDB',
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Transformation extends Model
{
protected $fillable = ['user_id', 'name'];
} |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email',... |
<?php
$class = "row";
$bgColor = "#FFFFFF";
$txtColor = "#002A3A";
$imgUrl = "https://www.alburycity.nsw.gov.au/__data/assets/image/0006/173067/buildingplanning_navy.png";
$imgWidth = "90";
$title = "Things to Do this Month in AlburyCity";
$subtitle = "Issue 28";
?>
<?php include "/Users/lauren/Sites/email/sections/he... |
<?php
final class DiffusionRepositoryEditEncodingController
extends DiffusionRepositoryEditController {
protected function processDiffusionRequest(AphrontRequest $request) {
$user = $request->getUser();
$drequest = $this->diffusionRequest;
$repository = $drequest->getRepository();
$repository = i... |
<?php
namespace app\common\model;
/**
* 微信小程序diy页面模型
* Class WxappPage
* @package app\common\model
*/
class WxappPage extends BaseModel
{
protected $name = 'wxapp_page';
/**
* 页面标题栏默认数据
* @return array
*/
public function getDefaultPage()
{
static $defaultPage = [];
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Kategori extends Model
{
protected $table = 'm_kategori';
protected $guarded = [];
public $timestamps = FALSE;
public function departemen()
{
return $this->HasOne('App\Departemen','KODE_DEPARTEMEN','KODE_DEPARTEMEN');
... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "net_domains".
*
* @property int $id
* @property string $name
* @property string $comment
* @property int $tech_id
*/
class NetDomains extends \yii\db\ActiveRecord
{
public static $title='L2 Домены';
/**
* {@inheritdoc}
... |
<?php
/**
* Copyright 2021 UCloud Technology Co., Ltd.
*
* 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 applicab... |
<?php
namespace Auth0\Login;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider;
use Auth0\Login\Contract\Auth0UserRepository;
use Auth0\SDK\Exception\CoreException;
use Auth0\SDK\Exception\InvalidTokenException;
/**
* Service that provides an Auth0\LaravelAuth0\Auth0User stor... |
<?php
namespace App\Providers;
use App\Actions\Fortify\CreateNewUser;
use App\Actions\Fortify\ResetUserPassword;
use App\Actions\Fortify\UpdateUserPassword;
use App\Actions\Fortify\UpdateUserProfileInformation;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLi... |
<?php
namespace Nomina\V1\Rest\Tmroco;
class TmrocoResourceFactory
{
public function __invoke($services)
{
return new TmrocoResource();
}
} |
<?php
ini_set('memory_limit', '2G');
function __autoload($class)
{
if (strpos($class, 'ipip\db') !== FALSE)
{
require_once __DIR__ . '/src/' . $class . '.php';
}
}
// 全球 IPv6 地级市精度离线库(China:每周高级版,每日标准版,每日高级版,每日专业版,每日旗舰版)
$city = new ipip\db\City('c:\work\ipdb\city.ipv6.ipdb');
//var_dump($city->f... |
<?php
// Under MIT License
// Distribute, Modify and Contribute under MIT License.
// Use of Software under MIT License.
?><?php if($js_inc!=true){ ?>
<script src="../js/jquery.js"></script>
<?php }
$scanDtm = date("ymdHis");
?>
<script language="Javascript" type="text/javascript">
//<![CDATA[
var Success;
var Curre... |
<?php
if (true) {
$i += 2;
return foo($i);
/*
$i += 3;
// 1
return foo($i);
*/
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProjetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projets', funct... |
<?php
/**
* GetList.php
* @description : demo列表
* @create date : 2020/3/6
*/
namespace frontend\controllers\mq;
use core\providers\message\services\SendMqService;
use Exception;
use core\actions\WebBaseAction;
use core\extensions\amqp\Publish;
use core\providers\user\entities\UserEntity;
use core\providers\BaseEn... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\models\Cliprocia */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Cliprocias', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="cliprocia-view">
... |
<?php
namespace SAML2;
use RobRichards\XMLSecLibs\XMLSecEnc;
use RobRichards\XMLSecLibs\XMLSecurityKey;
/**
* Class handling encrypted assertions.
*
* @package SimpleSAMLphp
*/
class EncryptedAssertion
{
/**
* The current encrypted assertion.
*
* @var \DOMElement
*/
private $encrypted... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class TestController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
return r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.