antoniputra / ngeblog Goto Github PK
View Code? Open in Web Editor NEWQuickstart Blogging for Laravel application.
License: MIT License
Quickstart Blogging for Laravel application.
License: MIT License
In every blogging platform, we able to create multiple post with duplication blog title, unfortunately this feature is not implemented now.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'lorem-ipsum' for key 'ngeblog_blogs_slug_unique' (SQL: insert into `ngeblog_blogs` (`title`, `category_id`, `status`, `editor_type`, `content`, `user_id`, `slug`, `updated_at`, `created_at`) values (lorem ipsum, 1, publish, quill, <p>asdfasd asdf asdf asdf</p>, 0, generate-tahanan-lebih-dari-81-hari, 2017-12-10 01:50:59, 2017-12-10 01:50:59))
Maybe we can add some random unique number when generate the slug value, like this ๐
// src/Repositories/BlogRepository.php
$model->slug = str_random(5).'-'.str_slug($data['title']);
//or
$model->slug = time().'-'.str_slug($data['title']);
Saya menginstall sesuai cara namun namanya bukan ngeblog tp berubah jadi vendor dan tidak ditemukan artisan file
Hi everyone,
to add blog functionality to your laravel website, you just need a package. This is compatible with latest version of laravel framework (laravel 8):
https://github.com/vhessam/laravel-blogger
Terima kasih sudah bikin paket ini, mas Antoni. Saya sudah mencoba paket ini dan sudah jalan baik. Tapi ada sedikit problem saat kita mau hapus item blog dan item kategori.
Ketika kita klik tombol Hapus, munculnya hanya halaman blank. Setelah dicek, ternyata actionnya masuknya ke controller BlogsController@show
, bukan ke BlogsController@destroy
.
Sehingga recordnya tidak terhapus dari database.
Terima kasih.
I think the better way to organizing your modle file is move all of it into single folder, i.e src/Models
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.