najmulcse

najmulcse

Member Since 2 Years Ago

Tangail

Experience Points 5,510
Experience Level 2

4,490 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 48
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

11 Dec
8 months ago

najmulcse left a reply on Select Only Some Columns From A Nested Query

I'm also facing this problem. Can you describe details, please.

27 Oct
9 months ago

najmulcse started a new conversation Jwt Auth Apply For Api Route And Auth Apply For Web Route

I want to authenticate laravel site by jwt auth where api may call from other site( codeigniter) for accessing some view files(blades). How can I create the API route site and web route for authenticate as well as accessing some views. After passing authentication using email and password of the users who has logged in to the site he/she might access the some we web routes.

23 Oct
9 months ago

najmulcse started a new conversation Codeigniter To Laravel Site Login With Credential

I'have a project where admin section is implemented by codeigniter framework. Another part of this project is implemented by laravel framework. Now I want to access my laravel part (which has login system for the admin) from codeigniter admin section. How can pass authentication system and get the laravel admin part data access? In a sense, i need to have control from both side thats means laravel admin part to codeigniter admin as well as reverse.

03 Oct
10 months ago

najmulcse left a reply on Timezone From Airport Code And City Name

But how can i do that?

najmulcse started a new conversation Timezone From Airport Code And City Name

Is it possible to find timezone from city name or airport code?

During my flight application development, i need to calculate the duration of flight for two countries. But the API provided us only the city name and airport code of the countries (arrival and departure).

How can calculate the flight duration using PHP? Please help me.

12 Jul
2 years ago
23 Jun
2 years ago

najmulcse left a reply on Ajax Calls And Get 500 (Internal Server Error)

@phpMick no , i'm using laravel 5.2 , yes its my first ajax call . when i call ajax by get request , it gives me this error

najmulcse left a reply on Ajax Calls And Get 500 (Internal Server Error)

@phpMick

now remove the middleware


