Ved21212

Ved21212

Member Since 8 Months Ago

Experience Points
2,990
Total
Experience

2,010 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
10
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 1
2,990 XP
May
28
3 months ago
Activity icon

Replied to Session Does Not Regenerate After Login..

But what shall id pass in $data . as session id is generated automatically ?

$request->session()->put('session_id', $data);
Activity icon

Replied to Session Does Not Regenerate After Login..

@bugsysha My project is bascially on ecommerce.. and the scenario is that when a product is added by the logged in user to the cart it is visible in cart after logout too..

Activity icon

Started a new Conversation Session Does Not Regenerate After Login..

Hello team, I am trying to logout and generate a new session id on logout but fail to do so..can anyone help me with that?

Following is what I have tried, Please correct me if I am wrong!! Login:

  public function LoginFront(Request $request){
        $attempt = [];
        $login_email = $request->login_email;
        $login_password = $request->login_password;

        $attempt = Auth::attempt(array('email' => $login_email, 'password' => $login_password));

        //dd($attempt);

        if($attempt == true){
            $ecomm_id = Auth::user()->id;
			
			if($ecomm_id == 1){			
				$attempt = false;
            	return response()->json($attempt);	
			}else{
                
                $request->session()->regenerate();
				$request->session()->put('ecomm_id',$ecomm_id);
            	return response()->json($attempt);
			}
            
        }else{
            return response()->json($attempt);
        }

    }

Logout:

 public function LogoutFront(Request $request){

            Auth::logout();
            Session::flush();
            $request->session()->regenerate();
                        return redirect('/');
            // return '1';

        }

Thanks

May
21
4 months ago
Activity icon

Replied to Import / Export Using Maatwebsite\Excel

@talinon Thanks but what can I use in place of load()

Activity icon

Started a new Conversation Import / Export Using Maatwebsite\Excel

Hello Team, I am trying to import to my inventory and export products from my inventory, but unable to do so it has something to do with the version if i use version Maatwebsite\Excel 2.0.0 import works but export wont work and with Maatwebsite\Excel 3.0.0 or 3.1.0 this is the error I get in import how can I manage this any suggessions?

Call to undefined method Maatwebsite\Excel\Excel::load()
May
19
4 months ago
Activity icon

Started a new Conversation Stripe Integration Error

Hello Team, I am trying to integrate stripe in my project but end up with this error from javascript:

    Uncaught (in promise) ReferenceError: stripeTokenHandler is not defined
    at stripe-payment:116
(anonymous) @ stripe-payment:116
Promise.then (async)
(anonymous) @ stripe-payment:109

Can anyone guide me how to solve this error?

Apr
23
5 months ago
Activity icon

Replied to How To Generate Fake Data And Seed Using Faker.

Currently this is what I am doing. Please let me know if there is any reference for the same:

Schema::create('orders', function (Blueprint $table) {
            $table->increments('id');
            $table->string('invoice_number')->unique();
            $table->integer('user_id')->unsigned()->nullable();
            $table->foreign('user_id')->references('id')->on('users')
                  ->onUpdate('cascade')->onDelete('set null');
            $table->enum('status', array('new','processed'))->nullable();
            $table->timestamps();
        });
Activity icon

Started a new Conversation How To Generate Fake Data And Seed Using Faker.

Hello team, I am trying to generate some fake data for my project: customer - 150 products - 100 orders (status = “delivered” or “on the way”) I can create fake data without relation but how can i create fake data as follows:

customers:customer_id(Primary Key), name, email

product : product_id(Primary Key), product_name, price

order_detail_table : order_detail_id(Primary Key),order_id(Foreign Key), product_id(Foreign Key), customer_id (Foreign Key), quantity

order_table : order_id, invoice_number(random), order_detail_id(Foreign Key),customer_id(Foreign Key), status(“delivered” or “on the way”))

Can you suggest me how can I achieve this? Thanks in advance.

Apr
22
5 months ago
Apr
21
5 months ago
Activity icon

Replied to Silber/bouncer Package To Assign Roles

@bobbybouwmann Thanks mate :)

Can we access the role of a user Using Auth in blade?

Activity icon

Replied to Silber/bouncer Package To Assign Roles

@bobbybouwmann @mrkarma4ya I am trying to figure out what is Bouncer::ability() for conventionally . Is it to set permission to access pages? I was trying to get the Auth::user()->role it returns null though.. This is how my seeder looks like

