towhid

Experience

5,390

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 13 Lessons Completed
  • 0 Favorites

16th July, 2018

towhid left a reply on Scenario : In My Blade As A News Paper Category , First Item Information Show Big View But Other S Item Ar Small Show , How Can I View Data In Blade From Database? What Kind Of Query ?need To Write • 6 days ago

@Tray2 there are not accurate my questions answer , could you please read my query again , if you can accurate please help me . thank you

towhid left a reply on How To Read Last Data From Database ? • 6 days ago

Thank you @Loach :)

towhid started a new conversation How To Read Last Data From Database ? • 6 days ago

i am store 5 items information , name , image , description,for that i want to read last item information .

i am trying this code but not work properly

$video = Video::lastInsertId();

show this error :

Method Illuminate\Database\Query\Builder::lastInsertId does not exist.

10th July, 2018

towhid started a new conversation How To Create Middle Ware And How To Use I Already Trying But Not Proper Work Just Error Show -- • 1 week ago

scenario : i just want to make one middle ware which one check session data available or not if available then move route one path way other wise route another path.

22nd June, 2018

towhid left a reply on How To Data Save In Session Time , Globally ? • 1 month ago

@Snapey hello , , you are right , i want to keep token every user login time -- when any user access login then create one serial from api jasson data , i just keep this token one variable on time i keep this token till logout in globally , i just want to use this token every route time till log out this user . after log out the session data delete .

21st June, 2018

towhid left a reply on How To Data Save In Session Time , Globally ? • 1 month ago

@Yorki i want to achive this thing - : i want to save data in session globally , its mean where i want to use those data then call there-

thank you

20th June, 2018

towhid started a new conversation How To Data Save In Session Time , Globally ? • 1 month ago

i am login from third party API , login time i collect one serial key , every others api data read need this serial key , logout time the serial key will delete .

how i do that ?

towhid left a reply on When I Am Trying To Live My Site Then Show Error , But My Local Server Perform Totally Clean • 1 month ago

problem is solve because of Linux server case sensitive , windows server not detect this issue but linux server check all file name clearly - i have problem in my file name and declaration name in view time . thank you

towhid left a reply on How To Transfer Local Server To Live Server Site ? • 1 month ago

yes i solve my problem -

some time need change PHP version as like LARAVEL version need , and other's thing need to check the .htaccess file and index file.

17th June, 2018

towhid started a new conversation When I Am Trying To Live My Site Then Show Error , But My Local Server Perform Totally Clean • 1 month ago

ErrorException (E_ERROR) View [user.pageLayout.box.headLine] not found. (View: /home/dev/public_html/live/resources/views/user/page/index.blade.php)

15th June, 2018

towhid left a reply on How To Deployment Laravel Appplication In Shared Hosting Without Shell And Composer Any Command Apply .. • 1 month ago

OK please help me like my requirement @bobbybouwmann

i have shared hosting , i am using this link dev.mydomain.com and there are lots of project my project file name is "live" so i am extract all file to here , there are all applications file , but two files move from public folder - index.php and .htaccess , could you please suggest me what is my index.php code change and what is my .htaccess code change .

this is my present index .php code

require __DIR__.'/../vendor/autoload.php';   

$app = require_once __DIR__.'/../bootstrap/app.php';

this is my present .htaccess file code

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

    RewriteEngine On

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

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

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


what i am doing for my this link when some one hit this link then show my application

dev.mydomain.com/live

towhid left a reply on How To Deployment Laravel Appplication In Shared Hosting Without Shell And Composer Any Command Apply .. • 1 month ago

@bobbybouwmann thank you i am chekcing you r link if any kind of help need i will again knock you thnaks a lot ..

towhid left a reply on How To Transfer Local Server To Live Server Site ? • 1 month ago

@Cronix hello , sorry to share lesss information, i have shared hosting , no i have no ssh acess ..

@jlrdw hello may yes i have many guide but not any thing clear me , could you please share your guided link which one you share with everyone in larcasts ..

@bobbybouwmann , i haveno idea how to use git and how to pull or push environment do you share me any reference guide link...

14th June, 2018

towhid started a new conversation How To Deployment Laravel Appplication In Shared Hosting Without Shell And Composer Any Command Apply .. • 1 month ago

is it necessary dedicated server hosting for any laravel application deployment ?

towhid started a new conversation How To Transfer Local Server To Live Server Site ? • 1 month ago

please guide me step by step or suggest any reference link accurate .....

10th June, 2018

towhid left a reply on How To Implement Settings Option In Laravel ? Like Social Link, Text Of Color, Text Of Size Etc Wan To Control By Setting ? • 1 month ago

ok - imagine -- i create one table name general , and i have many filed name email Facebook link and save , when i am call which code i call ? i don understand -

towhid left a reply on How To Implement Settings Option In Laravel ? Like Social Link, Text Of Color, Text Of Size Etc Wan To Control By Setting ? • 1 month ago

thanks guys @Cronix @mlazuardy , but this is my questions :

i have one admin panel where i want to menu - general settings , now i want to see here some settings input options , like Facebook link , copyright text , logo option , banner size , i mean i want to customize option here , if admin want change data any time any moment , - do you understand - what i want to develop ?

9th June, 2018

towhid left a reply on Property [id] Does Not Exist On This Collection Instance. (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) • 1 month ago

@Snapey , btw i findthe probelm and why this occurs now i understand , the fact is this is my old code : for single post ,

<a href="{{ URL::to('dashboard/category') }}/{{ $category->id }}">category name </a>

but actual code is

<a href="{{ URL::to('dashboard/category') }}/{{ $news->category->id }}">category name </a>

or
<a href="{{ URL::to('dashboard/category') }}/{{ $news->category_id }}">category name </a>

thank you

towhid left a reply on Property [id] Does Not Exist On This Collection Instance. (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) • 1 month ago

Cronix change htef to href , still same error show --> i just want to know why my link is not work every place , if i want to use this link i think

$category=Category::all();
        $allNews=News::orderBy('created_at','desc')->paginate(6);

is enough , am i right way ,, Brother ?

towhid left a reply on Property [id] Does Not Exist On This Collection Instance. (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) • 1 month ago

@Snapey i found the problem why this occur , but id ont undersatdn why its not supported ..

blade code

<a htef="{{ URL::to('dashboard/category') }}/{{ $category->id }}"> computer</a>

controller code

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\News;
use App\Category;
use App\Faq;

class PageController extends Controller
{
    public function index()
    {
        $category=Category::all();
        $allNews=News::orderBy('created_at','desc')->paginate(6);
        return view('user.page.index',compact('membersFamilies','allNews','category'));
    }
}

this is my model

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class News extends Model
{

        public function category(){
    return $this->belongsTo(Category::class);
    }
}

towhid left a reply on Property [id] Does Not Exist On This Collection Instance. (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) (View: C:\project\final\resources\views\user\pageLayout\index\latestNews.blade.php) • 1 month ago

@snapey, yes i did more times but i cannot understand wheres the problem, when i am trying to data pass to view then show this error, but when i am of this Data then show need this data variable , i mean iam still trying but cannot solve ,, if you can then please and i am trying to find out the guide which one you suggested me here . thank you .

towhid left a reply on Property [id] Does Not Exist On This Collection Instance. • 1 month ago

@bogdy , @emabusi did you solve this issue ?

7th June, 2018

towhid started a new conversation How To Implement Theme Option In Laravel ? Like Redux Type Framework For Word Press • 1 month ago

please guide line or reference website data changes ?

towhid left a reply on How Can I Data Read From Third Party Api With Api Key • 1 month ago

@cronix i dont understand , but i trust laravel must be solve this kind of issue , please full guidee line .

30th May, 2018

towhid started a new conversation How Can I Data Read From Third Party Api With Api Key • 1 month ago

could you please any person who help me about : How To read data use Third Party API Use with Api key and token , the API use login time and - after login collected one TOKEN number which one same till logout , when i want to read all kind of data through third party APi then all time use API key and TOKEN number If any one know this thing please Assist me thanks in Advance

28th May, 2018

towhid left a reply on Why This Error Show Anf "Parse Error: Syntax Error, Unexpected 'box' (T_STRING), Expecting '('" • 1 month ago

@rin4ik hi, could you please tell me , any library or any tools for laravel bug show with accurate error details ?

towhid started a new conversation Why This Error Show Anf "Parse Error: Syntax Error, Unexpected 'box' (T_STRING), Expecting '('" • 1 month ago

show this error when i am trying to route my address

Route::get('dashboard',function box() { return 123; });

11th May, 2018

towhid started a new conversation Without Refresh My Browser Show The Changes After Code Change In Editor • 2 months ago

is it possible automatic update which one i changes in my code editor ?

9th May, 2018

towhid left a reply on Click Event Not Work • 2 months ago

@rin4ik yes this was my fault --

GET
https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js
[HTTP/2.0 200 OK 0ms]
Loading failed for the <script> with source “file:///C:/2018/vue/app3.js”.```

its mean i forgate the source like js/app3.js

thank you

towhid started a new conversation Click Event Not Work • 2 months ago