show:259 Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}abort: function (a)always: function ()complete: function ()done: function ()error: function ()fail: function ()getAllResponseHeaders: function ()getResponseHeader: function (a)overrideMimeType: function (a)pipe: function ()progress: function ()promise: function (a)readyState: 4responseText: "<!DOCTYPE html>↵<html>↵    <head>↵        <meta name="robots" content="noindex,nofollow" />↵        <style>↵            /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */↵            html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}↵            html { background: #eee; padding: 10px }↵            img { border: 0; }↵            #sf-resetcontent { width:970px; margin:0 auto; }↵                        .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }↵            .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }↵            .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }↵            .sf-reset .clear_fix { display:inline-block; }↵            .sf-reset * html .clear_fix { height:1%; }↵            .sf-reset .clear_fix { display:block; }↵            .sf-reset, .sf-reset .block { margin: auto }↵            .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }↵            .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }↵            .sf-reset strong { font-weight:bold; }↵            .sf-reset a { color:#6c6159; cursor: default; }↵            .sf-reset a img { border:none; }↵            .sf-reset a:hover { text-decoration:underline; }↵            .sf-reset em { font-style:italic; }↵            .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }↵            .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; }↵            .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; }↵            .sf-reset .exception_message { margin-left: 3em; display: block; }↵            .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }↵            .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;↵                -webkit-border-bottom-right-radius: 16px;↵                -webkit-border-bottom-left-radius: 16px;↵                -moz-border-radius-bottomright: 16px;↵                -moz-border-radius-bottomleft: 16px;↵                border-bottom-right-radius: 16px;↵                border-bottom-left-radius: 16px;↵                border-bottom:1px solid #ccc;↵                border-right:1px solid #ccc;↵                border-left:1px solid #ccc;↵            }↵            .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;↵                -webkit-border-top-left-radius: 16px;↵                -webkit-border-top-right-radius: 16px;↵                -moz-border-radius-topleft: 16px;↵                -moz-border-radius-topright: 16px;↵                border-top-left-radius: 16px;↵                border-top-right-radius: 16px;↵                border-top:1px solid #ccc;↵                border-right:1px solid #ccc;↵                border-left:1px solid #ccc;↵                overflow: hidden;↵                word-wrap: break-word;↵            }↵            .sf-reset a { background:none; color:#868686; text-decoration:none; }↵            .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; }↵            .sf-reset ol { padding: 10px 0; }↵            .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;↵                -webkit-border-radius: 10px;↵                -moz-border-radius: 10px;↵                border-radius: 10px;↵                border: 1px solid #ccc;↵            }↵        </style>↵    </head>↵    <body>↵                    <div id="sf-resetcontent" class="sf-reset">↵                <h1>Whoops, looks like something went wrong.</h1>↵                                        <h2 class="block_exception clear_fix">↵                            <span class="exception_counter">1/1</span>↵                            <span class="exception_title"><abbr title="ReflectionException">ReflectionException</abbr> in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Route.php line 282" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Route.php line 282</a>:</span>↵                            <span class="exception_message">Function () does not…L;this.innerHTML=this.title;this.title=f;">Router.php line 691</a></li>↵       <li>at <abbr title="Illuminate\Routing\Router">Router</abbr>->dispatchToRoute(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Router.php line 675" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Router.php line 675</a></li>↵       <li>at <abbr title="Illuminate\Routing\Router">Router</abbr>->dispatch(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 246" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Kernel.php line 246</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Kernel">Kernel</abbr>->Illuminate\Foundation\Http\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php line 52" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 52</a></li>↵       <li>at <abbr title="Illuminate\Routing\Pipeline">Pipeline</abbr>->Illuminate\Routing\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php line 44" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">CheckForMaintenanceMode.php line 44</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode">CheckForMaintenanceMode</abbr>->handle(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode">CheckForMaintenanceMode</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php line 136" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 136</a></li>↵       <li>at <abbr title="Illuminate\Pipeline\Pipeline">Pipeline</abbr>->Illuminate\Pipeline\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php line 32" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 32</a></li>↵       <li>at <abbr title="Illuminate\Routing\Pipeline">Pipeline</abbr>->Illuminate\Routing\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php line 102" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 102</a></li>↵       <li>at <abbr title="Illuminate\Pipeline\Pipeline">Pipeline</abbr>->then(<em>object</em>(<abbr title="Closure">Closure</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 132" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Kernel.php line 132</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Kernel">Kernel</abbr>->sendRequestThroughRouter(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 99" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Kernel.php line 99</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Kernel">Kernel</abbr>->handle(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\public\index.php line 53" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">index.php line 53</a></li>↵    </ol>↵</div>↵↵            </div>↵    </body>↵</html>"setRequestHeader: function (a,b)state: function ()status: 500statusCode: function (a)statusText: "Internal Server Error"success: function ()then: function ()__proto__: Object

najmulcse left a reply on Ajax Calls And Get 500 (Internal Server Error)

@phpMick i don't know . May be it will be vendor code . I'm not sure

najmulcse left a reply on Ajax Calls And Get 500 (Internal Server Error)

When i call ajax then it gives me the following error


show:259 Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}abort: function (a)always: function ()complete: function ()done: function ()error: function ()fail: function ()getAllResponseHeaders: function ()getResponseHeader: function (a)overrideMimeType: function (a)pipe: function ()progress: function ()promise: function (a)readyState: 4responseText: "<!DOCTYPE html>↵<html>↵    <head>↵        <meta name="robots" content="noindex,nofollow" />↵        <style>↵            /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */↵            html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}↵            html { background: #eee; padding: 10px }↵            img { border: 0; }↵            #sf-resetcontent { width:970px; margin:0 auto; }↵                        .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }↵            .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }↵            .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }↵            .sf-reset .clear_fix { display:inline-block; }↵            .sf-reset * html .clear_fix { height:1%; }↵            .sf-reset .clear_fix { display:block; }↵            .sf-reset, .sf-reset .block { margin: auto }↵            .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }↵            .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }↵            .sf-reset strong { font-weight:bold; }↵            .sf-reset a { color:#6c6159; cursor: default; }↵            .sf-reset a img { border:none; }↵            .sf-reset a:hover { text-decoration:underline; }↵            .sf-reset em { font-style:italic; }↵            .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }↵            .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; }↵            .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; }↵            .sf-reset .exception_message { margin-left: 3em; display: block; }↵            .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }↵            .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;↵                -webkit-border-bottom-right-radius: 16px;↵                -webkit-border-bottom-left-radius: 16px;↵                -moz-border-radius-bottomright: 16px;↵                -moz-border-radius-bottomleft: 16px;↵                border-bottom-right-radius: 16px;↵                border-bottom-left-radius: 16px;↵                border-bottom:1px solid #ccc;↵                border-right:1px solid #ccc;↵                border-left:1px solid #ccc;↵            }↵            .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;↵                -webkit-border-top-left-radius: 16px;↵                -webkit-border-top-right-radius: 16px;↵                -moz-border-radius-topleft: 16px;↵                -moz-border-radius-topright: 16px;↵                border-top-left-radius: 16px;↵                border-top-right-radius: 16px;↵                border-top:1px solid #ccc;↵                border-right:1px solid #ccc;↵                border-left:1px solid #ccc;↵                overflow: hidden;↵                word-wrap: break-word;↵            }↵            .sf-reset a { background:none; color:#868686; text-decoration:none; }↵            .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; }↵            .sf-reset ol { padding: 10px 0; }↵            .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;↵                -webkit-border-radius: 10px;↵                -moz-border-radius: 10px;↵                border-radius: 10px;↵                border: 1px solid #ccc;↵            }↵        </style>↵    </head>↵    <body>↵                    <div id="sf-resetcontent" class="sf-reset">↵                <h1>Whoops, looks like something went wrong.</h1>↵                                        <h2 class="block_exception clear_fix">↵                            <span class="exception_counter">1/1</span>↵                            <span class="exception_title"><abbr title="ReflectionException">ReflectionException</abbr> in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Route.php line 282" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Route.php line 282</a>:</span>↵                            <span class="exception_message">Function () does not…>GroupAccessMiddleware.php line 22</a></li>↵       <li>at <abbr title="App\Http\Middleware\GroupAccessMiddleware">GroupAccessMiddleware</abbr>->handle(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="App\Http\Middleware\GroupAccessMiddleware">GroupAccessMiddleware</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php line 136" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 136</a></li>↵       <li>at <abbr title="Illuminate\Pipeline\Pipeline">Pipeline</abbr>->Illuminate\Pipeline\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php line 32" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 32</a></li>↵       <li>at <abbr title="Illuminate\Routing\Pipeline">Pipeline</abbr>->Illuminate\Routing\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php line 44" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">CheckForMaintenanceMode.php line 44</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode">CheckForMaintenanceMode</abbr>->handle(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode">CheckForMaintenanceMode</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>))) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php line 136" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 136</a></li>↵       <li>at <abbr title="Illuminate\Pipeline\Pipeline">Pipeline</abbr>->Illuminate\Pipeline\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php line 32" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 32</a></li>↵       <li>at <abbr title="Illuminate\Routing\Pipeline">Pipeline</abbr>->Illuminate\Routing\{closure}(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>))</li>↵       <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php line 102" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Pipeline.php line 102</a></li>↵       <li>at <abbr title="Illuminate\Pipeline\Pipeline">Pipeline</abbr>->then(<em>object</em>(<abbr title="Closure">Closure</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 132" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Kernel.php line 132</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Kernel">Kernel</abbr>->sendRequestThroughRouter(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 99" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">Kernel.php line 99</a></li>↵       <li>at <abbr title="Illuminate\Foundation\Http\Kernel">Kernel</abbr>->handle(<em>object</em>(<abbr title="Illuminate\Http\Request">Request</abbr>)) in <a title="J:\Laravel\htdocs\ts-collaboration\public\index.php line 53" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">index.php line 53</a></li>↵    </ol>↵</div>↵↵            </div>↵    </body>↵</html>"setRequestHeader: function (a,b)state: function ()status: 500statusCode: function (a)statusText: "Internal Server Error"success: function ()then: function ()__proto__: Object

najmulcse left a reply on Ajax Calls And Get 500 (Internal Server Error)

@lukecurtis Here my ajax call

 function assignment(id)
    {
      var i = Number(id);

      $.ajax({
        type :'GET',
        url :'/assignmentFilter/'+i,
        dataType: 'json',
        headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        },
        success : function(data){ 
                console.log(data);
        },
         error: function (err) {
                 console.log(err); 
                }
       });

    }

here my controller code

 public function assignmentFilter($id)
      { 
       
        
      return Response::json($id);
      }
    

here my route

 Route::get('/assignmentFilter/{id?}',['as'=>'ajaxReq','[email protected]']);

najmulcse started a new conversation Ajax Calls And Get 500 (Internal Server Error)

I want to use ajax in my laravel project .when i call ajax then it gives me the following error message " 500 (Internal Server Error)" . i'm worried about this issue . How can solve this error ? please help me . :(

18 Jun
2 years ago

najmulcse started a new conversation IntercoolerJs Is Not Working In Laravel Project

I want to use intercoolerJS in my laravel project .But it give me following error message .

"Uncaught TypeError: $.mockjax is not a function" .

I'm little bit confused that is it need to write the corresponding url of my route file ??

How can resolve this problem ? please anyone help me .

26 May
2 years ago

najmulcse left a reply on Error Messages Are Not Shown After Validation

@Snapey

Yes , All things are correctly assigned with their requirements .

25 May
2 years ago

najmulcse left a reply on Error Messages Are Not Shown After Validation

@Nicholas All possibles function already tested but no results found for showing errors .

najmulcse left a reply on Error Messages Are Not Shown After Validation

@Nicholas

I'm already done this but error messages are not showing .

najmulcse started a new conversation Error Messages Are Not Shown After Validation

I want to show error messages after validating of a form . But its not showing the error message when it redirected into previous page . Important point is noted that form validation is working but error message is not shown .

I'm printed for errors checking by {{print_r($errors)}} in my form and its show the following message :Illuminate\Support\ViewErrorBag Object ( [bags:protected] => Array ( ) ) 1

It is assure that the validation is worked properly . When i submitted my form without any values it's not going to other page , it redirected to current page .

#Here i posted my form in a controller method

public function storeLecture(Request $request ){

      $rules=[
          'lecture_title'  => 'required ',
          'body'           => 'required',
          'file'           => 'required'
           ];
     $gid=$request->gid;
     $v= Validator::make($request->all(),$rules);
     //$this->validate($request,$rules);
   
     if($v->fails())
            {
             return dd($v);
             //return redirect()->back()->withErrors($v)
                          
                          ->withInput();
            }
      else {
             return  "Ok";
            }
     
     $file= $request->file('file');
     $user_id = Auth::user()->id;
     $post=Post::create([
      'group_id'  => $gid ,
      'user_id'   => $user_id , 
      'title'     => $request->lecture_title ,
      'body'      => $request->body,
      'type'      => 'L'
                      ]);

     if(!empty($file))
     {
        $content=time().$file->getClientOriginalName();
        $post_id=$post->id;
        $file_store=Content::create(['post_id' => $post_id ,'content' =>$content ]);
        $file->move('postfiles',$file_store->id);
     }


      return redirect()->route('allLectures',$gid);  
      

    }

#my form blade file

<form action="{{route('storeLecture')}}" method="POST" enctype="multipart/form-data">
                                      {{ csrf_field() }}                                                             
                                @foreach($errors as $error)
                                      <li>{{$error}}</li>
                                @endforeach 
                                            <input type="hidden" name="gid" value="{{$group->id}}" >
                                      <div class="form-group ">     
                                           <label class="control-label">Lecture Title</label>
                                           <input type="text" name="lecture_title" class="form-control" placeholder="Lecture Title" value="{{old('lecture_title')}}">  
                                     </div>
                                     <div class="form-group">
                                            <label class="control-label">Body</label>
                                            <textarea class="form-control" name="body" rows="5" placeholder="Write here...">{{ old('body') }}</textarea>
                                      </div>
                                     <div class="form-group">
                                           <label class="control-label">File</label>
                                             <input type="file" name="file" class="form-control" accept=".doc,.ppt,.pdf,.jpeg,.png,.jpg," value="{{ old('file') }}">     
                                     </div>
                                     <div class="form-group">

                                          <button type="submit" class="btn btn-sm btn-success pull-right">Upload lecture</button>   
                                    </div>
                           </form> 


#routes are

Route::get('group/{gid}/allLectures',['as' => 'allLectures' , 'uses' => '[email protected]']);
    Route::get('group/{gid}/createLecture',['as' => 'createLecture','uses' => '[email protected]']);
    Route::post('group/Lecture/store',['as' => 'storeLecture','uses' => '[email protected]']);


When i check the return value for showing all validation by dd($v) its catch the validation but when it redirected to return redirect()->back()->withErrors($v) ->withInput();

no error messages are showing in my form .

Please help me to solve this problem .

19 May
2 years ago

najmulcse left a reply on How To Write Php Code In Blade File ?

@MarioMacedo thanks its working nicely ... :)

