truncate();
\DB::table('course_chapter_items')->truncate();
\DB::table('course_chapters')->truncate();
\DB::table('courses')->truncate();
\DB::table('course_selected_languages')->truncate();
\DB::table('course_selected_levels')->truncate();
\DB::table('quizzes')->truncate();
\DB::table('quiz_questions')->truncate();
\DB::table('quiz_question_answers')->truncate();
\DB::statement('SET FOREIGN_KEY_CHECKS=1;');
$coursesNames = array(
"Full Stack Web Development with React",
"Advanced Java Programming for Software",
"Introduction to Mobile App Development",
"Modern Front-End Development with js",
"Database Design and Management with SQL",
"Building Scalable Microservices",
"Cybersecurity Fundamentals for devs",
"Cloud Computing with AWS: From Beginner",
"Game Development with Unity and C#",
"Cloud Computing with AWS: From Beginner",
"Game Development with Unity and C#",
"Data Analysis with R for Business Intelligence",
"iOS App Development with Objective-C",
"Advanced Topics in C++ Programming",
"Blockchain Fundamentals: Building Decentralized",
"Artificial Intelligence and Machine",
"DevOps Automation with Jenkins and Ansible",
"Introduction to Natural Language Processing",
"Building Reactive Applications with RxJava",
"UI/UX Design Principles for Developers",
"Introduction to Quantum Computing",
"Business Strategies for Digital Marketers",
"Advanced Data Analysis for Business",
"IT Security Essentials: Protecting Your",
"Mastering Python for Data Science",
"Personal Branding: Building Your Online",
"Effective Communication Skills for Leaders",
"User Interface Design Fundamentals",
"Creating Engaging Content: Strategies",
"Introduction to Music Production",
"Financial Planning for Young Professionals",
"Entrepreneurship: From Idea to Launch",
"Cybersecurity Fundamentals for IT Professionals",
"Self-Confidence Mastery: Overcoming",
"Graphic Design Principles for Beginners",
"Digital Marketing Fundamentals: SEO and SEM",
"Introduction to Guitar Playing Techniques",
"Investment Strategies for a Volatile Market",
"Leadership Development: Inspiring",
"Web Development Bootcamp: From Zero",
"Mindfulness Meditation for Stress Reduction",
"Strategic Brand Management in Digital",
"Advanced Excel Techniques for Financial",
"Effective Time Management for Busy Professionals",
"UX/UI Design: Creating Intuitive User Experiences",
"Content Marketing Strategy: Engaging Your Audience",
"Music Theory Essentials: Understanding Harmony",
"Financial Literacy: Managing Your Finances",
"Project Management Fundamentals: Agile",
"Entrepreneurial Mindset: Cultivating Innovation",
"Cybersecurity for Small Businesses: Best Practices",
"Creative Writing Workshop: Finding Your Voice",
"Introduction to Digital Illustration",
"Social Media Marketing: Building Brand",
"Music Production Masterclass: Mixing",
"Investing in Cryptocurrencies: Opportunities",
"Conflict Resolution Skills for Workplace",
"Design Thinking: Solving Complex Problems",
"Digital Advertising Fundamentals: PPC",
"Piano for Beginners: Learning Basic Techniques",
"Retirement Planning: Securing Your Future",
"Effective Public Speaking: Engage and Persuade",
"Product Essentials: From Idea to Market",
"Mindful Leadership: Leading with Compassion",
"Introduction to User Experience Research",
"E-commerce Strategies for Small Businesses",
"Songwriting Basics: Crafting Melodies",
"Introduction to Financial Markets",
"Remote Work Productivity: Tips and Tools",
"Artificial Intelligence in Business"
);
$course_chapters = array(
array(
"title" => "Introduction",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 1,
"status" => "active",
"created_at" => "2024-06-04 04:35:50",
"updated_at" => "2024-06-04 04:35:50",
),
array(
"title" => "Data Structures and Algorithms in Python",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 3,
"status" => "active",
"created_at" => "2024-06-04 04:36:44",
"updated_at" => "2024-06-04 04:37:56",
),
array(
"title" => "Data Analysis with Pandas",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 4,
"status" => "active",
"created_at" => "2024-06-04 04:37:02",
"updated_at" => "2024-06-04 04:37:56",
),
array(
"title" => "Data Visualization with Matplotlib and Seaborn",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 5,
"status" => "active",
"created_at" => "2024-06-04 04:38:14",
"updated_at" => "2024-06-04 04:38:14",
),
array(
"title" => "Statistical Analysis and Hypothesis Testing",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 6,
"status" => "active",
"created_at" => "2024-06-04 04:38:25",
"updated_at" => "2024-06-04 04:38:25",
),
array(
"title" => "Introduction to Machine Learning",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 7,
"status" => "active",
"created_at" => "2024-06-04 04:38:45",
"updated_at" => "2024-06-04 04:38:45",
),
array(
"title" => "Advanced Machine Learning Techniques",
"instructor_id" => 1001,
"course_id" => 1,
"order" => 8,
"status" => "active",
"created_at" => "2024-06-04 04:39:02",
"updated_at" => "2024-06-04 04:39:02",
),
);
$course_chapter_items = array(
array(
"instructor_id" => 1001,
"chapter_id" => 1,
"type" => "lesson",
"order" => 1,
"created_at" => "2024-06-04 05:05:26",
"updated_at" => "2024-06-04 05:05:26",
),
array(
"instructor_id" => 1001,
"chapter_id" => 1,
"type" => "lesson",
"order" => 2,
"created_at" => "2024-06-04 05:10:16",
"updated_at" => "2024-06-04 05:10:16",
),
array(
"instructor_id" => 1001,
"chapter_id" => 1,
"type" => "lesson",
"order" => 3,
"created_at" => "2024-06-04 05:16:11",
"updated_at" => "2024-06-04 05:16:11",
),
array(
"instructor_id" => 1001,
"chapter_id" => 1,
"type" => "quiz",
"order" => 5,
"created_at" => "2024-06-04 05:30:06",
"updated_at" => "2024-06-04 07:02:07",
),
array(
"instructor_id" => 1001,
"chapter_id" => 1,
"type" => "lesson",
"order" => 4,
"created_at" => "2024-06-04 07:01:55",
"updated_at" => "2024-06-04 07:02:07",
),
);
$course_chapter_lessons = array(
array(
"id" => 1,
"title" => "Youtube Source",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 1,
"chapter_id" => 1,
"chapter_item_id" => 1,
"file_path" => "https://www.youtube.com/watch?v=7cMOjf4C9KE",
"storage" => "youtube",
"volume" => NULL,
"duration" => "11",
"file_type" => "video",
"downloadable" => 1,
"order" => NULL,
"is_free" => 1,
"status" => "active",
"created_at" => "2024-06-04 05:05:26",
"updated_at" => "2024-06-04 05:05:26",
),
array(
"id" => 2,
"title" => "Vimeo Source",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 0,
"chapter_id" => 1,
"chapter_item_id" => 2,
"file_path" => "https://vimeo.com/273651219",
"storage" => "vimeo",
"volume" => NULL,
"duration" => "1",
"file_type" => "video",
"downloadable" => 1,
"order" => NULL,
"is_free" => 1,
"status" => "active",
"created_at" => "2024-06-04 05:10:16",
"updated_at" => "2024-06-04 05:14:25",
),
array(
"id" => 3,
"title" => "Google Drive Source",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 0,
"chapter_id" => 1,
"chapter_item_id" => 3,
"file_path" => "https://drive.google.com/file/d/1CmtT6i3-QZtz7Oq_lcJHBcQkCVMdb0cV/view",
"storage" => "google_drive",
"volume" => NULL,
"duration" => "2",
"file_type" => "video",
"downloadable" => 1,
"order" => NULL,
"is_free" => 0,
"status" => "active",
"created_at" => "2024-06-04 05:16:11",
"updated_at" => "2024-06-04 05:20:19",
),
array(
"id" => 4,
"title" => "Case Studies in Machine Learning",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 1,
"chapter_id" => 2,
"chapter_item_id" => 5,
"file_path" => "https://www.youtube.com/watch?v=dELcl7aB5k8&list=PL7pkSK1xbGD6EqTdsjXiGim-qexOpSUvI&index=4",
"storage" => "youtube",
"volume" => NULL,
"duration" => "1",
"file_type" => "video",
"downloadable" => 1,
"order" => NULL,
"is_free" => 1,
"status" => "active",
"created_at" => "2024-06-04 06:44:55",
"updated_at" => "2024-06-04 06:44:55",
),
array(
"id" => 6,
"title" => "Feature Engineering and Selection",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 1,
"chapter_id" => 3,
"chapter_item_id" => 10,
"file_path" => "https://www.youtube.com/watch?v=pVTGfHyLlDU",
"storage" => "youtube",
"volume" => NULL,
"duration" => "1",
"file_type" => "video",
"downloadable" => 1,
"order" => NULL,
"is_free" => NULL,
"status" => "active",
"created_at" => "2024-06-04 06:58:09",
"updated_at" => "2024-06-04 06:58:09",
),
array(
"id" => 7,
"title" => "File Source",
"slug" => NULL,
"description" => "Unlock the full potential of Python in the realms of data science and machine learning with this comprehensive course. Designed for aspiring data scientists, machine learning engineers, and anyone eager to dive into the world of data, this course takes you from foundational concepts to advanced techniques, ensuring a thorough understanding and hands-on experience with the latest tools and methodologies",
"instructor_id" => 1001,
"course_id" => 1,
"chapter_id" => 1,
"chapter_item_id" => 11,
"file_path" => "/uploads/store/files/1001/certificate-22.pdf",
"storage" => "upload",
"volume" => NULL,
"duration" => "1",
"file_type" => "pdf",
"downloadable" => 1,
"order" => NULL,
"is_free" => NULL,
"status" => "active",
"created_at" => "2024-06-04 07:01:55",
"updated_at" => "2024-06-04 07:01:55",
),
);
$quizzes = array(
array(
"id" => 1,
"chapter_item_id" => 4,
"instructor_id" => 1001,
"chapter_id" => 1,
"course_id" => 1,
"title" => "QUIZ: This is a demo quiz test",
"time" => "10",
"attempt" => "10",
"pass_mark" => "50",
"total_mark" => "100",
"status" => "active",
"created_at" => "2024-06-04 05:30:06",
"updated_at" => "2024-06-04 05:30:32",
),
);
$quiz_questions = array(
array(
"id" => 1,
"quiz_id" => 1,
"title" => "What is Current Version of Laravel?",
"type" => "multiple",
"grade" => 50,
"created_at" => "2024-06-04 05:31:31",
"updated_at" => "2024-06-04 05:31:31",
),
);
$quiz_question_answers = array(
array(
"id" => 1,
"title" => "11",
"question_id" => 1,
"correct" => 1,
"created_at" => "2024-06-04 05:31:31",
"updated_at" => "2024-06-04 05:31:31",
),
array(
"id" => 2,
"title" => "10",
"question_id" => 1,
"correct" => 0,
"created_at" => "2024-06-04 05:31:32",
"updated_at" => "2024-06-04 05:31:32",
),
array(
"id" => 3,
"title" => "9",
"question_id" => 1,
"correct" => 0,
"created_at" => "2024-06-04 05:31:32",
"updated_at" => "2024-06-04 05:31:32",
),
array(
"id" => 4,
"title" => "20",
"question_id" => 1,
"correct" => 0,
"created_at" => "2024-06-04 05:31:32",
"updated_at" => "2024-06-04 05:31:32",
),
);
$instructorList = array(1001, 1002, 1003, 1004, 1005, 1006, 1009, 1011, 1012);
foreach ($coursesNames as $courseName) {
// create course
$course = new Course();
$course->instructor_id = $instructorList[array_rand($instructorList, 1)];
$course->category_id = rand(9, 43);
$course->type = "course";
$course->title = $courseName;
$course->slug = \Str::slug($courseName);
$course->seo_description = $courseName;
$course->duration = "3000";
$course->timezone = NULL;
$course->thumbnail = $this->getRandomFilename();
$course->demo_video_storage = "youtube";
$course->demo_video_source = "https://www.youtube.com/watch?v=MHhIzIgFgJo";
$course->description = "
Laravel 10: Build Realtime Messaging App From Scratch (2024)
\r\n
Are you ready to take your Laravel skills to the next level? In this course, you will build a complete Realtime Messaging System project from scratch using Laravel 10 and Pusher. This project-based course is designed to help you become a professional Laravel developer and give you a competitive edge in the job market.
\r\n
Why Learn Laravel 10?
\r\n
Laravel 10 is the latest version of the popular PHP framework and comes packed with new features and improvements, making it faster and more efficient than ever before. It's easy to learn and has a huge community, making it the perfect choice for building robust and scalable web applications.
\r\n
What Will You Learn?
\r\n
In this course, you will learn how to build a feature-rich Realtime Messaging platform with advanced functionalities such as:
\r\n
\r\n
User to User Live Chat
\r\n
Pusher Implementation
\r\n
Server Side Event Broadcasting
\r\n
Laravel Echo Implementation
\r\n
Working with Private Cannels
\r\n
Working with Presence Channels
\r\n
Listening Events From Client Side
\r\n
Request Debouncing
\r\n
Live Search
\r\n
Live Image Sending
\r\n
Ajax Scroll to Paginate
\r\n
Message Delete Feature
\r\n
Add Contact to Favorites
\r\n
Dynamic Image Gallery
\r\n
Profile Update Feature
\r\n
Personal Inbox
\r\n
Laravel Brezze For Auth
\r\n
And More
\r\n
\r\n
Why Choose This Course?
\r\n
Unlike other courses that only cover the basics, this course is designed to help you build a complete, real-world project from scratch. You will not only learn how to write code, but also gain valuable insights into project management and best practices. Plus, you will have access to the complete source code of the project and lifetime access to the course materials.
\r\n
What's more, once you have completed this course, you will have a highly marketable skill set and the potential to earn a high income as a professional Laravel developer.
\r\n
Enroll now and take the first step towards building your dream Job Portal platform with Laravel 10!
\r\n
Who this course is for:
\r\n
\r\n
Aspiring developers who want to become proficient in Laravel.
\r\n
Web developers who want to take their Laravel/PHP skills to the next level.
\r\n
Students who want to gain practical experience in building modern app with Laravel.
\r\n
University students who need to complete a project assignment using Laravel.
\r\n
Developers who want to learn about realtime features implementations