index.html file code

    <div id="app">
    
    <h3>Conditaion vue</h3>
    <button @click="error= !error">Toggle error</button>
    <button @click="success= !success">Toggle success</button>
    <p v-if="error">There has been an error </p>

    </div>

app3.js code

new Vue({
    el:'#app',
    data:{
        error:false,
        success:false
    },
    methods:{

    },
    computed:{

    },

});

7th May, 2018

towhid left a reply on Seeder Method Not Work Correctly Show Error : Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Lesson' Not Found • 2 months ago

@rin4ik you are great :) , when you are reply my discussion then i feel now time to solve my problem :) , and my think is right :)

towhid left a reply on Seeder Method Not Work Correctly Show Error : Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Lesson' Not Found • 2 months ago

after add this code show this error

<?php

use Illuminate\Database\Seeder;
use App\Lesson;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Lesson::truncate();
        Eloquent::unguard();
        $this->call(Lesson::class);
    }
}

error show

λ php artisan db:seed
Seeding: App\Lesson

   BadMethodCallException  : Method Illuminate\Database\Query\Builder::setContainer does not exist.

  at C:18\api\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:2671
    2667|         if (Str::startsWith($method, 'where')) {
    2668|             return $this->dynamicWhere($method, $parameters);
    2669|         }
    2670|
  > 2671|         throw new BadMethodCallException(sprintf(
    2672|             'Method %s::%s does not exist.', static::class, $method
    2673|         ));
    2674|     }
    2675| }

  Exception trace:

  1   Illuminate\Database\Query\Builder::__call("setContainer")
      C:18\api\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:1288

  2   Illuminate\Database\Eloquent\Builder::__call("setContainer")
      C:18\api\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1504

  Please use the argument -v to see more details.

towhid started a new conversation Seeder Method Not Work Correctly Show Error : Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Lesson' Not Found • 2 months ago

i am folowing video from laracast " Need Dummy Data"

my LessonsTableSeeder

use Illuminate\Database\Seeder;
use Faker\Factory as Faker;

class LessonsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $faker = Faker::create();
        foreach(range(1,30) as $index)
        {
            Lesson::create([
                'title' => $faker->sentence(5),
                'body' => $faker->paragraph(4)
            ]);
        }
    }
}

my DatabaseSeeder

<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Lesson::truncate();
        Eloquent::unguard();
        $this->call(Lesson::class);
    }
}

my Lesson model

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Lesson extends Model
{
    protected $fillable = ['title','body'];
}

used this code

composer require fzaninotto/faker --dev

but when iam tryint to this code show error

   Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'Lesson' not found

  at C:18\api\database\seeds\DatabaseSeeder.php:14
    10|      * @return void
    11|      */
    12|     public function run()
    13|     {
  > 14|         Lesson::truncate();
    15|         Eloquent::unguard();
    16|         $this->call(Lesson::class);
    17|     }
    18| }

  Exception trace:

  1   DatabaseSeeder::run()
      C:18\api\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:29

  2   call_user_func_array([])
      C:18\api\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:29

  Please use the argument -v to see more details.

1st May, 2018

towhid left a reply on Is It Possible To Check Login Information By 3rd Party Api Database User Information ? • 2 months ago

@Sirik -- no brother i am not asking general ways in my database , i want to know about 3rd party API Authentication , and it will work by Gazzal or any others way ! Thank you

towhid started a new conversation Is It Possible To Check Login Information By Api Database User Information ? • 2 months ago

scenario : if any one want to browse my page then must be check authentication but this authentication database not my database its API user Database information check

30th April, 2018

towhid left a reply on When I Click Browser Back Button After Logout Show Previous Session Information . How To Stop This Thing ? • 2 months ago

@bashy Thank you fro this information but how to control it ? any suggestion please . :/

towhid left a reply on When I Click Browser Back Button After Logout Show Previous Session Information . How To Stop This Thing ? • 2 months ago

@avaneeshsingh this is code for form process destroy method , but i am using general way like

controller code

public function destroy()
    {
        auth()->logout();

        return redirect('/posts'); //->home()
    }

And my front end code

 <li><a href="/logout">Logout</a></li>

Route code

Route::get('logout','[email protected]');

towhid left a reply on How To Show Popular Post Only ? Which One Is Important Popular From View Count Or Popular From Comments Count Any Post ? If View Then What I Will Do ? Or If Comments Then How To Count Comments Any Post ? • 2 months ago

@zainudinnoori

This is my post model code

public function comments(){
        return $this->hasMany(Comment::class);
    }

This is my comment model code

    public function post(){
    return $this->belongsTo(Post::class);
    }

This is my single post controller code

public function show($id)
    {
        $post=Post::find($id);
        $categories=Category::all();
        return view('post.show',compact('post','categories'));
    }
Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.