najmulcse left a reply on How To Write Php Code In Blade File ?

@MarioMacedo sorry ,it will be the " Controller code". I meant that I have a model named Content . I'm handling all of the posts within PostController class.

But in my blade file , i need to use some conditions . Where all posts may have file or not . I want to check which post contains file ,then i will show in the post.blade.php file

Here my post.blade.php file some portion of code are given bellow:

                                  <p>{{ $post->body }}</p>
                              @if($content=App\Content::where('post_id',$post->id))
                                      {{$content->content}}
                              @endif 

najmulcse started a new conversation How To Write Php Code In Blade File ?

I need to write the code of model in a blade file . But how can possible to write? I have post.blade.php file where i showing all post . But i need to show the post contents (.pdf,.doc,.ppt etc) where these files are staying other table . I want to show these contents which are corresponding of individual post . For this , i'm checking these content by a model in the post.blade.php file . But its seem to wrong . How can solve the problem ?

15 May
2 years ago

najmulcse left a reply on Relation Among Three Tables

@babind

Thank you so much for giving such a real example .

13 May
2 years ago

najmulcse started a new conversation Email Send By PHP

How can send email by php ? please anyone help me .

11 May
2 years ago

najmulcse left a reply on Relation Among Three Tables

Thank you .

najmulcse left a reply on Relation Among Three Tables