<?php
  
use Illuminate\Database\Seeder;
use App\User;
// use Spatie\Permission\Models\Role;
// use Spatie\Permission\Models\Permission;
use Silber\Bouncer\BouncerFacade as Bouncer;
use Illuminate\Container\Container;
class CreateAdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $admin = Bouncer::role()->firstOrCreate([
            'name' => 'admin',
            'title' => 'Administrator',
        ]);
    
        $ban = Bouncer::ability()->firstOrCreate([
            'name' => 'ban-users',
            'title' => 'Ban users',
        ]);
    
        Bouncer::allow($admin)->to($ban);
        $user = User::create([
        	'name' => 'Samuel Jose', 
        	'email' => '[email protected]',
        	'password' => bcrypt('123456')
        ]);
  
        $user->assign('admin');

    }
}

Activity icon

Started a new Conversation Silber/bouncer Package To Assign Roles

Hello Team , I need to assign roles using silber/bouncer package "silber/bouncer": "v1.0.0-rc.9",I know how to do that using the RoleController. But how do I create roles : admin , seller, seller-staff using database seeders with this package.

Apr
15
5 months ago
Activity icon

Replied to Firebase Logout Issue

The issue is only during the logout I think the issue is with some firebase cache which is not getting cleared

Activity icon

Started a new Conversation Firebase Logout Issue

