text
stringlengths
2
1.03M
<?php namespace Imobiliare\Imobile\Form; class Dezvoltatori extends \Processing\Form\Form { /** * @return Dezvoltatori, obiect cu toate textbox-urile, cu blade-ul formularului, modelul, buttons (adauga, salveaza, sterge) */ public static function make() { // apelez constructorul din Form /* ...
<?php Route::group(['middleware' => ['role:superadmin']], function(){ Route::get('/admin/kecamatan', 'KecamatanController@index')->name('kecamatan.index'); Route::get('/admin/kecamatan/{id}/detail', 'KecamatanController@show'); Route::post('/admin/kecamatan','KecamatanController@store')->name('kecamatan.sto...
<?php session_start(); unset($_SESSION['email']); echo $twig->render('register.html',[] ); ?>
<?php /* @var $this UsersController */ /* @var $dataProvider CActiveDataProvider */ $this->breadcrumbs=array( Yii::t('database','Users'), ); $this->menu=array( array('label'=>Yii::t('actions','Create')." ". Yii::t('database','Users'), 'url'=>array('create')), array('label'=>Yii::t('actions','Manage')." ". Yii::...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Profile extends Model { protected $guarded = []; public function profileImage() { $imagePath = ($this->image) ? $this->image : 'profile/fk35XKtzKDa4MGiy2bGOXCNQVB6wEWNOOiuvMVgU.png'; return '/storage/' . $imagePath; ...
<?php /** * Dutchento Vatfallback * Provides free VAT fallback mechanism * Copyright (C) 2018 Dutchento * * MIT license applies to this software */ namespace Dutchento\Vatfallback\Test\Unit\Service\Validate; use Dutchento\Vatfallback\Model\VatNumber\ConfigInterface; use Dutchento\Vatfallback\Service\Configurati...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateJawabanTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('jawaban', funct...
<?php declare(strict_types=1); namespace Pggns\MidocoApi\Mis\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for DeleteSftpCredentialRequest StructType * @subpackage Structs */ class DeleteSftpCredentialRequest extends AbstractStructBase { /** ...
<?php $link = $this->uri->segment(3); $posisi=strpos($link,"%5E"); if($posisi > 0){ $t = explode("%5E",$link); $cabang = (int)$t[0]; $month = (int)$t[1]; $year = (int)$t[2]; $tanggal = (int)$t[3]; $status = (int)$t[4]; $desc = $t[5]; $desc = str_replace("%20"," ",$desc); $id_supplier = $t[6]; } else { $caban...
<?php namespace App\Controllers; class Remains extends BaseController{ function index(){ $ak= new \App\Models\ApiKey(); $this->data["api_key"] = ($ak->get_by_user($this->data["user"]->id)?$ak->get_by_user($this->data["user"]->id)->key:""); if( !$this->data["api_key"] ){ $ak...
<?php // Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // 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://w...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond t...
<?php /** * Created by IntelliJ IDEA. * User: pisaris * Date: 12/1/2017 * Time: 4:39 μμ */ namespace App\StorageLayer; use App\Models\ResourceCategory; class ResourceCategoryStorage { public function getResourceCategoryByPath($name) { return ResourceCategory::where('path', $name)->first(); } ...
<?php namespace Oro\Bundle\TestFrameworkBundle\Test; use Symfony\Bundle\FrameworkBundle\Client as BaseClient; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\TerminableInterface; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Driver\PDOConnection; class Client extends BaseClient { ...
<h2 class="tvd-card-title"> <?php echo $this->getTitle() ?> <a href="//fast.wistia.net/embed/iframe/7azaizklnb?popover=true" class="wistia-popover[height=450,playerColor=2bb914,width=800]"><span class="tvd-icon-play"></span></a> </h2> <div class="tvd-row"> <form class="tvd-col tvd-s12"> <input type="hidden" name="...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class StoreDonation extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return tru...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Spatie\MediaLibrary\HasMedia; use Spatie\MediaLibrary\InteractsWithMedia; use Spatie\MediaLibrary\MediaCollections\Models\Media; use \DateTimeInt...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateGatewayTransactionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('gat...
@extends('layouts.admin.app') @section('content') <section class="main-section"> <div class="container"> <div class="row justify-content-center"> <div class="col-md-8 mt-5"> <div class="card card-common mb-3 mt-5"> <div class="card-header"> <span class="topic-heading">Import Te...
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class UserController extends Controller { //user collections public function index(){ return User::all(); } //User registration public function register(Request $re...
<?php declare(strict_types=1); /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Test\Unit\Annotations\Adapter\Apcu; us...
<?php namespace App\Imports; use Illuminate\Support\Collection; use Maatwebsite\Excel\Concerns\ToCollection; class Products implements ToCollection { /** * @param Collection $collection */ public function collection(Collection $collection) { // } }
<?php namespace Phpactor\DocblockParser\Ast\Tag; use Phpactor\DocblockParser\Ast\TagNode; use Phpactor\DocblockParser\Ast\Token; use Phpactor\DocblockParser\Ast\TypeNode; class PropertyTag extends TagNode { protected const CHILD_NAMES = [ 'tag', 'type', 'name', ]; /** * @var...
<div class="content-wrapper "> <section class="content-header"> <h3> RFQ Purchase </h3> </section> <!-- Main content --> <section class="content" > <div class="row"> <div class="col-xs-12"> <div class="box"> <!-- /.box-header --> <div class="box-header"> <h3 c...
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n...
<?php /** * User: Andy * Date: 07/12/2013 * Time: 12:52 */ namespace AV\Validation\Tests\Fixtures; use AV\Validation\Rules\Rule; class FailureRule extends Rule { public function assert($param) { $this->error = "FailureRule default error on {param_name}"; return false; } }
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Laravel\Lumen\Console\Kernel as ConsoleKernel; use Laravelista\LumenVendorPublish\VendorPublishCommand; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ ...
<?php // @formatter:off /** * A helper file for Laravel 5, to provide autocomplete information to your IDE * Generated for Laravel 5.8.35 on 2019-09-20 13:54:36. * * This file should not be included in your code, only analyzed by your IDE! * * @author Barry vd. Heuvel <barryvdh@gmail.com> * @see https://github....
<script type="text/javascript"> $(document).ready(function () { $('#sidebarCollapse').on('click', function () { $('#sidebar').toggleClass('active'); $(this).toggleClass('active'); }); var deleteModal = document.getElementById('delete-modal') del...
<?php namespace XF\Permission; use XF\Mvc\Entity\Entity; abstract class TreeContentPermissions extends AbstractContentPermissions { /** * @var \XF\Tree */ protected $tree; abstract public function getContentTree(); abstract public function getContentTitle(Entity $entity); abstract protected function getF...
<div x-cloak x-data="{ isOpen: false }" x-show="isOpen" @keydown.escape.window="isOpen = false" {{-- @custom-show-edit-modal.window=" isOpen = true $nextTick(() => $refs.title.focus()) " --}} x-init=" Livewire.on('commentWasUpdated', () => { isOpen = false...
<?php include dirname(__FILE__) . '/elements/email.php'; ?>
<?php namespace Jaxon\CI; use Jaxon\Utils\View\Store; use Jaxon\Contracts\View as ViewContract; class View implements ViewContract { /** * Add a namespace to this view renderer * * @param string $sNamespace The namespace name * @param string $sDirectory The names...
<?php namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\AjaxController; use yii\filters\VerbFilter; use app\models\LoginForm; use app\models\ContactForm; use app\models\WA_REGION; use app\models\WA_PROVINCE; use app\models\WA_AMPHOE; class CommonController extends AjaxController { ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAltersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('alters', functio...
<?php namespace Lwwcas\LaravelCountries\Database\Seeders\Countries; use Illuminate\Database\Seeder; use Lwwcas\LaravelCountries\Database\Seeders\Builder; class GS_SouthGeorgiaandtheSouthSandwichIslands extends Seeder { /** * Attribute that defines the language of countries * * @var string ...
<?php /** * @package Gadgets * @license http://opensource.org/licenses/MIT */ declare(strict_types=1); namespace DecodeLabs\Gadgets\Constraint; interface Requirable { public function isRequired(): bool; /** * @return $this */ public function setRequired(bool $required): Requirable; }
@extends('layouts.backend.main') @section('title', 'List Video') @section('content') <div class="content-wrapper" style="background-color: #fff"> <div class="page-header page-header-default"> <div class="page-header-content"> <div class="page-title"> <h4><i class="icon-arrow-left52 position-left"></i> <spa...
<?php namespace App\Services\Helper; class Composition { private $result; public function __construct($initial = []) { $this->result = \collect($initial); } public function withPrice(?array $price): self { if (!$price) { return $this; } $this->res...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Admin extends CI_Controller { function __construct() { parent::__construct(); error_reporting(0); if ($this->session->userdata('admin_username')) { } else { $this->session->set_flashdata('msg', 'Please Login First'); $this->s...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductUnitsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create(...
<?php $this->load->view('cabeseras/encabezado'); ?> </head> <body> <?php $this->load->view('menus/menu_superior'); ?> <div class="row-odd color_fondo" id="divprincipal"> <div class="col-sm-11 color_fondo"> <ul class="breadcrumb color_fondo"> <li> <a...
<?php namespace App\Http\Controllers\Frontend; use App\Http\Controllers\Controller; use App\Http\Requests\SearchRequest; use App\Models\Clip; use App\Services\ElasticsearchService; use Illuminate\View\View; class SearchController extends Controller { /** * Main and basic search using ORM * * @par...
<?php namespace api\modules\v1\models; use yii\db\ActiveRecord; class Image extends ActiveRecord { public function rules() { return [ ['pet_id', 'integer'], ['path', 'string', 'max' => 200] ]; } public static function tableName() { return '{{%imag...
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <div class="widget-content nopadding"> <img src="{{ public_path('images/logoprime.jpg') }}" alt="" style="position:absolute;top: -15px;left:-35px;" width="250px;"> <h4 style...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Indikator */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="indikator-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'nm_indikator')->textInput(['maxlength' => true...
<?php namespace Google\AdsApi\AdWords\v201809\rm; /** * This file was generated from WSDL. DO NOT EDIT. */ class MutateMembersErrorReason { const UNKNOWN = 'UNKNOWN'; const UNSUPPORTED_METHOD = 'UNSUPPORTED_METHOD'; const INVALID_USER_LIST_ID = 'INVALID_USER_LIST_ID'; const INVALID_USER_LIST_TYPE =...
<?php use Illuminate\Database\Seeder; class TransferTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('transfers')->insert([[ 'description' => 'Salary', 'amount' => '4800', 'wallet_id' => 1, 'created_at'...
@extends('backend.layouts.main') @section('title','Danh mục') @section('content') @if(session('mess')) <div class="alert alert-info"> {{ session('mess') }} </div> @endif <h3>Sửa danh mục</h3> @if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->al...
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Test\Unit\Helper\Str; use Phalcon\Hel...
@if ($paginator->hasPages()) <nav> <ul class="flex justify-between p-4 mx-auto w-64"> {{-- Previous Page Link --}} @if ($paginator->onFirstPage()) <li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.previous')"> <span ...
<?php class Demo extends CI_Controller { public function index() { $this->load->view('demo'); } public function performers() { $this->load->model('Performer'); $start = isset($_GET['start']) && !empty($_GET['start']) ? (int)$_GET['start'] : 0; $length = isset($_GET['length']) && !empty($...
<?php view::layout('layout')?> <?php $item['thumb_origin'] = onedrive::thumbnail($item['path']); $item['thumb'] = str_ireplace($item['source_website'],$item['cdn_website'],$item['thumb_origin']); ?> <?php view::begin('content');?> <div class="mdui-container-fluid"> <br> <div id="mse"></div> <br> <!-- 固定标签 --> <div...
<?hh // partial /* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ use function Facebook\FBExpect\expect; class :test:contexts extends :x:element { protec...
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\UserModel; use App\Models\PreferenceModel; use App\Models\GenreModel; use App\Models\UserRightModel; use App\ApiConnector\LoginApiHandler; use App\ApiConnector\GenreApiHandler; class LoginController...
<?php /** * An HTTP 1.0 request */ class Facade_Http_Request implements Facade_Request { const METHOD_PUT='PUT'; const METHOD_GET='GET'; const METHOD_POST='POST'; const METHOD_HEAD='HEAD'; const METHOD_DELETE='DELETE'; private $_headers; private $_socket; private $_method; private $_path; private $_stream...
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy;...
/** * Copy the data of the objects satisfying the query into <?php echo $archiveTablePhpName ?> archive objects. * The archived objects are then saved. * If any of the objects has already been archived, the archived object * is updated and not duplicated. * Warning: This termination methods issues 2n+1 queries. *...
<?php namespace api\models\V1; use Yii; /** * This is the model class for table "{{%ground_push_stock}}". * * @property integer $id * @property integer $ground_push_point_id * @property string $product_code * @property integer $qty * @property integer $tmp_qty * @property string $last_time */ class GroundPu...
<?php /* <body><pre> ------------------------------------------------------------------------------------------- CKEditor - Posted Data We are sorry, but your Web server does not support the PHP language used in this script. Please note that CKEditor can be used with any other server-side language than just PH...
<?php namespace onebone\economyapi\command; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\utils\TextFormat; use pocketmine\player\Player; use onebone\economyapi\EconomyAPI; class SetMoneyCommand extends Command{ private $plugin; public function __construct(EconomyAPI $plugi...
<?php /** * Copyright © 2017-2018 Maks Rafalko * * License: https://opensource.org/licenses/BSD-3-Clause New BSD License */ declare(strict_types=1); namespace Infection\Mutator; use PhpParser\Node; abstract class Mutator { abstract public function mutate(Node $node); abstract public function shouldMuta...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class TipogradoStoreRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** *...
<div class="container" style="padding: 0px; margin: 0px;"> <div class="row" style="padding: 0px; margin: 0px;"> <div class="col-sm-12 col-md-3" style="text-align: -webkit-center; margin: 0px; padding: 0px;"> <div class="cases wow slideInDown" href="" style="cursor: pointer; text-deco...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Reportes</title> <!-- bootstrap v4 css --> <link rel="stylesheet" type="text/css" href="{{asset('css/...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProveedorsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('proveedors',...
<?php namespace App\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\HtmlString; use Illuminate\Support\ServiceProvider; /** * Class BladeServiceProvider. */ class BladeServiceProvider extends ServiceProvider { /** * Register bindings in the container. */ public function bo...
@extends('adminlte::page') @section('plugins.Datatables', true) @section('content') <div class="row"> <div class="col-12"> @if (session('message')) <div class="alert alert-success alert-dismissible"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&ti...
<?php namespace App\Http\Controllers; use DB; use App\User; use App\Alert; use App\Event; use App\Audit; use App\Device; use App\District; use App\Question; use App\Consumption; use App\Audit_result; use Illuminate\Http\Request; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use Php...
<?php @session_start(); ?> <?php if(!isset($_SESSION["user_id"]) || $_SESSION["user_id"] == "") { header("Location: login.php"); exit(); }?>
<?php require_once __DIR__.'/../vendor/autoload.php'; (new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables( dirname(__DIR__) ))->bootstrap(); date_default_timezone_set(env('APP_TIMEZONE', 'UTC')); /* |-------------------------------------------------------------------------- | Create The Application |---------...
<?php namespace Database\Seeders; use App\Models\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { User::create([ 'name' => 'admin',...
<?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 $URL * @property string $Encoding * @property ...
<?php namespace core\forms\manager\OnlineTest\Test; use core\forms\CompositeForm; use core\entities\OnlineTest\Test\Translation; use core\forms\manager\MetaForm; /** * @property \core\forms\manager\MetaForm $meta; */ class TranslationsForm extends CompositeForm { public $language; public $title; public...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * * @author Infocorp Consultoria * @developer Henrique Oliveira Marques * @package Modules\Schools\Controllers * */ class Admin extends Admin_Controller { /** $this->input->is_ajax_request() ? $this->template->set_layout(FALSE) : ''; * ...
<?php namespace Gizmo; abstract class ModelFactory { protected $gizmo = null, $store = array(); public function __construct(Gizmo $gizmo) { $this->gizmo = $gizmo; } public function get($path) { if (0 === strpos($path, $this->gizmo['content_path'])) { ...
<?php namespace App; use App\Models\Comensal; use App\Helper\DataViewer; use App\Helper\Foto; use App\Helper\Search; use App\Helper\Tabla; use App\Http\Controllers\Auth\Filtros; use Bican\Roles\Traits\HasRoleAndPermission; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends \App\Models\User { ...
<?php namespace Database\Seeders; use App\Models\Product; use Illuminate\Database\Seeder; class ProductsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Product::factory() ->times(100) ->create(); } ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Pedido; use App\Models\Produto; use App\Models\PedidoProduto; class PedidoProdutoController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public funct...
<?php namespace Concrete\Controller\SinglePage\Dashboard\Reports; use Concrete\Core\Page\Controller\DashboardPageController; use Concrete\Core\Page\Statistics as PageStatistics; use Loader; use File; use User; use Concrete\Core\User\Statistics as UserStatistics; class Statistics extends DashboardPageController { ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; use App\Subcategory; class SubcategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $subcategories...
<!--Body --> <div class="container-fluid pt-4 pb-4"> <div class="container pt-4 pb-4"> <h1>Account details</h1> <div class="row"> </div> <hr> <div class="row"> <div class="col-md-3"> <div class="text-center profile-img"> <form id="profile_pic_form"> <?php if(@$user_details...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Registered; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Validation\Rules; c...
<?php namespace app\models; use Yii; use yii\web\UploadedFile; /** * This is the model class for table "{{%tb_mt_banding}}". * * @property int $id_banding * @property string $tgl_banding * @property int $id_pegawai * @property int $id_atasan * @property int $id_absen * @proper...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class City extends Model { protected $table='cities'; protected $fillable =['city_name','desc','country_id' ]; public function countries() { return $this->belongsTo(country::class); } public function servic_point() { ...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call([ PapersTableDataSeeder::class, ]); } }
<?php declare(strict_types=1); /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Claims; use Tymon\JWTAuth\Options; use Tymon\JWT...
@extends('layouts.master') @section('title') <title>Create New Role</title> @endsection @section('css') <style type="text/css"> .tab-pane { height: 150px; overflow-y: scroll; } </style> @endsection @section('content') <div class="content-wrapper"> <!-- Content Header (Page header) --> ...
<?php namespace App\Http\Controllers\API; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Cache; use App\Models\Product; use App\Models\Translate_job; use App\Models\Translate_in; use App\Models\Translate_approve; use App\User; use ...
<?php namespace TemplesOfCode\NodesAndEdges\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputArgument; use TemplesO...
<!-- ================== BEGIN BASE JS ================== --> <script src="/assets/js/app.min.js"></script> <script src="/assets/js/theme/default.min.js"></script> <!-- ================== END BASE JS ================== --> @include('sweetalert::alert') @stack('scripts')
<body id="page-top"> <!-- Page Wrapper --> <div id="wrapper"> <!-- Sidebar --> <ul class="navbar-nav bg-gradient-success sidebar sidebar-dark accordion" id="accordionSidebar"> <!-- Sidebar - Brand --> <a class="sidebar-brand d-flex align-items-center justify-content-ce...
<?php namespace tx\extend; use think\Db; class AdminAuthExtend { public $_config = array( 'auth_group' => 'auth_group', 'admin_group_access' => 'auth_group_access', 'auth_rule' => 'auth_rule', 'auth_user' => 'admin' ); public function __construct() { $prefix =...
<?php declare(strict_types=1); namespace Pggns\MidocoApi\Orderlists\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for GetCateringCodesRequest StructType * @subpackage Structs */ class GetCateringCodesRequest extends AbstractStructBase { /** ...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Excel extends CI_Controller { /** * @desc : load list modal and helpers */ function __Construct(){ parent::__Construct(); //$this->load->model('mExcel'); $this->load->helper(array('form', 'url')); ...
<?php namespace App\Tool; class MyDownload { /** * 下载文件 * * @param string $file_name 文件名称,注意必须是文件全路径 * @param string $basename 文件显示的名称 * @return void */ public static function download($file_name, $basename = null) { //首先判断文件是否存在 if(!file_exists($file_name)) ...
@include('appkit.partials.head') <div class="container"> <br><br><br><br><br><br><br> <div class="card"> <div class="card-header text-center"> <h2> How would you like to build your app ? <h2> </div> <div class="card-body"> <div class="row"> <div class="...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Warehouse extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'warehouse_id', 'address', 'contact_name', 'contact_phone', ...
@extends('layouts.full-width') @section('content') <div class="page-header"> <h1 class="overview-heading">{{ trans('blog-admin.header-add') }}</h1> </div> <div class="page__content"> {!! Form::open(['route' => 'admin.blog-new', 'method' => 'POST']) !!} @include('blog.admin.partia...
<?php include 'header.php'; if (isset($_SESSION['username'])) { $sessao = $_SESSION['username']; $pp_checkout_btn = ''; $product_id_array = ''; $sql_carrinho = "SELECT * FROM carrinho INNER JOIN users ON carrinho.user_id=users.id WHERE carrinho.user_id = (SELECT id FROM users WHERE username='$sessao')"; $sql...