Commit 08d6d537 by Francisco Salazar

archivo de configuracion

parent df0921b2
......@@ -33,6 +33,12 @@ php artisan vendor:publish --tag=landing-public
php artisan vendor:publish --tag=public
```
- run command for publish config file
```php
php artisan vendor:publish --tag=config
```
- run serv
```php
......
......@@ -30,6 +30,10 @@ class LandingsServiceProvider extends ServiceProvider
$this->publishes([
__DIR__.'/views/public' => resource_path('views/vendor/onestartup/landings/landing'),], 'landing-public');
$this->publishes([
__DIR__.'/config/landings.php' => config_path('landings.php'),
], 'config');
}
/**
......@@ -41,5 +45,6 @@ class LandingsServiceProvider extends ServiceProvider
{
$this->app->make('Onestartup\Landings\Controller\AdminLandingsController');
$this->app->make('Onestartup\Landings\Controller\LandingsController');
$this->mergeConfigFrom( __DIR__.'/config/landings.php', 'landings');
}
}
\ No newline at end of file
<?php
return [
"slug_landings" => "landings"
];
\ No newline at end of file
......@@ -7,5 +7,5 @@ Route::group(['middleware' => ['web', 'auth', 'is_admin']], function(){
->name('landings.admin.landings.delete_image');
});
Route::group(['middleware' => ['web']], function(){
Route::get(env('SLUG_LANDINGS').'/{slug}', 'Onestartup\Landings\Controller\LandingsController@show')->name('show.landing');
Route::get(config("landings.slug_landings").'/{slug}', 'Onestartup\Landings\Controller\LandingsController@show')->name('show.landing');
});
\ No newline at end of file
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit6545d94f744b0c58d9ec827bfb866599::getLoader();
Copyright (c) Nils Adermann, Jordi Boggiano
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, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Onestartup\\Landings\\' => array($baseDir . '/src'),
);
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit6545d94f744b0c58d9ec827bfb866599
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit6545d94f744b0c58d9ec827bfb866599', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit6545d94f744b0c58d9ec827bfb866599', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit6545d94f744b0c58d9ec827bfb866599::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
$loader->register(true);
return $loader;
}
}
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit6545d94f744b0c58d9ec827bfb866599
{
public static $prefixLengthsPsr4 = array (
'O' =>
array (
'Onestartup\\Landings\\' => 20,
),
);
public static $prefixDirsPsr4 = array (
'Onestartup\\Landings\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),
);
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit6545d94f744b0c58d9ec827bfb866599::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6545d94f744b0c58d9ec827bfb866599::$prefixDirsPsr4;
}, null, ClassLoader::class);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment