/
home
/
techb158
/
immovalet.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Database
mkdir
upload
Name
Size
Mode
Actions
Capsule/
-
0755
rm
Concerns/
-
0755
rm
Connectors/
-
0755
rm
Console/
-
0755
rm
DBAL/
-
0755
rm
Eloquent/
-
0755
rm
Events/
-
0755
rm
Migrations/
-
0755
rm
PDO/
-
0755
rm
Query/
-
0755
rm
Schema/
-
0755
rm
composer.json
1662
0644
edit
dl
rm
ConfigurationUrlParser.php
192
0644
edit
dl
rm
Connection.php
34965
0644
edit
dl
rm
ConnectionInterface.php
3890
0644
edit
dl
rm
ConnectionResolver.php
1913
0644
edit
dl
rm
ConnectionResolverInterface.php
575
0644
edit
dl
rm
DatabaseManager.php
10760
0644
edit
dl
rm
DatabaseServiceProvider.php
3671
0644
edit
dl
rm
DatabaseTransactionRecord.php
1334
0644
edit
dl
rm
DatabaseTransactionsManager.php
2220
0644
edit
dl
rm
DetectsConcurrencyErrors.php
1085
0644
edit
dl
rm
DetectsLostConnections.php
2559
0644
edit
dl
rm
Grammar.php
5305
0644
edit
dl
rm
LazyLoadingViolationException.php
771
0644
edit
dl
rm
LICENSE.md
1075
0644
edit
dl
rm
MigrationServiceProvider.php
6200
0644
edit
dl
rm
MultipleRecordsFoundException.php
134
0644
edit
dl
rm
MySqlConnection.php
2582
0644
edit
dl
rm
PostgresConnection.php
3082
0644
edit
dl
rm
QueryException.php
1631
0644
edit
dl
rm
README.md
2208
0644
edit
dl
rm
RecordsNotFoundException.php
129
0644
edit
dl
rm
Seeder.php
3583
0644
edit
dl
rm
SQLiteConnection.php
3349
0644
edit
dl
rm
SqlServerConnection.php
3646
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Database/Grammar.php
(5305B)
<?php namespace Illuminate\Database; use Illuminate\Database\Query\Expression; use Illuminate\Support\Traits\Macroable; abstract class Grammar { use Macroable; /** * The grammar table prefix. * * @var string */ protected $tablePrefix = ''; /** * Wrap an array of values. * * @param array $values * @return array */ public function wrapArray(array $values) { return array_map([$this, 'wrap'], $values); } /** * Wrap a table in keyword identifiers. * * @param \Illuminate\Database\Query\Expression|string $table * @return string */ public function wrapTable($table) { if (! $this->isExpression($table)) { return $this->wrap($this->tablePrefix.$table, true); } return $this->getValue($table); } /** * Wrap a value in keyword identifiers. * * @param \Illuminate\Database\Query\Expression|string $value * @param bool $prefixAlias * @return string */ public function wrap($value, $prefixAlias = false) { if ($this->isExpression($value)) { return $this->getValue($value); } // If the value being wrapped has a column alias we will need to separate out // the pieces so we can wrap each of the segments of the expression on its // own, and then join these both back together using the "as" connector. if (stripos($value, ' as ') !== false) { return $this->wrapAliasedValue($value, $prefixAlias); } return $this->wrapSegments(explode('.', $value)); } /** * Wrap a value that has an alias. * * @param string $value * @param bool $prefixAlias * @return string */ protected function wrapAliasedValue($value, $prefixAlias = false) { $segments = preg_split('/\s+as\s+/i', $value); // If we are wrapping a table we need to prefix the alias with the table prefix // as well in order to generate proper syntax. If this is a column of course // no prefix is necessary. The condition will be true when from wrapTable. if ($prefixAlias) { $segments[1] = $this->tablePrefix.$segments[1]; } return $this->wrap($segments[0]).' as '.$this->wrapValue($segments[1]); } /** * Wrap the given value segments. * * @param array $segments * @return string */ protected function wrapSegments($segments) { return collect($segments)->map(function ($segment, $key) use ($segments) { return $key == 0 && count($segments) > 1 ? $this->wrapTable($segment) : $this->wrapValue($segment); })->implode('.'); } /** * Wrap a single string in keyword identifiers. * * @param string $value * @return string */ protected function wrapValue($value) { if ($value !== '*') { return '"'.str_replace('"', '""', $value).'"'; } return $value; } /** * Convert an array of column names into a delimited string. * * @param array $columns * @return string */ public function columnize(array $columns) { return implode(', ', array_map([$this, 'wrap'], $columns)); } /** * Create query parameter place-holders for an array. * * @param array $values * @return string */ public function parameterize(array $values) { return implode(', ', array_map([$this, 'parameter'], $values)); } /** * Get the appropriate query parameter place-holder for a value. * * @param mixed $value * @return string */ public function parameter($value) { return $this->isExpression($value) ? $this->getValue($value) : '?'; } /** * Quote the given string literal. * * @param string|array $value * @return string */ public function quoteString($value) { if (is_array($value)) { return implode(', ', array_map([$this, __FUNCTION__], $value)); } return "'$value'"; } /** * Determine if the given value is a raw expression. * * @param mixed $value * @return bool */ public function isExpression($value) { return $value instanceof Expression; } /** * Get the value of a raw expression. * * @param \Illuminate\Database\Query\Expression $expression * @return string */ public function getValue($expression) { return $expression->getValue(); } /** * Get the format for database stored dates. * * @return string */ public function getDateFormat() { return 'Y-m-d H:i:s'; } /** * Get the grammar's table prefix. * * @return string */ public function getTablePrefix() { return $this->tablePrefix; } /** * Set the grammar's table prefix. * * @param string $prefix * @return $this */ public function setTablePrefix($prefix) { $this->tablePrefix = $prefix; return $this; } }
Save
cmd:
run