Skip to content

Commit 283291c

Browse files
author
sankhadeep
committed
url bug fix
1 parent 3586d93 commit 283291c

File tree

6 files changed

+48
-22
lines changed

6 files changed

+48
-22
lines changed

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
'debug' => env('APP_DEBUG'),
16+
'debug' => true,
1717

1818
/*
1919
|--------------------------------------------------------------------------

resources/views/layouts/dashboard.blade.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<span class="icon-bar"></span>
1313
<span class="icon-bar"></span>
1414
</button>
15-
<a class="navbar-brand" href="/">SB Admin v2.0</a>
15+
<a class="navbar-brand" href="{{ url ('') }}">SB Admin v2.0 | Laravel 5</a>
1616
</div>
1717
<!-- /.navbar-header -->
1818

@@ -221,7 +221,7 @@
221221
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
222222
</li>
223223
<li class="divider"></li>
224-
<li><a href="/login"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
224+
<li><a href="{{ url ('login') }}"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
225225
</li>
226226
</ul>
227227
<!-- /.dropdown-user -->
@@ -245,38 +245,38 @@
245245
<!-- /input-group -->
246246
</li>
247247
<li {{ (Request::is('/') ? 'class="active"' : '') }}>
248-
<a href="/"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
248+
<a href="{{ url ('') }}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
249249
</li>
250250
<li {{ (Request::is('*charts') ? 'class="active"' : '') }}>
251-
<a href="/charts"><i class="fa fa-bar-chart-o fa-fw"></i> Charts</a>
251+
<a href="{{ url ('charts') }}"><i class="fa fa-bar-chart-o fa-fw"></i> Charts</a>
252252
<!-- /.nav-second-level -->
253253
</li>
254254
<li {{ (Request::is('*tables') ? 'class="active"' : '') }}>
255-
<a href="/tables"><i class="fa fa-table fa-fw"></i> Tables</a>
255+
<a href="{{ url ('tables') }}"><i class="fa fa-table fa-fw"></i> Tables</a>
256256
</li>
257257
<li {{ (Request::is('*forms') ? 'class="active"' : '') }}>
258-
<a href="/forms"><i class="fa fa-edit fa-fw"></i> Forms</a>
258+
<a href="{{ url ('forms') }}"><i class="fa fa-edit fa-fw"></i> Forms</a>
259259
</li>
260260
<li >
261261
<a href="#"><i class="fa fa-wrench fa-fw"></i> UI Elements<span class="fa arrow"></span></a>
262262
<ul class="nav nav-second-level">
263263
<li {{ (Request::is('*panels') ? 'class="active"' : '') }}>
264-
<a href="/panels">Panels and Collapsibles</a>
264+
<a href="{{ url ('panels') }}">Panels and Collapsibles</a>
265265
</li>
266266
<li {{ (Request::is('*buttons') ? 'class="active"' : '') }}>
267-
<a href="/buttons">Buttons</a>
267+
<a href="{{ url ('buttons' ) }}">Buttons</a>
268268
</li>
269269
<li {{ (Request::is('*notifications') ? 'class="active"' : '') }}>
270270
<a href="{{ url('notifications') }}">Alerts</a>
271271
</li>
272272
<li {{ (Request::is('*typography') ? 'class="active"' : '') }}>
273-
<a href="/typography">Typography</a>
273+
<a href="{{ url ('typography') }}">Typography</a>
274274
</li>
275275
<li {{ (Request::is('*icons') ? 'class="active"' : '') }}>
276-
<a href="/icons"> Icons</a>
276+
<a href="{{ url ('icons') }}"> Icons</a>
277277
</li>
278278
<li {{ (Request::is('*grid') ? 'class="active"' : '') }}>
279-
<a href="/grid">Grid</a>
279+
<a href="{{ url ('grid') }}">Grid</a>
280280
</li>
281281
</ul>
282282
<!-- /.nav-second-level -->
@@ -315,16 +315,16 @@
315315
<a href="#"><i class="fa fa-files-o fa-fw"></i> Sample Pages<span class="fa arrow"></span></a>
316316
<ul class="nav nav-second-level">
317317
<li {{ (Request::is('*blank') ? 'class="active"' : '') }}>
318-
<a href="/blank">Blank Page</a>
318+
<a href="{{ url ('blank') }}">Blank Page</a>
319319
</li>
320320
<li>
321-
<a href="/login">Login Page</a>
321+
<a href="{{ url ('login') }}">Login Page</a>
322322
</li>
323323
</ul>
324324
<!-- /.nav-second-level -->
325325
</li>
326326
<li {{ (Request::is('*documentation') ? 'class="active"' : '') }}>
327-
<a href="/documentation"><i class="fa fa-file-word-o fa-fw"></i> Documentation</a>
327+
<a href="{{ url ('documentation') }}"><i class="fa fa-file-word-o fa-fw"></i> Documentation</a>
328328
</li>
329329
</ul>
330330
</div>

resources/views/login.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</label>
2020
</div>
2121
<!-- Change this to a button or input when using this as a form -->
22-
<a href="/" class="btn btn-lg btn-success btn-block">Login</a>
22+
<a href="{{ url ('') }}" class="btn btn-lg btn-success btn-block">Login</a>
2323
</fieldset>
2424
</form>
2525

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
require_once __DIR__ . '/composer' . '/autoload_real.php';
66

7-
return ComposerAutoloaderInitd78b7abacfeab9f551c82d9c23bab2ab::getLoader();
7+
return ComposerAutoloaderInitd50d18e6af5c3a9f261f51299ef92924::getLoader();

vendor/composer/ClassLoader.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class ClassLoader
5454
private $useIncludePath = false;
5555
private $classMap = array();
5656

57+
private $classMapAuthoritative = false;
58+
5759
public function getPrefixes()
5860
{
5961
if (!empty($this->prefixesPsr0)) {
@@ -248,6 +250,27 @@ public function getUseIncludePath()
248250
return $this->useIncludePath;
249251
}
250252

253+
/**
254+
* Turns off searching the prefix and fallback directories for classes
255+
* that have not been registered with the class map.
256+
*
257+
* @param bool $classMapAuthoritative
258+
*/
259+
public function setClassMapAuthoritative($classMapAuthoritative)
260+
{
261+
$this->classMapAuthoritative = $classMapAuthoritative;
262+
}
263+
264+
/**
265+
* Should class lookup fail if not found in the current class map?
266+
*
267+
* @return bool
268+
*/
269+
public function isClassMapAuthoritative()
270+
{
271+
return $this->classMapAuthoritative;
272+
}
273+
251274
/**
252275
* Registers this instance as an autoloader.
253276
*
@@ -299,6 +322,9 @@ public function findFile($class)
299322
if (isset($this->classMap[$class])) {
300323
return $this->classMap[$class];
301324
}
325+
if ($this->classMapAuthoritative) {
326+
return false;
327+
}
302328

303329
$file = $this->findFileWithExtension($class, '.php');
304330

vendor/composer/autoload_real.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInitd78b7abacfeab9f551c82d9c23bab2ab
5+
class ComposerAutoloaderInitd50d18e6af5c3a9f261f51299ef92924
66
{
77
private static $loader;
88

@@ -19,9 +19,9 @@ public static function getLoader()
1919
return self::$loader;
2020
}
2121

22-
spl_autoload_register(array('ComposerAutoloaderInitd78b7abacfeab9f551c82d9c23bab2ab', 'loadClassLoader'), true, true);
22+
spl_autoload_register(array('ComposerAutoloaderInitd50d18e6af5c3a9f261f51299ef92924', 'loadClassLoader'), true, true);
2323
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24-
spl_autoload_unregister(array('ComposerAutoloaderInitd78b7abacfeab9f551c82d9c23bab2ab', 'loadClassLoader'));
24+
spl_autoload_unregister(array('ComposerAutoloaderInitd50d18e6af5c3a9f261f51299ef92924', 'loadClassLoader'));
2525

2626
$includePaths = require __DIR__ . '/include_paths.php';
2727
array_push($includePaths, get_include_path());
@@ -46,14 +46,14 @@ public static function getLoader()
4646

4747
$includeFiles = require __DIR__ . '/autoload_files.php';
4848
foreach ($includeFiles as $file) {
49-
composerRequired78b7abacfeab9f551c82d9c23bab2ab($file);
49+
composerRequired50d18e6af5c3a9f261f51299ef92924($file);
5050
}
5151

5252
return $loader;
5353
}
5454
}
5555

56-
function composerRequired78b7abacfeab9f551c82d9c23bab2ab($file)
56+
function composerRequired50d18e6af5c3a9f261f51299ef92924($file)
5757
{
5858
require $file;
5959
}

0 commit comments

Comments
 (0)