Hello Team, I am trying to logout after logging in with otp verification of phone number through firebase. If I login through mobile number then logout in that case the form to login does not display untill I manually remove the cache.


    firebase.initializeApp(config);

    var database = firebase.database();
    /**
     * Set up UI event listeners and registering Firebase auth listeners.
     */
    window.onload = function() {
        // Listening for auth state changes.
        firebase.auth().onAuthStateChanged(function(user) {
            if (user) {
                // User is signed in.
                var uid = user.uid;

                var email = user.email;
                var photoURL = user.photoURL;
                var phoneNumber = user.phoneNumber;


                var isAnonymous = user.isAnonymous;
                var displayName = user.displayName;
                var providerData = user.providerData;
                var emailVerified = user.emailVerified;
            }
            updateSignInButtonUI();
            updateSignInFormUI();
            updateSignOutButtonUI();
            updateSignedInUserStatusUI();
            updateVerificationCodeFormUI();
        });

        // Event bindings.
        document.getElementById('sign-out-button').addEventListener('click', onSignOutClick);
        document.getElementById('phone-number').addEventListener('keyup', updateSignInButtonUI);
        document.getElementById('phone-number').addEventListener('change', updateSignInButtonUI);
        document.getElementById('verification-code').addEventListener('keyup', updateVerifyCodeButtonUI);
        document.getElementById('verification-code').addEventListener('change', updateVerifyCodeButtonUI);
        document.getElementById('verification-code-form').addEventListener('submit', onVerifyCodeSubmit);
        document.getElementById('cancel-verify-code-button').addEventListener('click', cancelVerification);

        // [START appVerifier]
        window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('sign-in-button', {
            'size': 'invisible',
            'callback': function(response) {
                // reCAPTCHA solved, allow signInWithPhoneNumber.
                onSignInSubmit();
            }
        });
        // [END appVerifier]

        recaptchaVerifier.render().then(function(widgetId) {
            window.recaptchaWidgetId = widgetId;
            updateSignInButtonUI();
        });
    };

    /**
     * Function called when clicking the Login/Logout button.
     */

    function onSignInSubmit() {
        if (isPhoneNumberValid()) {

            var login_mobileno =  $('#phone-number').val();
            var country_code =  $('#country_code').val();
            var phoneNoVal = "+"+country_code+""+login_mobileno;

            console.log(phoneNoVal);

            $.ajax({
                url: '{{ url('/api/CheckMobileLoginFront') }}',
                type: 'POST',
                dataType: 'json',
                data:{'login_mobileno':login_mobileno, 'country_code':country_code},
                headers: {
                    'X-CSRF-TOKEN': '{{ csrf_token() }}'
                },
                success:function(response){

                    if(response == 1){
                        window.signingIn = true;
                        updateSignInButtonUI();
                        //var phoneNumber = getPhoneNumberFromUserInput();
                        var phoneNumber = phoneNoVal;
                        //var phoneNumber = "+"+country_code+"9898115830";
                        //console.log(phoneNumber);
                        var appVerifier = window.recaptchaVerifier;
                        firebase.auth().signInWithPhoneNumber(phoneNumber, appVerifier)
                            .then(function (confirmationResult) {
                                // SMS sent. Prompt user to type the code from the message, then sign the
                                // user in with confirmationResult.confirm(code).
                                window.confirmationResult = confirmationResult;
                                window.signingIn = false;
                                updateSignInButtonUI();
                                updateVerificationCodeFormUI();
                                updateVerifyCodeButtonUI();
                                updateSignInFormUI();

                            }).catch(function (error) {
                            // Error; SMS not sent
                            console.error('Error during signInWithPhoneNumber', error);
                            window.alert('Error during signInWithPhoneNumber:\n\n'
                                + error.code + '\n\n' + error.message);
                            window.signingIn = false;
                            updateSignInFormUI();
                            updateSignInButtonUI();
                        });
                    }else{
                        swal("Warning", "Enter Mobile no is not registerd with us,please try with registerd number!!", "warning");
                        window.signingIn = false;
                        updateSignInFormUI();
                        updateSignInButtonUI();
                    }

                }
            });
        }
    }

    /**
     * Function called when clicking the "Verify Code" button.
     */
    function onVerifyCodeSubmit(e) {
        e.preventDefault();
        if (!!getCodeFromUserInput()) {
            window.verifyingCode = true;
            updateVerifyCodeButtonUI();
            var code = getCodeFromUserInput();
            confirmationResult.confirm(code).then(function (result) {
                // User signed in successfully.
                var user = result.user;
                window.verifyingCode = false;
                window.confirmationResult = null;
                updateVerificationCodeFormUI();

                //Call Login Funcation
                MobileLoginFrontDetials();

            }).catch(function (error) {
                // User couldn't sign in (bad verification code?)
                console.error('Error while checking the verification code', error);
                window.alert('Error while checking the verification code:\n\n'
                    + error.code + '\n\n' + error.message);
                window.verifyingCode = false;
                updateSignInButtonUI();
                updateVerifyCodeButtonUI();
            });
        }
    }

    /**
     * Cancels the verification code input.
     */
    function cancelVerification(e) {
        e.preventDefault();
        window.confirmationResult = null;
        updateVerificationCodeFormUI();
        updateSignInFormUI();
    }

    /**
     * Signs out the user when the sign-out button is clicked.
     */
    function onSignOutClick() {
        firebase.auth().signOut();
    }

    /**
     * Reads the verification code from the user input.
     */
    function getCodeFromUserInput() {
        return document.getElementById('verification-code').value;
    }

    /**
     * Reads the phone number from the user input.
     */
    function getPhoneNumberFromUserInput() {
        return document.getElementById('phone-number').value;
    }

    /**
     * Returns true if the phone number is valid.
     */
    function isPhoneNumberValid() {
        //var pattern = /^\+[0-9\s\-\(\)]+$/;
        //var phoneNumber = getPhoneNumberFromUserInput();
        //return phoneNumber.search(pattern) !== -1;
        var phoneNumber = getPhoneNumberFromUserInput();
        return phoneNumber !== -1;
    }

    /**
     * Re-initializes the ReCaptacha widget.
     */
    function resetReCaptcha() {
        if (typeof grecaptcha !== 'undefined'
            && typeof window.recaptchaWidgetId !== 'undefined') {
            grecaptcha.reset(window.recaptchaWidgetId);
        }
    }

    /**
     * Updates the Sign-in button state depending on ReCAptcha and form values state.
     */
    function updateSignInButtonUI() {
        document.getElementById('sign-in-button').disabled =
            !isPhoneNumberValid()
            || !!window.signingIn;
    }

    /**
     * Updates the Verify-code button state depending on form values state.
     */
    function updateVerifyCodeButtonUI() {
        document.getElementById('verify-code-button').disabled =
            !!window.verifyingCode
            || !getCodeFromUserInput();
    }

    /**
     * Updates the state of the Sign-in form.
     */
    function updateSignInFormUI() {
        if (firebase.auth().currentUser || window.confirmationResult) {
            document.getElementById('sign-in-form').style.display = 'none';
        } else {
            resetReCaptcha();
            document.getElementById('sign-in-form').style.display = 'block';
        }
    }

    /**
     * Updates the state of the Verify code form.
     */
    function updateVerificationCodeFormUI() {
        if (!firebase.auth().currentUser && window.confirmationResult) {
            document.getElementById('verification-code-form').style.display = 'block';
        } else {
            document.getElementById('verification-code-form').style.display = 'none';
        }
    }

    /**
     * Updates the state of the Sign out button.
     */
    function updateSignOutButtonUI() {
        if (firebase.auth().currentUser) {
            document.getElementById('sign-out-button').style.display = 'none';
        } else {
            document.getElementById('sign-out-button').style.display = 'none';
        }
    }

    /**
     * Updates the Signed in user status panel.
     */
    function updateSignedInUserStatusUI() {
        var user = firebase.auth().currentUser;
        if (user) {
            document.getElementById('sign-in-status').textContent = 'Signed in';
            document.getElementById('account-details').textContent = JSON.stringify(user, null, '  ');

        } else {
            document.getElementById('sign-in-status').textContent = 'Signed out';
            document.getElementById('account-details').textContent = 'No User Login';
        }
    }

