text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Controllers;
use App\Http\Requests\ContactMeRequest;
use App\Mail\ContactMail;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
class ContactController extends Controller
{
public function showForm()
{
return view('blog.contact');
}
public function s... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cartoonize</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<!-- Boot... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>ProFix - Ремонт те... |
<?php require_once("../../../includes/session.php"); ?>
<?php require_once("../../../includes/db_connection.php"); ?>
<?php require_once("../../../includes/functions.php"); ?>
<?php
access_receptionist_from_subfolders();
if(isset($_POST['view'])){
// if dropdown clicked then change status of unseen messages
... |
@include('adminlte.head')
<body class="sidebar-mini layout-fixed control-sidebar-slide-open {{ $customization['body'] }}" data-url-prefix="" data-page-url="adminlteusergroup">
@include('adminlte.header')
<div class="content-wrapper">
<div class="content-header">
<div class="conta... |
<?php
namespace Phpactor\LanguageServer\Core\Server\Stream;
use Amp\Promise;
use Amp\Socket\Socket;
final class SocketDuplexStream implements DuplexStream
{
/**
* @var Socket
*/
private $socket;
public function __construct(Socket $socket)
{
$this->socket = $socket;
}
/**
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Notification extends Model
{
protected $table='notification';
protected $guarded=[];
} |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get t... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<tsedit></tsedit>
</div>
</div>
@endsection |
<?php
echo"contact"; |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Coordenador */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="coordenador-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'fk_usuario_id')->dropDownList($model->getU... |
@extends('index')
@section('content')
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Salary Report</h1>
</div><!-- /.col -->
... |
<!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/css2?family=Nunito... |
<?php
session_start();
if(isset($_POST) && !empty($_POST) ){
$name=$_POST['name'];
$password=$_POST['password'];
// $password=md5($password);
include(" ../../../../db/MySQLConnect.php");
$query="SELECT TEN_DANG_NHAP,MAT_KHAU,MA_GROUP_QUYEN FROM `taikhoan` WHERE MA_GROUP_QUYEN ... |
<?php
use Illuminate\Database\Seeder;
class CardTypesI18nTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
\DB::table('card_types_i18n')->truncate();
\DB::table('card_types_i18n')->insert(array(
... |
<?php
ob_start();
//include AllClasses
include("../includes/classes/AllClasses.php");
//include header
include(PUBLIC_PATH . "html/header.php");
//wh id
$wh_id = $_SESSION['user_warehouse'];
//title
$title = "Shipment List";
$print = 1;
//echo '<pre>';print_r($_SESSION);exit;
$groupby = '';
//check group by
if ($_GET... |
<!doctype html><html><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,shrink-to-fit=no"/><title>IDN - Experiment</title><script>// enable to override webpacks publicPath
// var webpackPubli... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class AdminCheck
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)... |
<?php
namespace Psalm\Plugin\Hook;
use Psalm\StatementsSource;
interface FunctionExistenceProviderInterface
{
/**
* @return array<string>
*/
public static function getFunctionIds() : array;
/**
* Use this hook for informing whether or not a global function exists. If you know the function ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ScheduleImage extends Model
{
//
protected $fillable = ['tour_schedules_id', 'image'];
public function boo()
{
return 'multimages/schedules/' . $this->image;
}
public function foo() {
return $this->belongsTo('App\TourSchedule'... |
<?php
declare (strict_types=1);
namespace Rector\RectorGenerator\NodeFactory;
use PhpParser\BuilderHelpers;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\ArrayItem;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\PropertyFetch;
use Ph... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserPagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_pages', function (Blueprint $table) {
... |
<?php
session_start();
require 'mysql/config.php';
if (!$_SESSION['member_id']) {
header("Location: index.php");
} else {
$member_id=$_SESSION['member_id'];
$sql="SELECT * FROM member LEFT JOIN prefix ON member.prefix_id=prefix.prefix_id WHERE member.member_id='$member_id'";
$result = $conn->query($sql)... |
<?php
namespace App\Http\Middleware;
use Closure;
class CheckUrl
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if($request->id!=123 && ... |
<?php
namespace HumbugBox3141\Composer\Semver\Constraint;
class Constraint implements ConstraintInterface
{
const OP_EQ = 0;
const OP_LT = 1;
const OP_LE = 2;
const OP_GT = 3;
const OP_GE = 4;
const OP_NE = 5;
/**
@phpstan-var
*/
private static $transOpStr = array('=' => self::... |
<?php
namespace App\Http\Controllers\Api\Transformer\Zds;
use App\Model\Zds\Member;
use League\Fractal\TransformerAbstract;
class MemberTransformer extends TransformerAbstract
{
public function transform(Member $member)
{
return [
'nick_name' => $member->nick_name,
'avatar' ... |
@extends('layouts.index')
@section('main')
<form class="text-center border border-light p-5" action="{{ url('employees', ['id'=>$employee->id]) }}" method="POST" enctype="multipart/form-data" >
{{ csrf_field() }}
<p class="h4 mb-4">Edit Employee</p>
<!-- Name -->
<input type="text" na... |
<?php
namespace Pooot\Personnummer\Test;
use Pooot\Personnummer\Personnummer;
class PersonnummerTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
*/
public function control_digit()
{
$this->assertTrue(Personnummer::validate(6403273813));
$this->assertTrue(Personnummer::val... |
<?php
function test() {
return "Hello World";
}
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
$server->addfunction("test");
$envelope = <<<EOF
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="ht... |
<?php
/**
* 版权声明 : 地老天荒科技有限公司
* 文件名称 : InfoController.php
* 创 建 者 : Shi Guang Yu
* 创建日期 : 2018/07/12 10:13
* 文件描述 : 个人信息控制器
* 历史记录 : -----------------------
*/
namespace app\persional_module\working_version\v1\controller;
use think\Controller;
class InfoController extends Controller
{
} |
@extends('layout.app')
@section('scripts')
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var marcadores = [
['Garrido Abad', 4.615043,-74.14143]
];
... |
<?php
declare(strict_types=1);
namespace App\Company\Domain\User;
use App\Common\Domain\Bus\DomainEvent\DomainEvent;
class UserCreated extends DomainEvent
{
public function __construct(public User $user) {}
} |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class ConractFormMail extends Mailable
{
use Queueable, SerializesModels;
public $data;
/**
* Create a new message instance.
... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
$this->app->singleton('mailer', function($app) {
... |
<?php
namespace Delivery\Repositories;
use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use Delivery\Repositories\CupomRepository;
use Delivery\Models\Cupom;
/**
* Class CumpomRepositoryEloquent
* @package namespace Delivery\Repositories;
*/
class CupomRepositoryElo... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/var/www/html/grav/grav-admin/user/config/security.yaml',
'modified' => 1497407011,
'data' => [
'salt' => '2acgHT5pfQVlyD'
]
]; |
<a href="/">
<svg class="w-16 h-16" viewbox="0 0 48 48" fill="none" xmlns="https://www.w3.org/2000/svg">
<path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/>
<path d="M14.134 45.885A23.914 2... |
<?php
namespace App\Http\Services;
class BaseService{
/*
*新增记录
*/
public static function addBasic($params){
$dao = self::getDao();
return $dao::addBasic($params);
}
/*
*修改记录
*/
public static function modifyBasic($params){
$dao = self::getDao();
r... |
<?php
namespace ER\UserBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/**
* This is the class that loads and manages yo... |
<?php
namespace frontend\controllers;
use Yii;
use yii\web\Controller;
/**
* Default controller for the `backend` module
*/
class DefaultController extends Controller
{
/**
* @inheritdoc
*/
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
];
}
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
<?php
include_once('./_common.php');
define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if(defined('G5_THEME_PATH')) {
require_once(G5_THEME_PATH.'/index.php');
return;
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/index.php');
return;
}
include_once(G5_PATH.'/head.php'... |
<!DOCTYPE html>
<html lang="en" class="loading">
<head>
<?php $this->load->view('admin/include/head');?>
</head>
<body data-col="2-columns" class=" 2-columns ">
<!-- ////////////////////////////////////////////////////////////////////////////-->
<div class="wrapper">
<!-- main menu-->
<!-... |
<?php
namespace App\Http\Controllers\Seller;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\MenuService;
class MenuController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<?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-... |
<?php
declare(strict_types=1);
namespace EonX\EasySecurity\Tests;
use EonX\EasySecurity\Permission;
final class PermissionTest extends AbstractTestCase
{
public function testPermission(): void
{
$permission = new Permission('perm');
self::assertEquals('perm', $permission->getIdentifier());
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddCloumnImageToStudentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('stude... |
<?php
$translation = $service->translateOrOrigin(app()->getLocale());
$lang_local = app()->getLocale();
?>
<div class="b-panel-title">{{__('Space information')}}</div>
<div class="b-table-wrap">
<table class="b-table" cellspacing="0" cellpadding="0">
<tr>
<td class="label">{{__('Booking Number')... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title') - {{ config('app.name', ... |
<?php
/**
* GetWarsWarIdAlly
*
* PHP version 5
*
* @category Class
* @package App\EveApi\Esi
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* EVE Swagger Interface
*
* An OpenAPI for EVE Online
*
* OpenAPI spec version: 0.8.3
*
* Generated by: https... |
<?php
return [
'index_title' => 'Mailsetup',
'index_desc' => 'To set up a mail client it’s necessary to configure an SMTP server that will take care of the delivery of your emails.',
'from' => [
'mail_host' => 'Mail Host' ,
'mail_driver' => 'Mail Driver' ,
'mail_port' =>... |
<?php
/**
* 模板
*
* @package Comm
* @author chengxuan <i@chengxuan.li>
*/
namespace Comm;
class View implements \Yaf_View_Interface {
/**
* 模板目录
*
* @var string
*/
protected $_template_dir = '';
/**
* 模板变量
*
* @var array
*/
protected $_vars = array();
... |
<?php
namespace Ghastly\Plugin;
use Ghastly\Config\Config;
use Symfony\Component\EventDispatcher\EventDispatcher;
/**
* The plugin manager keeps track of the enabled Ghastly
* plugins
*/
class PluginManager {
/**
* The directory where the plugin directories are stored
* @var string
*/
priva... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\HomePageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Home Pages';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="home-page-index">
<div class="... |
<?php
/**
* @author Tim Kelty
* @copyright Copyright (c) 2016 Tim Kelty
* @link http://fusionary.com/
* @package ElementOptions
* @since 1.0.0
*/
namespace Craft;
class ElementOptions_UserOptionsFieldType extends ElementOptions_BaseOptionsFieldType
{
// Properties
// ============================... |
<?php
namespace LdapRecord\Models\Concerns;
use Closure;
use InvalidArgumentException;
use LdapRecord\Models\Scope;
trait HasGlobalScopes
{
/**
* Register a new global scope on the model.
*
* @param Scope|Closure|string $scope
* @param Closure|null $implementation
*
* @retur... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class CalendarDateSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\DB::table('calendar_dates')->delete();
\DB::table('calendar_dates')->insert(a... |
@extends('painel.templates.template')
@section('content')
<section class="destaques">
<div class="container">
<h3 class="text-center mg-40">Listagem de Produtos</h3>
<div class="col-lg-8 col-md-8 col-sm-6 col-xs-12">
<form class="navbar-form navbar-left" role="search" method="post" acti... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
<div class="row">
<div class="col-xs-10 col-md-8... |
<?php
/**
* This file is part of Totara Learn
*
* Copyright (C) 2020 onwards Totara Learning Solutions LTD
*
* 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 3 of the Licens... |
<?php
namespace Guzzle\Service\Command;
/**
* Parses the HTTP response of a command and sets the appropriate result on a command object
*/
interface ResponseParserInterface
{
/**
* Parse the HTTP response received by the command and update the command's result contents
*
* @param Comm... |
<!DOCTYPE html>
<html lang="">
<head>
@include ('app.meta')
<link rel="stylesheet" href="{{ asset('css/admin.css') }}">
<title>Şypahana Üýtget</title>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
@include('app.admin.navbar')
@include('app.admin... |
<?php
namespace Shakyamouni\AdminBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class CalendarType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options... |
@extends('layouts.site')
@section('title', '58 سونيت')
@section('content')
<!-- ======= Sonnets Section ======= -->
<div id="Sonnets" class="paddsection">
<div class="container">
<div class="section-title text-center">
<h2> سونيت 58 </h2>
</div>
</div>
<div class... |
<?php $this->load->view('inc/common_header') ?>
<body>
<?php $this->load->view("inc/header_nav");?>
<div class="container">
<div class="page-header">
<h1>Manage Emails</h1>
</div>
<div id="myDIV" style="display: block;">
<form name="save_seller_form" id="save_seller_form" metho... |
<?php
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Model;
class roles_admin extends Model
{
//
} |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class PayementType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBooksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('books', function ... |
<?php
namespace Tests\Unit;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Spatie\Permission\Models\Role;
use Tests\TestCase;
use App\Models\Menulist;
use App\Models\User;
class MenuTest extends TestCase
{
... |
<?php
include 'conexion.php';
$date = date('Y-m-d');
$rowCount = count($_POST["users"]);
for($i=0;$i<$rowCount;$i++) {
mysql_query("UPDATE customers SET condicion_general=2,fecha_entrega = '$date',porque = NULL , motivo = NULL
WHERE destino IN ('MULTICENTRO')
AND DATE_FORMAT(fecha_entrada,'%Y/%m/%d') <> DATE_FORM... |
@extends('layouts.app')
@section('content')
<div class="row">
<div class="col-lg-12">
@if($errors->any())
<div class="alert alert-danger">
@foreach($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach()
... |
<link href="<?php echo HOME_URL; ?>includes/ecss/getsvgimage.css" media="all" rel="stylesheet" type="text/css" />
<div id ="form_header">
<div id="tabsHeader">
<form action="" method="post" id="user_header" name="user_header"><span class="heading">User Dashboard
<a href="<?php echo HOME_URL ?>form.php?class_nam... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<meta name="csrf-token" content="{{... |
<?php
//
// Description
// -----------
// This function returns the products purchases by a customer.
//
// Arguments
// ---------
// ciniki:
// tnid: The ID of the current tenant.
// args: customer_id
//
// Returns
// ---------
//
function ciniki_customers_hooks_membershipDetails(&$ciniki, $... |
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\helpers\Url;
$this->title = 'My Task Tracker';
?>
<h1 style="text-align:center;">Task list</h1>
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">#</th>
<?php
$fields = ['Name', '... |
<?php
namespace CrowdinApiClient\Tests\Model;
use CrowdinApiClient\Model\TranslationMemory;
use PHPUnit\Framework\TestCase;
/**
* Class TranslationMemoryTest
* @package CrowdinApiClient\Tests\Model
*/
class TranslationMemoryTest extends TestCase
{
public $translationMemory;
public $data = [
'id' ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Producer extends Model {
protected $guarded = [];
public $primaryKey = 'producer_id';
public $timestamps = false;
protected $fillable = ['producer', 'producer_photo'];
public function items() {
return $this->belongsTo(Item::class, 'producer_i... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Preview\Sync\Service\SyncList;
use Twilio\ListResource;
use Twilio\Options;
use Twilio\Page;
use Twilio\Serialize;
use Twilio\Stream;
use Twilio\Values;
use Twilio\Version;
/**
*... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PropertyType extends Model
{
public function ad()
{
return $this->belongsToMany(Ad::class,'ad_property_type','property_type_id');
}
} |
<!doctype html>
<html class="fixed">
<head>
<?php $this->load->view('common/header_link'); ?>
<link rel="stylesheet" href="<?php echo base_url(); ?>/catalogs/assets/modal/modal.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>/catalogs/assets/modal/notifications/Lobibox.min.css">
<link rel="styleshee... |
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label no-padding-right"><?php label('code'); ?></label>
<div class="col-xs-12 col-sm-4">
<input type="text" class="form-control input-sm" value="<?php echo $ds->code; ?>" disabled/>
</div>
</div>
<div class... |
<?php
namespace Phalcon;
/**
* Phalcon\Acl
* This component allows to manage ACL lists. An access control list (ACL) is a list
* of permissions attached to an object. An ACL specifies which users or system processes
* are granted access to objects, as well as what operations are allowed on given objects.
* <code... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
@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">{{ __('Connexion') }}</div>
<div class="card-body">
<form method="... |
<?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\Integration\Forms\Element\Hidden;
... |
<?php
?>
<!-- Footer -->
<footer class="text-center text-lg-start bg-light text-muted">
<!-- Section: Social media -->
<section
class="d-flex justify-content-center justify-content-lg-between p-4 border-bottom"
>
<!-- Left -->
<div class="me-5 d-none d-lg-block">
<span>Ge... |
<?php
namespace FitHabit\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Broadcast;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::rout... |
@extends('layouts.admin.layout')
@section('content-admin')
<div class="container-fluid">
<a href="{{ url()->previous() }}" class="btn btn-primary">Back to previous page</a>
</div>
<div class="container">
@if ($errors->any())
<div class="alert alert-danger">
<ul>... |
<?php
namespace Concrete\Core\Entity\Express\Control;
use Concrete\Core\Entity\Attribute\Key\Key;
use Concrete\Core\Entity\Express\Entity;
use Concrete\Core\Entity\Express\Entry;
use Concrete\Core\Express\Form\Context\ContextInterface;
use Concrete\Core\Express\Form\Control\Renderer\AttributeKeyControlRenderer;
use Co... |
<?php
namespace VanguardLTE\Games\GoldenPlanet
{
include('CheckReels.php');
class Server
{
public function get($request, $game)
{ /*
if( config('LicenseDK.APL_INCLUDE_KEY_CONFIG') != 'wi9qydosuimsnls5zoe5q298evkhim0ughx1w16qybs2fhlcpn' )
{
return fal... |
@extends('adminlte::page')
@section('title', 'User Management')
@section('content_header')
<h1>User Management</h1>
@stop
@section('content')
@include('partials.error')
<div class="row">
<div class="col-md-6">
<div class="page-actions">
<a href="{{url('/users/crea... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65Voh... |
@extends('layout')
@section('main')
<div class="col-md-8">
@include('error')
<form method="POST" action="{{route('login')}}">
@csrf
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" n... |
<?php
namespace CentralCondo\Listeners\Portal\Communication\Communication;
use CentralCondo\Events\Portal\Communication\Communication\SendMailCommunication;
use CentralCondo\Repositories\Portal\Communication\Communication\UserCommunicationRepository;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\In... |
<?php
namespace Reshadman\FileSecretary\Application;
use Reshadman\FileSecretary\Infrastructure\FileSecretaryManager;
use Reshadman\FileSecretary\Infrastructure\UrlGenerator;
class AddressableRemoteFile
{
private $context;
private $relative;
public function __construct($contextData, $relative)
{
... |
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Models;
use Illuminate\Database\Eloqu... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CartOrder extends Model
{
use HasFactory;
// protected $casts = ["order" => "array"];
public function getOrderAttribute($value) {
return json_decode($value);
}
} |
<div class="table">
<table class="table table-striped">
<thead class="thead table-header-group"></thead>
<tr>
<th scope="col">CNE</th>
<th scope="col">First Name</th>
<th scope="col">Second Name</th>
<th scope="col">Age</th>
<th scope="col"... |
--TEST--
Phar::convertToZip|Tar|Phar() repeated (phar_based archives)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar';
$pname = 'phar://' . $fname;
$fname2 = __DIR__ . '/' . basename... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.