Collection nodes are visible only to the author node and users with permission "bypass node access"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\DataTables; | |
use App\Asset; | |
use Yajra\DataTables\Services\DataTable; | |
class AssetsDataTable extends DataTable | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\DataTables; | |
use App\Asset; | |
use Yajra\DataTables\Services\DataTable; | |
class AssetsDataTable extends DataTable | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: '/get/emloyer/viewJob', | |
method: 'GET', | |
data: { | |
'jobid' : jobid, | |
} | |
}).done(function(data){ | |
console.log(data); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html><!-- | |
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: in file /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php on line 251 | |
Stack trace: | |
1. Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException->() /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:251 | |
2. Illuminate\Routing\RouteCollection->methodNotAllowed() /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:238 | |
3. Illuminate\Routing\RouteCollection->getRouteForMethods() /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:176 | |
4. Illuminate\Routing\RouteCollection->match() /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:584 | |
5. Illuminate\Routing\Router->findRoute() /home/vagrant/code/cc-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:563 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\Api; | |
use App\JsonApi\Posts; | |
use App\Post; | |
use CloudCreativity\LaravelJsonApi\Http\Controllers\EloquentController; | |
use CloudCreativity\LaravelJsonApi\Http\Controllers\CreatesResponses; | |
use CloudCreativity\JsonApi\Contracts\Object\ResourceObjectInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chriscalip@raptor:~/projects/codes/lumen-5.5.0$ grep -R getRoutes * | |
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: if (isset($this->router->getRoutes()[$method.$pathInfo])) { | |
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]); | |
vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php: foreach ($this->router->getRoutes() as $route) { | |
vendor/laravel/lumen-framework/src/Routing/Router.php: public function getRoutes() | |
chriscalip@raptor:~/projects/codes/lumen-5.3.0$ grep -R getRoutes * | |
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $route = $app->getRoutes()['GET/test']; | |
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $routes = $app->getRoutes(); | |
vendor/laravel/lumen-framework/tests/FullApplicationTest.php: $routes = $app->getRoutes(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$token = Drupal::token(); | |
$text = 'New [node:content-type] created: [node:title] [current-user:display-name]'; | |
$node = node_load(80044); | |
$user = user_load(2); | |
$token->replace($text, ['node' => $node, 'current-user' => $user]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load services definition file. | |
*/ | |
$settings['container_yamls'][] = __DIR__ . '/services.yml'; | |
/** | |
* Include the Pantheon-specific settings file. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Capacitype Overrides for Pantheon environment configuration file. | |
* | |
* This enforces logic that for all pantheon environments the following gets enforced : | |
* a.) Except for live envinroment, sending mail as logs in devel temp directory. | |
* b.) Search API algolia : assets2algolia & topics2algolia are only enabled on LIVE pantheon envinroments. | |
* c.) Enforce find-it active search index for live environment only. |