The Logout button which I am using to logout:

 <li><a href="{{url('logoutfront')}}">LOGOUT </a></li>

Could you suggest me why after logout the form has style.display = 'none' and how to fix it?

Apr
13
5 months ago
Activity icon

Replied to Forbidden You Don't Have Permission To Access This Resource. - Production

I checked the permission though it was 750. How do i check is webserver has access to the files @koes

Activity icon

Replied to Forbidden You Don't Have Permission To Access This Resource. - Production

How do I check that this is the first time I am deploying my project to live server @koes

Activity icon

Started a new Conversation Forbidden You Don't Have Permission To Access This Resource. - Production

Hello Team, I am trying to deploy my project to live using contaboserver but getting Forbidden You don't have permission to access this resource. Can you help me solve this...?

I also renamed server.php to index.php

This is my .htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ / [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php71” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Mar
25
6 months ago
Activity icon

Replied to Tabs-bootstrap : Control The Tab Content On Selected Nav-item

@snapey Actually what I was trying to achieve is on click of a nav-link related tab-pane must be displayed ... So I used foreach twice once for the content and the other for the tabs...

Activity icon

Replied to Tabs-bootstrap : Control The Tab Content On Selected Nav-item

@snapey if i am not getting you wrong foreach will be above tab-pane

            <div class="tab-content clearfix">
		@foreach ($languagefinder as $item)
                <div class="tab-pane @if($item['id'] == '1') active @endif" id="#{{$item['id']}}lang">
                    <div id="exTab1" class="container" style="margin-right: 0px;margin-left: 0px;">
                    </div>
                </div>
           	@endforeach
            </div>

Is this what you were saying?

Activity icon

Replied to Tabs-bootstrap : Control The Tab Content On Selected Nav-item

All I need to do is on click of any tab it displays the related content. Could this possibly be achieved ?

Mar
24
6 months ago
Activity icon

Started a new Conversation Tabs-bootstrap : Control The Tab Content On Selected Nav-item

Hello Team, Ia am not able to figue out how to control the tab content on selected nav-item.When ever i try to change anything it either gives me all the arrays inside foreach at once or just the first array of foreach in the tab-content... This is what my blade looks like ...

        <?php
            $languagefinder = Helper::getActiveLanguages();
        ?>

        <div class="panel-heading">
            @lang('global.app_create')

            <ul class="nav nav-tabs">
                @foreach ($languagefinder as $lang)
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#{{$lang['id']}}lang">{{$lang['language_name']}}</a>
                    </li>
                @endforeach
              </ul>
        </div>

        <div class="panel-body">
            @foreach ($languagefinder as $item)
            <div class="tab-content clearfix">
                <div class="tab-pane @if($item['id'] == '1') active @endif" id="#{{$item['id']}}lang">
                    <div id="exTab1" class="container" style="margin-right: 0px;margin-left: 0px;">
                    </div>
                </div>
            </div>
            @endforeach
        </div>

What I actually need is when this tab changes <a class="nav-link" data-toggle="tab" href="#{{$lang['id']}}lang"> this

<div class="tab-pane @if($item['id'] == '1') active @endif" id="#{{$item['id']}}lang">
      <div id="exTab1" class="container" style="margin-right: 0px;margin-left: 0px;">
     </div>
</div>

content must change accordingly. Any guidance would be a great help . Thank you!!

Activity icon

Replied to Bootstrap Tab - All Tabs Active Inside Foreach

@sti3bas when I do that I am getting every lang in foreach in tab-content as list on scroll down without tab click

Activity icon

Replied to Bootstrap Tab - All Tabs Active Inside Foreach

@sti3bas Yes worked!! but on tab change how can I change the tab-content?

Activity icon

Replied to Bootstrap Tab - All Tabs Active Inside Foreach

@jeevamugunthan Basically I am getting it though the Helper This is my helper:

public static function getActiveLanguages(){
        $activeLang = Language::get()->toArray();
        return $activeLang;
    }

Here is my blade:

        <?php
            $languagefinder = Helper::getActiveLanguages();
        ?>

        <div class="panel-heading">
            @lang('global.app_create')

            <ul class="nav nav-tabs">
                @foreach ($languagefinder as $lang)
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#{{$lang['id']}}lang">{{$lang['language_name']}}</a>
                    </li>
                @endforeach
              </ul>
        </div>

        <div class="panel-body">
            @foreach ($languagefinder as $item)
            <div class="tab-content clearfix">
                <div class="tab-pane @if($item['id'] == '1') active @endif" id="#{{$item['id']}}lang">
                    <div id="exTab1" class="container" style="margin-right: 0px;margin-left: 0px;">
                    </div>
                </div>
            </div>
            @endforeach
        </div>
Activity icon

Started a new Conversation Bootstrap Tab - All Tabs Active Inside Foreach

Hello Team, I am trying to get a tab view where on the click of a tab I can get fields for that very language in the language_name whose id is {{$lang['id']}} . But with the following code I get all the tab-pane inside the foreach as active. How can I get the fields based on the Id

        <div class="panel-heading">
            @lang('global.app_create')

            <ul class="nav nav-tabs">
                @foreach ($languagefinder as $lang)
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#{{$lang['id']}}lang"> {{$lang['language_name']}} </a>
                    </li>
                @endforeach
              </ul>
        </div>

        <div class="panel-body">
            @foreach ($languagefinder as $item)
            <div class="tab-content clearfix">
                <div class="tab-pane active " id="#{{$item['id']}}lang">
                    <div id="exTab1" class="container" style="margin-right: 0px;margin-left: 0px;">
                    </div>
                </div>
            </div>
            @endforeach
        </div>
Activity icon

Replied to Cannot Run Laravel Project

Thanks @sergiu17 ... yeah alongside once i did config:clear after changing the ip to localhost it worked

Activity icon

Replied to Cannot Run Laravel Project

@sergiu17 I just found the issue the constants still return 192.168.1.126 instead of localhost:8010 how can this be solved

Activity icon

Replied to Cannot Run Laravel Project

@sergiu17 Yes It is localhost:8010. Searched entire project could not find

192.168.1.126

Is there any command that we need to run when we make any changes ...? I did cache:clear and config:cache though

Activity icon

Replied to Cannot Run Laravel Project

@sergiu17 Oh Yes.. But I just replaced all the instances from

192.168.1.126 to localhost

Why does it still show that?

Activity icon

Replied to Cannot Run Laravel Project

@sergiu17 It took some time this is what I got in console

Navigated to http://127.0.0.1:8000/login
login:59 GET http://192.168.1.126:8010/adminlte/bootstrap/css/bootstrap.min.css net::ERR_CONNECTION_TIMED_OUT
login:60 GET http://192.168.1.126:8010/adminlte/css/select2.min.css net::ERR_CONNECTION_TIMED_OUT
login:61 GET http://192.168.1.126:8010/adminlte/css/AdminLTE.min.css net::ERR_CONNECTION_TIMED_OUT
login:62 GET http://192.168.1.126:8010/adminlte/css/skins/skin-blue.min.css net::ERR_CONNECTION_TIMED_OUT
login:131 GET http://192.168.1.126:8010/adminlte/js/bootstrap.min.js net::ERR_CONNECTION_TIMED_OUT
login:133 GET http://192.168.1.126:8010/adminlte/js/main.js net::ERR_CONNECTION_TIMED_OUT
login:135 GET http://192.168.1.126:8010/adminlte/plugins/slimScroll/jquery.slimscroll.min.js net::ERR_CONNECTION_TIMED_OUT
login:136 GET http://192.168.1.126:8010/adminlte/plugins/fastclick/fastclick.js net::ERR_CONNECTION_TIMED_OUT
login:137 GET http://192.168.1.126:8010/adminlte/js/app.min.js net::ERR_CONNECTION_TIMED_OUT
login:139 GET http://192.168.1.126:8010/adminlte/js/datetimepicker/moment/moment.min.js net::ERR_CONNECTION_TIMED_OUT
login:140 GET http://192.168.1.126:8010/adminlte/js/datetimepicker/moment/moment-with-locales.min.js net::ERR_CONNECTION_TIMED_OUT
login:141 GET http://192.168.1.126:8010/adminlte/js/datetimepicker/bootstrap-datetimepicker.min.js net::ERR_CONNECTION_TIMED_OUT
login:142 GET http://192.168.1.126:8010/adminlte/js/datetimepicker/bootstrap-datetimepicker.min.css net::ERR_CONNECTION_TIMED_OUT
login:132 GET http://192.168.1.126:8010/adminlte/js/select2.full.min.js net::ERR_CONNECTION_TIMED_OUT
login:377 Uncaught TypeError: $(...).select2 is not a function
    at login:377
(anonymous) @ login:377
login:2182 Uncaught TypeError: $(...).select2 is not a function
    at login:2182
(anonymous) @ login:2182
login:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input type=​"password" class=​"form-control" name=​"password">​
login:77 GET http://192.168.1.126:8010/images/loginlogo.png net::ERR_CONNECTION_TIMED_OUT
favicon.ico:1 GET http://127.0.0.1:8000/favicon.ico net::ERR_CONNECTION_REFUSED
Activity icon

Replied to Cannot Run Laravel Project

But yes there is one difference which is .. last time I was on a different IP I would run my project like this

php artisan serve --host=192.168.1.126 --port=8011

Now I simply used:

 php -S 127.0.0.1:8000 -t public/
Activity icon

Replied to Cannot Run Laravel Project

@sergiu17 No it is clear . And I am amazed. Last time I tried working , Did not face this issue!

Activity icon

Started a new Conversation Cannot Run Laravel Project

My project working good but suddenly it wont start in local host it keeps on loading but does not display any content. Can someone tell me what causes this issue and do I fix this?

Activity icon

Started a new Conversation Store Name Of A Product In More Than One Language

For localisation do we need to store any particular data for instance Product_name in different languages ? If yes can you tell me how to do it in database level ? So that when they send me a key of any language they receive the data in that very language they requested? Any references will be highly appreciated. Thank you

Mar
23
6 months ago
Activity icon

Replied to Cannot Start The Laravel Project

All I could figure out is it is a issue of host but IDK how to help myself!!

[email protected]:/var/www/html/Admin-Panel$ php artisan serve --host=192.168.1.1 --port=8011
        Laravel development server started: <http://192.168.1.1:8011>
[Tue Mar 24 11:44:57 2020] Failed to listen on 192.168.1.1:8011 (reason: Cannot assign requested address)
Activity icon

Started a new Conversation Cannot Start The Laravel Project

Hello, I just connect through a new lan which changed my ip and tried running the laravel project the following ways:

1.php -S localhost:8000 -t public/
2.php artisan serve --host=100.114.117.18 --port=8011

But the page just shows loading here is what i see in terminal but webpage does not load. Earlier when I had 192.128.1.126 as my IP I never faced this issue. Can anyone help me with this? How can i get my project started again with this lan? Thank You

[email protected]:/var/www/html/Admin-Panel$ php -S localhost:8000 -t public/
PHP 7.3.15-3+ubuntu18.04.1+deb.sury.org+1 Development Server started at Tue Mar 24 11:19:05 2020
Listening on http://localhost:8000
Document root is /var/www/html/Admin-Panel/public
Press Ctrl-C to quit.
[Tue Mar 24 11:19:26 2020] 127.0.0.1:33190 [200]: /
[Tue Mar 24 11:20:07 2020] 127.0.0.1:33238 [302]: /admin
[Tue Mar 24 11:20:07 2020] 127.0.0.1:33242 [302]: /admin/home
[Tue Mar 24 11:20:07 2020] 127.0.0.1:33252 [200]: /login
[Tue Mar 24 11:20:35 2020] 127.0.0.1:33266 [200]: /login
[Tue Mar 24 11:24:45 2020] 127.0.0.1:33448 [200]: /favicon.ico
[Tue Mar 24 11:27:13 2020] 127.0.0.1:33474 [200]: /login