I already read it but little bit confused . please , If you create the relations then i will be helpful .Also how can retrieve these data .

thanks

najmulcse left a reply on Relation Among Three Tables

How can write , i can't understand . what can i do by 2 models using three tables?

najmulcse left a reply on Relation Among Three Tables

Ok . I'm waiting for your response

najmulcse left a reply on Relation Among Three Tables

please make it three model . when multiple users want to join a group , how can i store these user_id in a single row ?? For this reason we need one extra table .

in group_members table i include the data as follows :

id ->user_id ->group_id

  1. ->2->1,
  2. ->4->1,
  3. ->8->2

But you mentioned earlier that two tables can possible to store these data . how ?

najmulcse left a reply on Relation Among Three Tables

Sorry , it is not working .

najmulcse left a reply on Relation Among Three Tables

Suppose you are a user . You already created several groups .

example : group name.

  1. laravel
  2. php
  3. html

you want to get your all groups list as well as you joined another groups like Javascript , CSS you want to show your created groups and also your joined groups. Your created groups are :

  1. laravel
  2. php
  3. html

joined groups:

1.Javascript 2.CSS

Also you want to show how many members of your laravel group and their details .

najmulcse left a reply on Relation Among Three Tables

When i want to find my created group its not working , some errors are showed .

I already joined User and Group models using hasMany() relation to get all groups of a user.

najmulcse left a reply on Relation Among Three Tables

here what is the meaning of $group inside attach() ?

najmulcse left a reply on Relation Among Three Tables

Thank you for your response .

Actually when a user inter into the system , user can just join a specific group without creating his own group . By these two Model its not possible to relation . In this reason i added GroupMember model .

How can possible to make relation ? please tell me .

najmulcse started a new conversation Relation Among Three Tables

I'm facing a problem to make a relation among the three tables . I have three models:

  1. User
  2. Group
  3. GroupMember

Tables structure are :

i. users (id,name,email) ii. groups (id, user_id,group_name,title) iii. group_members (id,group_id,user_id)

Requirements are: A user can create multiple groups .In a group there has multiple group members . A user can join multiple groups . Please help me by making a relation among the three tables .

I want to get all groups details where a user is joined that specific groups . Also i want to get all group members in a specific group.

Thank you in advanced .